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 Type
    Method
    Description
    default boolean
    When 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 an Item.
  • 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 an Item.
      Parameters:
      context - the current context
      cachingOptions - caching options in case you need access to items
      item - the item to process
      Returns:
      the modified item or a new item.
      Throws:
      ItemProcessingException - if an error occurred while processing the item