Package org.craftercms.core.service.impl
Class ExcludeByUrlItemFilter
- java.lang.Object
-
- org.craftercms.core.service.impl.ExcludeByUrlItemFilter
-
- All Implemented Interfaces:
ItemFilter
public class ExcludeByUrlItemFilter extends Object implements ItemFilter
ItemFilterthat rejects an item if its URL matches any one of a list of regexes.- Author:
- avasquez
-
-
Constructor Summary
Constructors Constructor Description ExcludeByUrlItemFilter(String[] excludeRegexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing)Return true if the given item is accepted by the filter.booleanrunAfterProcessing()Returns true if the filter should be executed after all items are processed (basically, after allItemProcessorare called).booleanrunBeforeProcessing()Returns true if the filter should be executed before any item is processed (basically, before anyItemProcessoris called).StringtoString()
-
-
-
Constructor Detail
-
ExcludeByUrlItemFilter
public ExcludeByUrlItemFilter(String[] excludeRegexes)
-
-
Method Detail
-
runBeforeProcessing
public boolean runBeforeProcessing()
Description copied from interface:ItemFilterReturns true if the filter should be executed before any item is processed (basically, before anyItemProcessoris called).- Specified by:
runBeforeProcessingin interfaceItemFilter
-
runAfterProcessing
public boolean runAfterProcessing()
Description copied from interface:ItemFilterReturns true if the filter should be executed after all items are processed (basically, after allItemProcessorare called).- Specified by:
runAfterProcessingin interfaceItemFilter
-
accepts
public boolean accepts(Item item, List<Item> acceptedItems, List<Item> rejectedItems, boolean runningBeforeProcessing)
Description copied from interface:ItemFilterReturn true if the given item is accepted by the filter.- Specified by:
acceptsin interfaceItemFilter- Parameters:
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)
-
-