private void validateMetricRange ( DateTime from , DateTime to ) throws InvalidMetricCriteriaException { if ( from . isAfter ( to ) ) { throw ExceptionFactory . invalidMetricCriteriaException ( Messages . i18n . format ( "OrganizationResourceImpl.InvalidMetricDateRange" ) ) ; //$NON-NLS-1$ } }
Ensures that the given date range is valid .