Package org.nuxeo.ecm.core.api.impl
Class LifeCycleFilter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.impl.LifeCycleFilter
-
- All Implemented Interfaces:
Filter
public class LifeCycleFilter extends Object implements Filter
A filter based on the document's life cycle.- Author:
- Thomas Roger
-
-
Constructor Summary
Constructors Constructor Description LifeCycleFilter(String lifeCycle, boolean isRequired)
Convenient constructor to filter on a lifecycle state.LifeCycleFilter(List<String> accepted, List<String> excluded)
Generic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(DocumentModel docModel)
Filters data models objects.
-
-
-
Constructor Detail
-
LifeCycleFilter
public LifeCycleFilter(List<String> accepted, List<String> excluded)
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
public LifeCycleFilter(String lifeCycle, boolean isRequired)
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 Detail
-
accept
public boolean accept(DocumentModel docModel)
Description copied from interface:Filter
Filters data models objects.
-
-