Class SimpleRecordFilter
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.filter.SimpleRecordFilter
-
- All Implemented Interfaces:
RecordFilter
public class SimpleRecordFilter extends Object implements RecordFilter
A simple record filter built from a list of fieldFilter whose criteria must all match to accept a DataRecord.
-
-
Constructor Summary
Constructors Constructor Description SimpleRecordFilter()
Builds a SimpleRecordFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFieldFilter(String fieldName, FieldFilter fieldFilter)
Add a new filter on the specified field.boolean
match(DataRecord testedRecord)
Returns true if the fields of the specified record match all the field filter of this Filter.
-
-
-
Method Detail
-
addFieldFilter
public void addFieldFilter(String fieldName, FieldFilter fieldFilter)
Add a new filter on the specified field.
-
match
public boolean match(DataRecord testedRecord) throws FormException
Returns true if the fields of the specified record match all the field filter of this Filter.- Specified by:
match
in interfaceRecordFilter
- Throws:
FormException
-
-