public class LifeCycleFilter extends Object implements Filter
|Constructor and Description|
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
accepted- the list of accepted lifecycle states
excluded- the list of excluded lifecycle states
public LifeCycleFilter(String lifeCycle, boolean isRequired)
lifeCycle- the lifecycle to filter on
trueaccepted documents must have this lifecycle state, if
falseaccepted documents must not have this lifecycle state.
public boolean accept(DocumentModel docModel)
Copyright © 2012 Nuxeo SA. All Rights Reserved.