src/org/ohmage/domain/AccessRequest.java
public static String validateRequestType(
			final String type) 
			throws ValidationException {
		
		if(StringUtils.isEmptyOrWhitespaceOnly(type)) {
			return null;
		}
		
		try {
			return Type.getValue(type).toString();
		}
		catch(IllegalArgumentException e) {
			throw new ValidationException(
					ErrorCode.USER_ACCESS_REQUEST_INVALID_PRAMETER, 
					"The request type is not a valid type (i.e. USER_SETUP): " + type);
		}
	}
/**
	 *  Validate the user setup status.
	 * 
	 * @param type The string representation of the request status. 
	 * 
	 * @return status string if the argument is a valid status. 
	 * 
	 */
Validate the user setup status.

@param type The string representation of the request status.

@return status string if the argument is a valid status.
Validate the user setup status . @param type The string representation of the request status . @return status string if the argument is a valid status .
public static String validateRequestType(
			final String type) 
			throws ValidationException {
		if(StringUtils.isEmptyOrWhitespaceOnly(type)) {
			return null;
		}
		try {
			return Type.getValue(type).toString();
		}
		catch(IllegalArgumentException e) {
			throw new ValidationException(
					ErrorCode.USER_ACCESS_REQUEST_INVALID_PRAMETER, 
					"The request type is not a valid type (i.e. USER_SETUP): " + type);
		}
	}
public static String validateRequestType ( final String type ) throws ValidationException { if ( StringUtils . isEmptyOrWhitespaceOnly ( type ) ) { return null ; } try { return Type . getValue ( type ) . toString ( ) ; } catch ( IllegalArgumentException e ) { throw new ValidationException ( ErrorCode . USER_ACCESS_REQUEST_INVALID_PRAMETER , "The request type is not a valid type (i.e. USER_SETUP): " + type ) ; } }
Validate the user setup status.
Validate the user setup status .