Package org.craftercms.core.processors
Interface ItemProcessor
- All Known Implementing Classes:
AbstractTaggingProcessor,AttributeAddingProcessor,FieldRenamingProcessor,IncludeDescriptorsProcessor,ItemProcessorPipeline,ItemUrlTransformingProcessor,PageAwareIncludeDescriptorsProcessor,SkipAllItemProcessor,TaggingByFieldValueProcessor,TaggingByPathProcessor,TemplateProcessor,TextMetaDataCollectionExtractingProcessor,TextMetaDataExtractingProcessor
public interface ItemProcessor
Processes an
Item, by applying any needed modification to it.- Author:
- Sumer Jabri, Alfonso Vásquez
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhen 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.
-
Method Details
-
isExclusive
default boolean isExclusive()When explicitly passing the processor (not in a pipeline), this method indicates whether the processor should be executed exclusively and ignore any other processors.- Returns:
- true if the processor should be executed exclusively, false otherwise.
-
process
Item process(Context context, CachingOptions cachingOptions, Item item) throws ItemProcessingException Processes anItem.- 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
-