Liferay 7.0-ce-m6

com.liferay.portlet.journal.util
Class JournalTransformer

java.lang.Object
  extended by com.liferay.portlet.journal.util.JournalTransformer

public class JournalTransformer
extends Object


Constructor Summary
JournalTransformer(String errorTemplatePropertyKey, boolean restricted)
           
JournalTransformer(String transformerListenerPropertyKey, String errorTemplatePropertyKey, boolean restricted)
           
 
Method Summary
protected  String doTransform(ThemeDisplay themeDisplay, Map<String,Object> contextObjects, Map<String,String> tokens, String viewMode, String languageId, Document document, PortletRequestModel portletRequestModel, String script, String langType, boolean propagateException)
           
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, Document document, 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, long classNameId)
           
protected  Map<String,Object> insertRequestVariables(Element element)
           
protected  void mergeTemplate(Template template, UnsyncStringWriter unsyncStringWriter, boolean propagateException)
           
 String transform(ThemeDisplay themeDisplay, Map<String,Object> contextObjects, Map<String,String> tokens, String viewMode, String languageId, Document document, PortletRequestModel portletRequestModel, String script, String langType, boolean propagateException)
           
 String transform(ThemeDisplay themeDisplay, Map<String,String> tokens, String viewMode, String languageId, Document document, PortletRequestModel portletRequestModel, String script, String langType)
           
 String transform(ThemeDisplay themeDisplay, Map<String,String> tokens, String viewMode, String languageId, Document document, PortletRequestModel portletRequestModel, String script, String langType, boolean propagateException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalTransformer

public JournalTransformer(String errorTemplatePropertyKey,
                          boolean restricted)

JournalTransformer

public JournalTransformer(String transformerListenerPropertyKey,
                          String errorTemplatePropertyKey,
                          boolean restricted)
Method Detail

transform

public String transform(ThemeDisplay themeDisplay,
                        Map<String,Object> contextObjects,
                        Map<String,String> tokens,
                        String viewMode,
                        String languageId,
                        Document document,
                        PortletRequestModel portletRequestModel,
                        String script,
                        String langType,
                        boolean propagateException)
                 throws Exception
Throws:
Exception

transform

public String transform(ThemeDisplay themeDisplay,
                        Map<String,String> tokens,
                        String viewMode,
                        String languageId,
                        Document document,
                        PortletRequestModel portletRequestModel,
                        String script,
                        String langType)
                 throws Exception
Throws:
Exception

transform

public String transform(ThemeDisplay themeDisplay,
                        Map<String,String> tokens,
                        String viewMode,
                        String languageId,
                        Document document,
                        PortletRequestModel portletRequestModel,
                        String script,
                        String langType,
                        boolean propagateException)
                 throws Exception
Throws:
Exception

doTransform

protected String doTransform(ThemeDisplay themeDisplay,
                             Map<String,Object> contextObjects,
                             Map<String,String> tokens,
                             String viewMode,
                             String languageId,
                             Document document,
                             PortletRequestModel portletRequestModel,
                             String script,
                             String langType,
                             boolean propagateException)
                      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,
                               Document document,
                               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,
                                  long classNameId)

insertRequestVariables

protected Map<String,Object> insertRequestVariables(Element element)

mergeTemplate

protected void mergeTemplate(Template template,
                             UnsyncStringWriter unsyncStringWriter,
                             boolean propagateException)
                      throws Exception
Throws:
Exception

Liferay 7.0-ce-m6