copper-server-impl/src/main/java/com/pogeyan/cmis/impl/services/CmisDiscoveryService.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 .
private 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) {
					result.add(s);
				}
			}
			result.add(PropertyIds.OBJECT_ID);
			result.add(PropertyIds.OBJECT_TYPE_ID);
			result.add(PropertyIds.BASE_TYPE_ID);
			result.add(PropertyIds.CHANGE_TOKEN);
			return result;
		}
private 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 ) { result . add ( s ) ; } } result . add ( PropertyIds . OBJECT_ID ) ; result . add ( PropertyIds . OBJECT_TYPE_ID ) ; result . add ( PropertyIds . BASE_TYPE_ID ) ; result . add ( PropertyIds . CHANGE_TOKEN ) ; 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)