public class LifeCycleFilter extends Object implements Filter
| Constructor and Description |
|---|
LifeCycleFilter(List<String> accepted,
List<String> excluded)
Generic constructor.
|
LifeCycleFilter(String lifeCycle,
boolean isRequired)
Convenient constructor to filter on a lifecycle state.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(DocumentModel docModel)
Filters data models objects.
|
public LifeCycleFilter(List<String> accepted, List<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(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.public boolean accept(DocumentModel docModel)
FilterCopyright © 2017 Nuxeo. All rights reserved.