|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.core.api.impl.FacetFilter
public class FacetFilter
A filter based on facets.
Field Summary | |
---|---|
static FacetFilter |
ALLOW
|
java.util.Set<java.lang.String> |
excluded
Set of excluded facets. |
java.util.Set<java.lang.String> |
required
Set of required facets. |
java.lang.Boolean |
shortcut
|
Constructor Summary | |
---|---|
FacetFilter(FacetFilter filter1,
FacetFilter filter2)
Constructor that ANDs two filters. |
|
FacetFilter(java.util.List<java.lang.String> required,
java.util.List<java.lang.String> excluded)
Generic constructor. |
|
FacetFilter(java.lang.String facet,
boolean isRequired)
Simpler constructor to filter on a single facet. |
Method Summary | |
---|---|
boolean |
accept(DocumentModel docModel)
Filters data models objects. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final FacetFilter ALLOW
public final java.util.Set<java.lang.String> required
null
.
public final java.util.Set<java.lang.String> excluded
null
.
public final java.lang.Boolean shortcut
Constructor Detail |
---|
public FacetFilter(java.util.List<java.lang.String> required, java.util.List<java.lang.String> excluded)
required
- list of facets the models must have to pass the filterexcluded
- list of facets the models must not have to pass the
filterpublic FacetFilter(java.lang.String facet, boolean isRequired)
facet
- the facet to filter onisRequired
- if true, accepted models must have the facet; if false,
accepted models must not have the facetpublic FacetFilter(FacetFilter filter1, FacetFilter filter2)
filter1
- the first filterfilter2
- the second filterMethod Detail |
---|
public boolean accept(DocumentModel docModel)
Filter
accept
in interface Filter
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |