Package org.nuxeo.ecm.core.api.impl
Class LifeCycleFilter
java.lang.Object
org.nuxeo.ecm.core.api.impl.LifeCycleFilter
- All Implemented Interfaces:
Filter
A filter based on the document's life cycle.
- Author:
- Thomas Roger
-
Constructor Summary
ConstructorDescriptionLifeCycleFilter
(String lifeCycle, boolean isRequired) Convenient constructor to filter on a lifecycle state.LifeCycleFilter
(List<String> accepted, List<String> excluded) Generic constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(DocumentModel docModel) Filters data models objects.
-
Constructor Details
-
LifeCycleFilter
Generic constructor.To be accepted, the document must have its lifecycle state in the
required
list and theexcluded
list must not contain its lifecycle state.- Parameters:
accepted
- the list of accepted lifecycle statesexcluded
- the list of excluded lifecycle states
-
LifeCycleFilter
Convenient constructor to filter on a lifecycle state.- Parameters:
lifeCycle
- the lifecycle to filter onisRequired
- iftrue
accepted documents must have this lifecycle state, iffalse
accepted documents must not have this lifecycle state.
-
-
Method Details