Class Transformer
Object
com.liferay.portal.templateparser.Transformer
- Author:
- Brian Wing Shun Chan, Raymond Augé, Wesley Gong, Angelo Jefferson, Hugo Huijser, Marcellus Tavares, Juan Fernández
-
Constructor Summary
ConstructorsConstructorDescriptionTransformer(String errorTemplatePropertyKey, boolean restricted) Transformer(String transformerListenerPropertyKey, String errorTemplatePropertyKey, boolean restricted) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.portal.kernel.model.CompanygetCompany(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, long companyId) protected com.liferay.portal.kernel.mobile.device.DevicegetDevice(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) protected StringgetErrorTemplateId(String errorTemplatePropertyKey, String langType) protected com.liferay.portal.kernel.template.TemplateResourcegetErrorTemplateResource(String langType) protected com.liferay.portal.kernel.template.TemplategetTemplate(String templateId, String script, String langType) protected StringgetTemplateId(String templateId, long companyId, long companyGroupId, long groupId) protected StringgetTemplatesPath(long companyId, long groupId, long classNameId) protected voidprepareTemplate(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.template.Template template) transform(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, Map<String, Object> contextObjects, String script, String langType, com.liferay.portal.kernel.io.unsync.UnsyncStringWriter unsyncStringWriter, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
-
Constructor Details
-
Transformer
-
Transformer
-
-
Method Details
-
transform
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, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception- Throws:
Exception
-
getCompany
protected com.liferay.portal.kernel.model.Company getCompany(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, long companyId) throws Exception - Throws:
Exception
-
getDevice
protected com.liferay.portal.kernel.mobile.device.Device getDevice(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) -
getErrorTemplateId
-
getErrorTemplateResource
protected com.liferay.portal.kernel.template.TemplateResource getErrorTemplateResource(String langType) -
getTemplate
protected com.liferay.portal.kernel.template.Template getTemplate(String templateId, String script, String langType) throws Exception - Throws:
Exception
-
getTemplateId
-
getTemplatesPath
-
prepareTemplate
protected void prepareTemplate(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, com.liferay.portal.kernel.template.Template template) throws Exception - Throws:
Exception
-