public class Transformer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
errorTemplateIds |
protected Set<com.liferay.portal.kernel.templateparser.TransformerListener> |
transformerListeners |
| Constructor and Description |
|---|
Transformer(String errorTemplatePropertyKey,
boolean restricted) |
Transformer(String transformerListenerPropertyKey,
String errorTemplatePropertyKey,
boolean restricted) |
| Modifier and Type | Method and Description |
|---|---|
protected com.liferay.portal.kernel.model.Company |
getCompany(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
long companyId) |
protected com.liferay.portal.kernel.mobile.device.Device |
getDevice(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
protected String |
getErrorTemplateId(String errorTemplatePropertyKey,
String langType) |
protected com.liferay.portal.kernel.template.TemplateResource |
getErrorTemplateResource(String langType) |
protected com.liferay.portal.kernel.template.Template |
getTemplate(String templateId,
String script,
String langType) |
protected String |
getTemplateId(String templateId,
long companyId,
long companyGroupId,
long groupId) |
protected String |
getTemplatesPath(long companyId,
long groupId,
long classNameId) |
protected void |
mergeTemplate(com.liferay.portal.kernel.template.Template template,
com.liferay.portal.kernel.io.unsync.UnsyncStringWriter unsyncStringWriter,
boolean propagateException) |
protected void |
prepareTemplate(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.template.Template template) |
protected void |
setErrorTemplateIds(String errorTemplatePropertyKey) |
protected void |
setTransformerListeners(String transformerListenerPropertyKey,
ClassLoader classLoader) |
String |
transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
Map<String,Object> contextObjects,
String script,
String langType,
com.liferay.portal.kernel.io.unsync.UnsyncStringWriter unsyncStringWriter) |
protected final Set<com.liferay.portal.kernel.templateparser.TransformerListener> transformerListeners
public Transformer(String errorTemplatePropertyKey, boolean restricted)
public String transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, Map<String,Object> contextObjects, String script, String langType, com.liferay.portal.kernel.io.unsync.UnsyncStringWriter unsyncStringWriter) throws Exception
Exceptionprotected com.liferay.portal.kernel.model.Company getCompany(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
long companyId)
throws Exception
Exceptionprotected com.liferay.portal.kernel.mobile.device.Device getDevice(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
protected String getErrorTemplateId(String errorTemplatePropertyKey, String langType)
protected com.liferay.portal.kernel.template.TemplateResource getErrorTemplateResource(String langType)
protected com.liferay.portal.kernel.template.Template getTemplate(String templateId, String script, String langType) throws Exception
Exceptionprotected String getTemplateId(String templateId, long companyId, long companyGroupId, long groupId)
protected String getTemplatesPath(long companyId, long groupId, long classNameId)
protected void mergeTemplate(com.liferay.portal.kernel.template.Template template,
com.liferay.portal.kernel.io.unsync.UnsyncStringWriter unsyncStringWriter,
boolean propagateException)
throws Exception
Exceptionprotected void prepareTemplate(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
com.liferay.portal.kernel.template.Template template)
throws Exception
Exceptionprotected void setErrorTemplateIds(String errorTemplatePropertyKey)
protected void setTransformerListeners(String transformerListenerPropertyKey, ClassLoader classLoader)