|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.plug.owrecord.filter.OwFilterHelper
public class OwFilterHelper
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 Summary | |
---|---|
OwFilterHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwFilterHelper()
Method Detail |
---|
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's
ClassNotFoundException
- 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 filter
ClassNotFoundException
- 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 verified
ClassNotFoundException
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 name
ClassNotFoundException
public com.wewebu.ow.server.field.filter.OwComparator<?> createComparator(Class<?> clazz)
clazz
- Class which should be handled by the OwComparator instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |