Interface ItemFilter

    • Method Detail

      • runBeforeProcessing

        boolean runBeforeProcessing()
        Returns true if the filter should be executed before any item is processed (basically, before any ItemProcessor is called).
      • runAfterProcessing

        boolean runAfterProcessing()
        Returns true if the filter should be executed after all items are processed (basically, after all ItemProcessor are called).
      • accepts

        boolean accepts​(Item item,
                        List<Item> acceptedItems,
                        List<Item> rejectedItems,
                        boolean runningBeforeProcessing)
        Return true if the given item is accepted by the filter.
        Parameters:
        item - the item to accept or reject
        acceptedItems - the list of the currently accepted items
        rejectedItems - the list of the currently rejected items
        runningBeforeProcessing - if the filter is running before processing (true) or after processing (false)