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.
|
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)
Filter
Copyright © 2011 Nuxeo SA. All Rights Reserved.