public class DDMTemplateVariableCodeHandler
extends java.lang.Object
implements com.liferay.portal.kernel.template.TemplateVariableCodeHandler
Constructor and Description |
---|
DDMTemplateVariableCodeHandler(java.lang.ClassLoader classLoader,
java.lang.String templatePath,
java.util.Set<java.lang.String> templateNames) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
generate(com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition,
java.lang.String language) |
protected com.liferay.portal.kernel.template.Template |
getTemplate(java.lang.String templateId) |
protected java.lang.String |
getTemplateContent(com.liferay.portal.kernel.template.Template template,
com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition,
java.lang.String language) |
protected java.lang.String |
getTemplateId(java.lang.String dataType) |
protected java.lang.String |
getTemplatePath() |
protected java.lang.String |
handleRepeatableField(com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition,
java.lang.String language,
java.lang.String templateContent) |
protected void |
prepareTemplate(com.liferay.portal.kernel.template.Template template,
com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition,
java.lang.String language) |
public DDMTemplateVariableCodeHandler(java.lang.ClassLoader classLoader, java.lang.String templatePath, java.util.Set<java.lang.String> templateNames)
public java.lang.String[] generate(com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition, java.lang.String language) throws java.lang.Exception
generate
in interface com.liferay.portal.kernel.template.TemplateVariableCodeHandler
java.lang.Exception
protected com.liferay.portal.kernel.template.Template getTemplate(java.lang.String templateId) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getTemplateContent(com.liferay.portal.kernel.template.Template template, com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition, java.lang.String language) throws java.lang.Exception
java.lang.Exception
protected java.lang.String getTemplateId(java.lang.String dataType)
protected java.lang.String getTemplatePath()
protected java.lang.String handleRepeatableField(com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition, java.lang.String language, java.lang.String templateContent) throws java.lang.Exception
java.lang.Exception
protected void prepareTemplate(com.liferay.portal.kernel.template.Template template, com.liferay.portal.kernel.template.TemplateVariableDefinition templateVariableDefinition, java.lang.String language)