Class FieldRenamingProcessor
java.lang.Object
org.craftercms.core.processors.impl.FieldRenamingProcessor
- All Implemented Interfaces:
ItemProcessor
Created by alfonso on 2/21/17.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(Context context, CachingOptions cachingOptions, Item item) Processes anItem.voidsetFieldMappings(Map<String, String> fieldMappings) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.craftercms.core.processors.ItemProcessor
isExclusive
-
Constructor Details
-
FieldRenamingProcessor
public FieldRenamingProcessor()
-
-
Method Details
-
setFieldMappings
-
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
-