Class AttributeAddingProcessor
- java.lang.Object
-
- org.craftercms.core.processors.impl.AttributeAddingProcessor
-
- All Implemented Interfaces:
ItemProcessor
public class AttributeAddingProcessor extends Object implements ItemProcessor
Created by alfonso on 2/21/17.
-
-
Constructor Summary
Constructors Constructor Description AttributeAddingProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAttribute(Map.Entry<String,String> attribute, org.dom4j.Element element)
Item
process(Context context, CachingOptions cachingOptions, Item item)
Processes anItem
.void
setAttributeMappings(Map<String,Map<String,String>> attributeMappings)
-
-
-
Method Detail
-
setAttributeMappings
public void setAttributeMappings(Map<String,Map<String,String>> attributeMappings)
-
process
public Item process(Context context, CachingOptions cachingOptions, Item item) throws ItemProcessingException
Description copied from interface:ItemProcessor
Processes anItem
.- Specified by:
process
in 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
-
-