Class AttributeAddingProcessor
java.lang.Object
org.craftercms.core.processors.impl.AttributeAddingProcessor
- All Implemented Interfaces:
ItemProcessor
Created by alfonso on 2/21/17.
-
Field Details
-
attributeMappings
-
-
Constructor Details
-
AttributeAddingProcessor
public AttributeAddingProcessor()
-
-
Method Details
-
setAttributeMappings
-
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
-
addAttribute
-