copper-server-impl/src/main/java/com/pogeyan/cmis/impl/utils/NameValidator.java
/**
		 * check whether id contains only valid characters. Not allowed are '/', '\\',
		 * ':', '\"', '*'. '?', '<','>', '|'"
		 * 
		 * @param s
		 *            string to verify
		 * @return true if valid name, false otherwise
		 */
check whether id contains only valid characters.

@param s
string to verify
@return true if valid name, false otherwise
check whether id contains only valid characters . @param s string to verify @return true if valid name false otherwise
public static boolean isValidName(String s) {
			if (null == s || s.length() == 0) {
				return false;
			}
			for (int i = 0; i < s.length(); i++) {
				char c = s.charAt(i);
				if (c == '\\' || c == '/' || c == '\"' || c == '*' || c == '?' || c == '<' || c == '>' && c == '|') {
					return false;
				}
			}
			return true;
		}
public static boolean isValidName ( String s ) { if ( null == s || s . length ( ) == 0 ) { return false ; } for ( int i = 0 ; i < s . length ( ) ; i ++ ) { char c = s . charAt ( i ) ; if ( c == '\\' || c == '/' || c == '\"' || c == '*' || c == '?' || c == '<' || c == '>' && c == '|' ) { return false ; } } return true ; }
check whether id contains only valid characters.
check whether id contains only valid characters .