copper-server-api/src/main/java/com/pogeyan/cmis/api/utils/Helpers.java
/**
	 * Splits a filter statement into a collection of properties. If
	 * <code>filter</code> is <code>null</code>, empty or one of the properties
	 * is '*' , an empty collection will be returned.
	 */
Splits a filter statement into a collection of properties. If
filter is null, empty or one of the properties
is '*' , an empty collection will be returned.
Splits a filter statement into a collection of properties . If filter is null empty or one of the properties is ' * ' an empty collection will be returned .
public static Set<String> splitFilter(String filter) {
		if (filter == null) {
			return null;
		}
		if (filter.trim().length() == 0) {
			return null;
		}
		Set<String> result = new HashSet<String>();
		for (String s : filter.split(",")) {
			s = s.trim();
			if (s.equals("*")) {
				return null;
			} else if (s.length() > 0) {
				if (!StringUtils.containsWhitespace(s)) {
					result.add(s);
				}
			}
		}
		result.add(PropertyIds.OBJECT_ID);
		result.add(PropertyIds.OBJECT_TYPE_ID);
		result.add(PropertyIds.BASE_TYPE_ID);
		return result;
	}
public static Set < String > splitFilter ( String filter ) { if ( filter == null ) { return null ; } if ( filter . trim ( ) . length ( ) == 0 ) { return null ; } Set < String > result = new HashSet < String > ( ) ; for ( String s : filter . split ( "," ) ) { s = s . trim ( ) ; if ( s . equals ( "*" ) ) { return null ; } else if ( s . length ( ) > 0 ) { if ( ! StringUtils . containsWhitespace ( s ) ) { result . add ( s ) ; } } } result . add ( PropertyIds . OBJECT_ID ) ; result . add ( PropertyIds . OBJECT_TYPE_ID ) ; result . add ( PropertyIds . BASE_TYPE_ID ) ; return result ; }
Splits a filter statement into a collection of properties.
Splits a filter statement into a collection of properties .
// set a few base properties // query name == id (for base type properties)