src/org/ohmage/domain/AccessRequest.java
public static Collection<String> validateContentSearch(final String value) 
			throws ValidationException {
		
		Collection<String> result = null;
		
		if(StringUtils.isEmptyOrWhitespaceOnly(value)) {
			return null;
		}
		
		result = StringUtils.decodeSearchString(value);
		if (result.size() > MAX_LIST_LENGTH)
			throw new ValidationException(
					ErrorCode.USER_ACCESS_REQUEST_INVALID_PRAMETER, 
					"The list cannot exceed the maximum length of " + MAX_LIST_LENGTH);	
		
		return result;
	}
/**
	 * Validates that all of search tokens in the search string are valid 
	 * tokens. If the argument is null or whitespace only, it will 
	 * return null. If not, it will attempt to parse the string and evaluate each 
	 * of the element in the list. If any element is invalid, it will return an error 
	 * message.
	 *  
	 * @param value The search string to be used in restricting results to only 
	 *        those requests whose request content contains this value. Multiple searching 
	 *        tokens are separated by space (e.g. "email1 email2")
	 * 
	 * @return Returns a list of search tokens or null if the argument string 
	 *         is null or whitespace only.
	 * 
	 * @throws ValidationException Thrown if the request Id list string contains an
	 * 							 invalid UUID.
	 */
Validates that all of search tokens in the search string are valid
tokens. If the argument is null or whitespace only, it will
return null. If not, it will attempt to parse the string and evaluate each
of the element in the list. If any element is invalid, it will return an error
message.

@param value The search string to be used in restricting results to only
those requests whose request content contains this value. Multiple searching
tokens are separated by space

@return Returns a list of search tokens or null if the argument string
is null or whitespace only.

@throws ValidationException Thrown if the request Id list string contains an
invalid UUID.
Validates that all of search tokens in the search string are valid tokens . If the argument is null or whitespace only it will return null . If not it will attempt to parse the string and evaluate each of the element in the list . If any element is invalid it will return an error message . @param value The search string to be used in restricting results to only those requests whose request content contains this value . Multiple searching tokens are separated by space @return Returns a list of search tokens or null if the argument string is null or whitespace only . @throws ValidationException Thrown if the request Id list string contains an invalid UUID .
public static Collection<String> validateContentSearch(final String value) 
			throws ValidationException {
		Collection<String> result = null;
		if(StringUtils.isEmptyOrWhitespaceOnly(value)) {
			return null;
		}
		result = StringUtils.decodeSearchString(value);
		if (result.size() > MAX_LIST_LENGTH)
			throw new ValidationException(
					ErrorCode.USER_ACCESS_REQUEST_INVALID_PRAMETER, 
					"The list cannot exceed the maximum length of " + MAX_LIST_LENGTH);	
		return result;
	}
public static Collection < String > validateContentSearch ( final String value ) throws ValidationException { Collection < String > result = null ; if ( StringUtils . isEmptyOrWhitespaceOnly ( value ) ) { return null ; } result = StringUtils . decodeSearchString ( value ) ; if ( result . size ( ) > MAX_LIST_LENGTH ) throw new ValidationException ( ErrorCode . USER_ACCESS_REQUEST_INVALID_PRAMETER , "The list cannot exceed the maximum length of " + MAX_LIST_LENGTH ) ; return result ; }
Validates that all of search tokens in the search string are valid
 tokens.
Validates that all of search tokens in the search string are valid tokens .