Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.templateparser
Class BaseTemplateParser

java.lang.Object
  extended by com.liferay.portal.kernel.templateparser.BaseTemplateParser
All Implemented Interfaces:
TemplateParser

public abstract class BaseTemplateParser
extends Object
implements TemplateParser


Constructor Summary
BaseTemplateParser()
           
 
Method Summary
protected  long getArticleGroupId()
           
protected  Company getCompany()
           
protected  long getCompanyGroupId()
           
protected  long getCompanyId()
           
protected  Device getDevice()
           
protected  long getGroupId()
           
 String getLanguageId()
           
protected  long getScopeGroupId()
           
 String getScript()
           
protected abstract  TemplateContext getTemplateContext()
           
protected  String getTemplateId()
           
protected abstract  List<TemplateNode> getTemplateNodes(Element element)
           
 ThemeDisplay getThemeDisplay()
           
 Map<String,String> getTokens()
           
 String getViewMode()
           
 String getXML()
           
protected  Map<String,Object> insertRequestVariables(Element element)
           
protected abstract  boolean mergeTemplate(TemplateContext templateContext, UnsyncStringWriter unsyncStringWriter)
           
protected  void populateTemplateContext(TemplateContext templateContext)
           
 void setContextObjects(Map<String,Object> contextObjects)
           
 void setLanguageId(String languageId)
           
 void setScript(String script)
           
 void setThemeDisplay(ThemeDisplay themeDisplay)
           
 void setTokens(Map<String,String> tokens)
           
 void setViewMode(String viewMode)
           
 void setXML(String xml)
           
 String transform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTemplateParser

public BaseTemplateParser()
Method Detail

getLanguageId

public String getLanguageId()
Specified by:
getLanguageId in interface TemplateParser

getScript

public String getScript()
Specified by:
getScript in interface TemplateParser

getThemeDisplay

public ThemeDisplay getThemeDisplay()
Specified by:
getThemeDisplay in interface TemplateParser

getTokens

public Map<String,String> getTokens()
Specified by:
getTokens in interface TemplateParser

getViewMode

public String getViewMode()
Specified by:
getViewMode in interface TemplateParser

getXML

public String getXML()
Specified by:
getXML in interface TemplateParser

setContextObjects

public void setContextObjects(Map<String,Object> contextObjects)

setLanguageId

public void setLanguageId(String languageId)
Specified by:
setLanguageId in interface TemplateParser

setScript

public void setScript(String script)
Specified by:
setScript in interface TemplateParser

setThemeDisplay

public void setThemeDisplay(ThemeDisplay themeDisplay)
Specified by:
setThemeDisplay in interface TemplateParser

setTokens

public void setTokens(Map<String,String> tokens)
Specified by:
setTokens in interface TemplateParser

setViewMode

public void setViewMode(String viewMode)
Specified by:
setViewMode in interface TemplateParser

setXML

public void setXML(String xml)
Specified by:
setXML in interface TemplateParser

transform

public String transform()
                 throws TransformException
Specified by:
transform in interface TemplateParser
Throws:
TransformException

getArticleGroupId

protected long getArticleGroupId()

getCompany

protected Company getCompany()
                      throws Exception
Throws:
Exception

getCompanyGroupId

protected long getCompanyGroupId()

getCompanyId

protected long getCompanyId()

getDevice

protected Device getDevice()

getGroupId

protected long getGroupId()

getScopeGroupId

protected long getScopeGroupId()

getTemplateContext

protected abstract TemplateContext getTemplateContext()
                                               throws Exception
Throws:
Exception

getTemplateId

protected String getTemplateId()

getTemplateNodes

protected abstract List<TemplateNode> getTemplateNodes(Element element)
                                                throws Exception
Throws:
Exception

insertRequestVariables

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

mergeTemplate

protected abstract boolean mergeTemplate(TemplateContext templateContext,
                                         UnsyncStringWriter unsyncStringWriter)
                                  throws Exception
Throws:
Exception

populateTemplateContext

protected void populateTemplateContext(TemplateContext templateContext)
                                throws Exception
Throws:
Exception

Liferay 6.1.2-ce-ga3