public class BaseURLReplacer extends Object implements URLReplacer
| Constructor and Description |
|---|
BaseURLReplacer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String tagName,
String attrName)
Return true if replacer can handle tag and attr
|
URLInterceptor |
getUrlInterceptor() |
String |
replacePlaceholdersByRefs(String originalValue,
Map<Long,String> refs,
String workspaceName,
Locale locale,
JCRNodeWrapper parent)
replace placeholders by refs
|
String |
replaceRefsByPlaceholders(String originalValue,
Map<String,Long> newRefs,
Map<String,Long> oldRefs,
String workspace,
Locale locale,
JCRNodeWrapper node,
ExtendedPropertyDefinition definition)
replace refs by placeholders
|
void |
setUrlInterceptor(URLInterceptor urlInterceptor) |
public boolean canHandle(String tagName, String attrName)
canHandle in interface URLReplacertagName - tag nameattrName - attribute namepublic String replaceRefsByPlaceholders(String originalValue, Map<String,Long> newRefs, Map<String,Long> oldRefs, String workspace, Locale locale, JCRNodeWrapper node, ExtendedPropertyDefinition definition) throws javax.jcr.RepositoryException
replaceRefsByPlaceholders in interface URLReplacerjavax.jcr.RepositoryExceptionpublic String replacePlaceholdersByRefs(String originalValue, Map<Long,String> refs, String workspaceName, Locale locale, JCRNodeWrapper parent) throws javax.jcr.RepositoryException
replacePlaceholdersByRefs in interface URLReplacerjavax.jcr.RepositoryExceptionpublic URLInterceptor getUrlInterceptor()
public void setUrlInterceptor(URLInterceptor urlInterceptor)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.