public class OwFilterHelper extends Object
Helper class for filter handling. This class execute the filtering and instantiation of filter classes.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor and Description |
---|
OwFilterHelper() |
Modifier and Type | Method and Description |
---|---|
com.wewebu.ow.server.field.filter.OwComparator<?> |
createComparator(Class<?> clazz)
Method to instantiate a comparator for a given class.
|
List |
filterCollection(com.wewebu.ow.server.field.OwSearchCriteria filter,
List collection)
Call start a filter process on the given collection using the provided filter.
|
protected boolean |
fitFilter(com.wewebu.ow.server.field.OwSearchCriteria filter,
com.wewebu.ow.server.ecm.OwObject obj)
Check if the object matches the given filter.
|
protected boolean |
fitFilter(com.wewebu.ow.server.field.OwSearchCriteria filter,
com.wewebu.ow.server.ecm.OwProperty prop)
Check the property against a defined filter.
|
protected com.wewebu.ow.server.field.filter.OwComparator |
getComparator(String javaClassName)
Retrieve and cache a
OwComparator for a given class name. |
public List filterCollection(com.wewebu.ow.server.field.OwSearchCriteria filter, List collection) throws ClassNotFoundException
A OwFilterRuntimeException can occur if the property, property value or property java type retrieval fails.
filter
- OwSearchCriteria to usecollection
- List of OwObject'sClassNotFoundException
- if could not retrieve java type information of property valueprotected boolean fitFilter(com.wewebu.ow.server.field.OwSearchCriteria filter, com.wewebu.ow.server.ecm.OwObject obj) throws ClassNotFoundException
A OwFilterRuntimeException can occur if the request for property, property value or property java type fails.
filter
- OwSearchCriteria which objects must matchobj
- OwObject to verify against filterClassNotFoundException
- if could not retrieve java type information of property valueprotected boolean fitFilter(com.wewebu.ow.server.field.OwSearchCriteria filter, com.wewebu.ow.server.ecm.OwProperty prop) throws ClassNotFoundException
A OwFilterRuntimeException can occur if the retrieval of property value or property java type fails.
filter
- OwSearchCriteria representing a filterprop
- OwProperty whose value should be verifiedClassNotFoundException
protected com.wewebu.ow.server.field.filter.OwComparator getComparator(String javaClassName) throws ClassNotFoundException
OwComparator
for a given class name.javaClassName
- String full qualified java class nameClassNotFoundException
public com.wewebu.ow.server.field.filter.OwComparator<?> createComparator(Class<?> clazz)
clazz
- Class which should be handled by the OwComparator instanceCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.