public class AbsolutePathTransformer extends Object implements LinkTransformer
AbstractI18nContentSupport
for details.Constructor and Description |
---|
AbsolutePathTransformer() |
AbsolutePathTransformer(boolean addContextPath,
boolean useURI2RepositoryMapping,
boolean useI18N)
Creates new transformer.
|
Modifier and Type | Method and Description |
---|---|
protected URI2RepositoryManager |
getURI2RepositoryManager() |
String |
getURISuffix(Link uuidLink)
Gets reminder of the URI after the path (i.e.
|
boolean |
isAddContextPath() |
boolean |
isUseI18N() |
boolean |
isUseURI2RepositoryMapping() |
protected String |
prefixLink(String linkStr) |
void |
setAddContextPath(boolean addContextPath) |
void |
setUseI18N(boolean useI18N) |
void |
setUseURI2RepositoryMapping(boolean useURI2RepositoryMapping) |
String |
transform(Link uuidLink)
Transforms Link into desired output.
|
public AbsolutePathTransformer()
public AbsolutePathTransformer(boolean addContextPath, boolean useURI2RepositoryMapping, boolean useI18N)
addContextPath
- Flag to specify whether or not to prepend context path to created links.useURI2RepositoryMapping
- Flag specifying whether or not to apply any URI2Repository mapping.useI18N
- Flag specifying whether or not to translate link path based on current locale value.public String transform(Link uuidLink)
transform
in interface LinkTransformer
uuidLink
- Link to repository content be transformed.protected URI2RepositoryManager getURI2RepositoryManager()
public String getURISuffix(Link uuidLink)
public boolean isAddContextPath()
public void setAddContextPath(boolean addContextPath)
public boolean isUseI18N()
public void setUseI18N(boolean useI18N)
public boolean isUseURI2RepositoryMapping()
public void setUseURI2RepositoryMapping(boolean useURI2RepositoryMapping)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.