public class ContentPathTransformer extends Object implements org.apache.commons.collections.Transformer, Serializable
ContentPathConstructor.encodeUrlSafeName(String) to encode it to know the actual URL path| Constructor and Description |
|---|
ContentPathTransformer() |
| Modifier and Type | Method and Description |
|---|---|
Template |
getAssociatedTemplate()
Used to construct a path from
PageIdentifier |
Function<PageIdentifier,Template> |
getPageToTemplate()
|
ContentPathConstructor |
getPathConstructor() |
protected boolean |
hasLink(PageIdentifier page)
If it returns true, it will assume path to have a link.
|
void |
setAssociatedTemplate(Template associatedTemplate)
Used to construct a path from
PageIdentifier |
void |
setPageToTemplate(Function<PageIdentifier,Template> pageToTemplate)
|
void |
setPathConstructor(ContentPathConstructor pathConstructor) |
Object |
transform(Object input) |
protected boolean hasLink(PageIdentifier page)
public Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic ContentPathConstructor getPathConstructor()
public void setPathConstructor(ContentPathConstructor pathConstructor)
public Template getAssociatedTemplate()
PageIdentifierpathConstructor to be setpublic void setAssociatedTemplate(Template associatedTemplate)
PageIdentifierpathConstructor to be setpublic Function<PageIdentifier,Template> getPageToTemplate()
public void setPageToTemplate(Function<PageIdentifier,Template> pageToTemplate)
Copyright © 2018. All rights reserved.