public interface ItemFilter
ContentStoreService
s to filter the items returned to the user of
the API.Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Item item,
List<Item> acceptedItems,
List<Item> rejectedItems,
boolean runningBeforeProcessing)
Return true if the given item is accepted by the filter.
|
boolean |
runAfterProcessing()
Returns true if the filter should be executed after all items are processed (basically, after all
ItemProcessor are called). |
boolean |
runBeforeProcessing()
Returns true if the filter should be executed before any item is processed (basically, before any
ItemProcessor is called). |
boolean runBeforeProcessing()
ItemProcessor
is called).boolean runAfterProcessing()
ItemProcessor
are called).boolean accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing)
item
- the item to accept or rejectacceptedItems
- the list of the currently accepted itemsrejectedItems
- the list of the currently rejected itemsrunningBeforeProcessing
- if the filter is running before processing (true) or after processing (false)Copyright © 2023 CrafterCMS. All rights reserved.