Package org.nuxeo.ecm.core.api.impl
Class FacetFilter
java.lang.Object
org.nuxeo.ecm.core.api.impl.FacetFilter
- All Implemented Interfaces:
Filter
A filter based on facets.
- Author:
- Georges Racinet, Florent Guillaume
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFacetFilter
(String facet, boolean isRequired) Simpler constructor to filter on a single facet.FacetFilter
(List<String> required, List<String> excluded) Generic constructor.FacetFilter
(FacetFilter filter1, FacetFilter filter2) Constructor that ANDs two filters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(DocumentModel docModel) Filters data models objects.protected Boolean
-
Field Details
-
ALLOW
-
required
Set of required facets. Nevernull
. -
excluded
Set of excluded facets. Nevernull
. -
shortcut
-
-
Constructor Details
-
FacetFilter
Generic constructor.- Parameters:
required
- list of facets the models must have to pass the filterexcluded
- list of facets the models must not have to pass the filter
-
FacetFilter
Simpler constructor to filter on a single facet.- Parameters:
facet
- the facet to filter onisRequired
- if true, accepted models must have the facet; if false, accepted models must not have the facet
-
FacetFilter
Constructor that ANDs two filters.- Parameters:
filter1
- the first filterfilter2
- the second filter
-
-
Method Details