Class LifeCycleFilter

    • Constructor Detail

      • LifeCycleFilter

        public LifeCycleFilter​(List<String> accepted,
                               List<String> excluded)
        Generic constructor.

        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 states
        excluded - the list of excluded lifecycle states
      • LifeCycleFilter

        public LifeCycleFilter​(String lifeCycle,
                               boolean isRequired)
        Convenient constructor to filter on a lifecycle state.
        lifeCycle - the lifecycle to filter on
        isRequired - if true accepted documents must have this lifecycle state, if false accepted documents must not have this lifecycle state.
    • Method Detail

      • accept

        public boolean accept​(DocumentModel docModel)
        Description copied from interface: Filter
        Filters data models objects.
        Specified by:
        accept in interface Filter
        true if accepting the object false otherwise