|
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.LifeCycleFilter
public class LifeCycleFilter
A filter based on the document's life cycle.
Constructor Summary | |
---|---|
LifeCycleFilter(java.util.List<java.lang.String> accepted,
java.util.List<java.lang.String> excluded)
Generic constructor. |
|
LifeCycleFilter(java.lang.String lifeCycle,
boolean isRequired)
Convenient constructor to filter on a lifecycle state. |
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 |
Constructor Detail |
---|
public LifeCycleFilter(java.util.List<java.lang.String> accepted, java.util.List<java.lang.String> excluded)
To be accepted, the document must have its lifecycle state in the required
list and the excluded
list must not contain its
lifecycle state.
accepted
- the list of accepted lifecycle statesexcluded
- the list of excluded lifecycle statespublic LifeCycleFilter(java.lang.String lifeCycle, boolean isRequired)
lifeCycle
- the lifecycle to filter onisRequired
- if true
accepted documents must have this
lifecycle state, if false
accepted documents must not
have this lifecycle state.Method 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 |