com.liferay.portal.templateparser
Class Transformer
java.lang.Object
com.liferay.portal.templateparser.Transformer
public class Transformer
- extends Object
Method Summary |
protected Company |
getCompany(ThemeDisplay themeDisplay,
long companyId)
|
protected Device |
getDevice(ThemeDisplay themeDisplay)
|
protected TemplateResource |
getErrorTemplateResource(String langType)
|
protected Template |
getTemplate(String templateId,
Map<String,String> tokens,
String languageId,
String xml,
String script,
String langType)
|
protected Template |
getTemplate(String templateId,
String script,
String langType)
|
protected String |
getTemplateId(String templateId,
long companyId,
long companyGroupId,
long groupId)
|
protected List<TemplateNode> |
getTemplateNodes(ThemeDisplay themeDisplay,
Element element)
|
protected String |
getTemplatesPath(long companyId,
long groupId)
|
protected Map<String,Object> |
insertRequestVariables(Element element)
|
protected void |
mergeTemplate(Template template,
UnsyncStringWriter unsyncStringWriter)
|
protected void |
prepareTemplate(ThemeDisplay themeDisplay,
Template template)
|
protected String |
stripCDATA(String s)
|
String |
transform(ThemeDisplay themeDisplay,
Map<String,Object> contextObjects,
String script,
String langType)
|
String |
transform(ThemeDisplay themeDisplay,
Map<String,String> tokens,
String viewMode,
String languageId,
String xml,
String script,
String langType)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Transformer
public Transformer(String errorTemplatePropertyKey,
boolean restricted)
Transformer
public Transformer(String transformerListenerPropertyKey,
String errorTemplatePropertyKey,
boolean restricted)
transform
public String transform(ThemeDisplay themeDisplay,
Map<String,Object> contextObjects,
String script,
String langType)
throws Exception
- Throws:
Exception
transform
public String transform(ThemeDisplay themeDisplay,
Map<String,String> tokens,
String viewMode,
String languageId,
String xml,
String script,
String langType)
throws Exception
- Throws:
Exception
getCompany
protected Company getCompany(ThemeDisplay themeDisplay,
long companyId)
throws Exception
- Throws:
Exception
getDevice
protected Device getDevice(ThemeDisplay themeDisplay)
getErrorTemplateResource
protected TemplateResource getErrorTemplateResource(String langType)
getTemplate
protected Template getTemplate(String templateId,
Map<String,String> tokens,
String languageId,
String xml,
String script,
String langType)
throws Exception
- Throws:
Exception
getTemplate
protected Template getTemplate(String templateId,
String script,
String langType)
throws Exception
- Throws:
Exception
getTemplateId
protected String getTemplateId(String templateId,
long companyId,
long companyGroupId,
long groupId)
getTemplateNodes
protected List<TemplateNode> getTemplateNodes(ThemeDisplay themeDisplay,
Element element)
throws Exception
- Throws:
Exception
getTemplatesPath
protected String getTemplatesPath(long companyId,
long groupId)
insertRequestVariables
protected Map<String,Object> insertRequestVariables(Element element)
mergeTemplate
protected void mergeTemplate(Template template,
UnsyncStringWriter unsyncStringWriter)
throws Exception
- Throws:
Exception
prepareTemplate
protected void prepareTemplate(ThemeDisplay themeDisplay,
Template template)
throws Exception
- Throws:
Exception
stripCDATA
protected String stripCDATA(String s)