com.liferay.portal.kernel.templateparser
Class BaseTemplateParser
java.lang.Object
com.liferay.portal.kernel.templateparser.BaseTemplateParser
- All Implemented Interfaces:
- TemplateParser
public abstract class BaseTemplateParser
- extends Object
- implements TemplateParser
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseTemplateParser
public BaseTemplateParser()
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