public abstract class BaseConfigFilter extends java.lang.Object implements ListFilter
| Constructor and Description |
|---|
BaseConfigFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.util.List |
activeNames() |
boolean |
filter(java.lang.Object object,
java.lang.String field,
java.lang.String criteria)
Invoked on each object in the complete list of data beans
|
java.util.List |
getFieldNames()
Returns the list of data bean field names the filter can filter on
It is the responsibility of the class implementing this interface to
provide any localization
|
protected abstract java.lang.String |
getI18NPrefix() |
void |
postFilter(java.util.List filteredList)
Invoked after the list of filtered objects has been built and before
the list is returned from ListFilterHelper.
|
void |
prepare(java.util.Locale userLocale)
Map method-names to I18N strings for the fields we might filter on (which
is (path, channelLabel) at the moment
Called before any other methods are called
|
public void prepare(java.util.Locale userLocale)
prepare in interface ListFilteruserLocale - locale of the requesting userpublic java.util.List getFieldNames()
getFieldNames in interface ListFilterpublic boolean filter(java.lang.Object object,
java.lang.String field,
java.lang.String criteria)
filter in interface ListFilterobject - Individual data beansfield - field name to inspectcriteria - filter criteriapublic void postFilter(java.util.List filteredList)
ListFilterpostFilter in interface ListFilterfilteredList - The filtered listprotected abstract java.util.List activeNames()
protected abstract java.lang.String getI18NPrefix()