Package org.nuxeo.ecm.core.api.tree
Class DefaultDocumentTreeFilter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.tree.DefaultDocumentTreeFilter
-
- All Implemented Interfaces:
Filter
,DocumentTreeFilter
public class DefaultDocumentTreeFilter extends Object implements DocumentTreeFilter
Default filter for tree elements.Filters using facets and types criteria. Also filters documents that are in the trash.
- Author:
- Anahide Tchertchian
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
excludedFacets
protected List<String>
excludedTypes
protected List<String>
includedFacets
-
Constructor Summary
Constructors Constructor Description DefaultDocumentTreeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(DocumentModel document)
Filters data models objects.List<String>
getExcludedFacets()
List<String>
getExcludedTypes()
List<String>
getIncludedFacets()
void
setExcludedFacets(List<String> excludedFacets)
void
setExcludedTypes(List<String> excludedTypes)
void
setIncludedFacets(List<String> includedFacets)
-
-
-
Method Detail
-
accept
public boolean accept(DocumentModel document)
Description copied from interface:Filter
Filters data models objects.
-
getIncludedFacets
public List<String> getIncludedFacets()
- Specified by:
getIncludedFacets
in interfaceDocumentTreeFilter
-
setIncludedFacets
public void setIncludedFacets(List<String> includedFacets)
- Specified by:
setIncludedFacets
in interfaceDocumentTreeFilter
-
getExcludedFacets
public List<String> getExcludedFacets()
- Specified by:
getExcludedFacets
in interfaceDocumentTreeFilter
-
setExcludedFacets
public void setExcludedFacets(List<String> excludedFacets)
- Specified by:
setExcludedFacets
in interfaceDocumentTreeFilter
-
getExcludedTypes
public List<String> getExcludedTypes()
- Specified by:
getExcludedTypes
in interfaceDocumentTreeFilter
-
setExcludedTypes
public void setExcludedTypes(List<String> excludedTypes)
- Specified by:
setExcludedTypes
in interfaceDocumentTreeFilter
-
-