public class IncludeByUrlItemFilter extends Object implements ItemFilter
ItemFilter that rejects an item if its URL doesn't match any one of a list of regexes.| Constructor and Description |
|---|
IncludeByUrlItemFilter(String[] includeRegexes) |
| 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). |
String |
toString() |
public IncludeByUrlItemFilter(String[] includeRegexes)
public boolean runBeforeProcessing()
ItemFilterItemProcessor is called).runBeforeProcessing in interface ItemFilterpublic boolean runAfterProcessing()
ItemFilterItemProcessor are called).runAfterProcessing in interface ItemFilterpublic boolean accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing)
ItemFilteraccepts in interface ItemFilteritem - 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 © 2018 CrafterCMS. All rights reserved.