src/org/ohmage/service/UploadValidationServices.java
public static void validateEpochTime(final Long time) 
			throws ServiceException {
		
		if(time == null) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIME, 
					"time in upload message is null");
		}
		
		if(time < 0) {	
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIME, 
					"time in upload message is invalid: " + time);
		}
	}
/**
	 * Validates the provided (UNIX epoch-style) time. 
	 * 
	 * @param date The date to validate.
	 * @throws ServiceException if the time is null or negative
	 */
Validates the provided (UNIX epoch-style) time.

@param date The date to validate.
@throws ServiceException if the time is null or negative
Validates the provided ( UNIX epoch - style ) time . @param date The date to validate . @throws ServiceException if the time is null or negative
public static void validateEpochTime(final Long time) 
			throws ServiceException {
		if(time == null) {
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIME, 
					"time in upload message is null");
		}
		if(time < 0) {	
			throw new ServiceException(
					ErrorCode.SERVER_INVALID_TIME, 
					"time in upload message is invalid: " + time);
		}
	}
public static void validateEpochTime ( final Long time ) throws ServiceException { if ( time == null ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_TIME , "time in upload message is null" ) ; } if ( time < 0 ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_TIME , "time in upload message is invalid: " + time ) ; } }
Validates the provided (UNIX epoch-style) time.
Validates the provided ( UNIX epoch - style ) time .