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
Modifier and TypeFieldDescriptionprotected String
protected String
protected UrlTransformationEngine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprocess
(Context context, CachingOptions cachingOptions, Item item) Processes anItem
.void
setTransformedUrlPropName
(String transformedUrlPropName) void
setTransformerName
(String transformerName) void
setUrlTransformationEngine
(UrlTransformationEngine urlTransformationEngine) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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: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
-
toString
-