public class ContentPathTransformer extends Object implements org.apache.commons.collections.Transformer, Serializable
ContentPathConstructor.encodeUrlSafeName(String)
to encode it to know the actual URL pathConstructor 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.Transformer
public ContentPathConstructor getPathConstructor()
public void setPathConstructor(ContentPathConstructor pathConstructor)
public Template getAssociatedTemplate()
PageIdentifier
pathConstructor
to be setpublic void setAssociatedTemplate(Template associatedTemplate)
PageIdentifier
pathConstructor
to be setpublic Function<PageIdentifier,Template> getPageToTemplate()
public void setPageToTemplate(Function<PageIdentifier,Template> pageToTemplate)
Copyright © 2018. All rights reserved.