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

@param status The string representation of the request status.

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