Class SkipAllItemProcessor
java.lang.Object
org.craftercms.core.processors.impl.SkipAllItemProcessor
- All Implemented Interfaces:
ItemProcessor
No-op
ItemProcessor exclusive implementation.
This processor does nothing but return the item, a NOOP.
It is also exclusive, so if passed into getItem, it will disable
the processor chain and simply return the item as-is.- Since:
- 4.1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhen explicitly passing the processor (not in a pipeline), this method indicates whether the processor should be executed exclusively and ignore any other processors.process(Context context, CachingOptions cachingOptions, Item item) Processes anItem.
-
Constructor Details
-
SkipAllItemProcessor
public SkipAllItemProcessor()
-
-
Method Details
-
isExclusive
public boolean isExclusive()Description copied from interface:ItemProcessorWhen explicitly passing the processor (not in a pipeline), this method indicates whether the processor should be executed exclusively and ignore any other processors.- Specified by:
isExclusivein interfaceItemProcessor- Returns:
- true if the processor should be executed exclusively, false otherwise.
-
process
public Item process(Context context, CachingOptions cachingOptions, Item item) throws ItemProcessingException Description copied from interface:ItemProcessorProcesses anItem.- Specified by:
processin interfaceItemProcessor- Parameters:
context- the current contextcachingOptions- caching options in case you need access to itemsitem- the item to process- Returns:
- the modified item or a new item.
- Throws:
ItemProcessingException- if an error occurred while processing the item
-