src/org/ohmage/validator/UserValidators.java
public static Set<String> validateUsernameSearch(
			final String usernames) {
		
		if(StringUtils.isEmptyOrWhitespaceOnly(usernames)) {
			return null;
		}
		
		return StringUtils.decodeSearchString(usernames);
	}
/**
	 * There is no real validation that takes place here because the user could
	 * search for any piece of information. If a user is searching for an 
	 * illegal character for usernames, we simply remove that string from the
	 * list.
	 * 
	 * @param usernames The space-separated list of search terms.
	 * 
	 * @return A sanitized version of the search terms, which may be empty. If
	 * 		   the given string is null or only whitespace, this will be null.
	 */
There is no real validation that takes place here because the user could
search for any piece of information. If a user is searching for an
illegal character for usernames, we simply remove that string from the
list.

@param usernames The space-separated list of search terms.

@return A sanitized version of the search terms, which may be empty. If
the given string is null or only whitespace, this will be null.
There is no real validation that takes place here because the user could search for any piece of information . If a user is searching for an illegal character for usernames we simply remove that string from the list . @param usernames The space - separated list of search terms . @return A sanitized version of the search terms which may be empty . If the given string is null or only whitespace this will be null .
public static Set<String> validateUsernameSearch(
			final String usernames) {
		if(StringUtils.isEmptyOrWhitespaceOnly(usernames)) {
			return null;
		}
		return StringUtils.decodeSearchString(usernames);
	}
public static Set < String > validateUsernameSearch ( final String usernames ) { if ( StringUtils . isEmptyOrWhitespaceOnly ( usernames ) ) { return null ; } return StringUtils . decodeSearchString ( usernames ) ; }
There is no real validation that takes place here because the user could
 search for any piece of information.
There is no real validation that takes place here because the user could search for any piece of information .