Class CompoundFilter

  • All Implemented Interfaces:
    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
    • Constructor Detail

      • CompoundFilter

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

        public CompoundFilter​(List<Filter> filters)
        Generic constructor.
    • 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