Class ItemUrlTransformingProcessor
java.lang.Object
org.craftercms.core.processors.impl.ItemUrlTransformingProcessor
- All Implemented Interfaces:
ItemProcessor
ItemProcessor that takes the item url, transforms it by calling
the transformation engine, and places the transformed url in the properties.- Author:
- Alfonso Vásquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected UrlTransformationEngine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprocess(Context context, CachingOptions cachingOptions, Item item) Processes anItem.voidsetTransformedUrlPropName(String transformedUrlPropName) voidsetTransformerName(String transformerName) voidsetUrlTransformationEngine(UrlTransformationEngine urlTransformationEngine) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.craftercms.core.processors.ItemProcessor
isExclusive
-
Field Details
-
transformedUrlPropName
-
transformerName
-
urlTransformationEngine
-
-
Constructor Details
-
ItemUrlTransformingProcessor
public ItemUrlTransformingProcessor()
-
-
Method Details
-
setTransformedUrlPropName
-
setTransformerName
-
setUrlTransformationEngine
-
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
-
toString
-