public class Transformer
extends Object
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) |
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) |
public Transformer(String errorTemplatePropertyKey, boolean restricted)
public Transformer(String transformerListenerPropertyKey, 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
Exception
protected com.liferay.portal.kernel.model.Company getCompany(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, long companyId) throws Exception
Exception
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) throws Exception
Exception
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) throws Exception
Exception
protected void prepareTemplate(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.template.Template template) throws Exception
Exception