Class FilterManager
- java.lang.Object
-
- org.silverpeas.core.contribution.content.form.filter.FilterManager
-
public class FilterManager extends Object
FilterManager
-
-
Constructor Summary
Constructors Constructor Description FilterManager(RecordTemplate rowTemplate, String lang)
Builds a FilterManager for records built on the given template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFieldParameter(String fieldName, FieldTemplate field)
Form
getCriteriaForm()
Returns a Form which can be used to select criteria values.RecordTemplate
getCriteriaTemplate()
Returns a RecordTemplate which can be used to select criteria values.DataRecord
getEmptyCriteriaRecord()
Returns an empty criteria record.RecordFilter
getRecordFilter(DataRecord criteriaRecord)
Gets a RecordFilter from the criteria record (which must be built with the criteriaRecord)
-
-
-
Constructor Detail
-
FilterManager
public FilterManager(RecordTemplate rowTemplate, String lang)
Builds a FilterManager for records built on the given template.
-
-
Method Detail
-
getCriteriaForm
public Form getCriteriaForm() throws FormException
Returns a Form which can be used to select criteria values.- Throws:
FormException
-
getCriteriaTemplate
public RecordTemplate getCriteriaTemplate() throws FormException
Returns a RecordTemplate which can be used to select criteria values.- Throws:
FormException
-
getEmptyCriteriaRecord
public DataRecord getEmptyCriteriaRecord() throws FormException
Returns an empty criteria record.- Throws:
FormException
-
addFieldParameter
public void addFieldParameter(String fieldName, FieldTemplate field)
-
getRecordFilter
public RecordFilter getRecordFilter(DataRecord criteriaRecord) throws FormException
Gets a RecordFilter from the criteria record (which must be built with the criteriaRecord)- Throws:
FormException
-
-