Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.impl
Class CompoundFilter

java.lang.Object
  extended by org.nuxeo.ecm.core.api.impl.CompoundFilter
All Implemented Interfaces:
Serializable, Filter

public class CompoundFilter
extends Object
implements Filter

A filter based on a list of others filters. To accept a document, all the registered filters must accept it.

Author:
Thomas Roger
See Also:
Serialized Form

Constructor Summary
CompoundFilter(Filter... filters)
          Generic constructor.
CompoundFilter(List<Filter> filters)
          Generic constructor.
 
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

CompoundFilter

public CompoundFilter(Filter... filters)
Generic constructor.

Parameters:
filters -

CompoundFilter

public CompoundFilter(List<Filter> filters)
Generic constructor.

Parameters:
filters -
Method Detail

accept

public boolean accept(DocumentModel docModel)
Description copied from interface: Filter
Filters data models objects.

Specified by:
accept in interface Filter
Returns:
true if accepting the object false otherwise

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.