@ProviderType public abstract class BaseTemplateHandler extends Object implements TemplateHandler
Constructor and Description |
---|
BaseTemplateHandler() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getCustomContextObjects() |
List<Element> |
getDefaultTemplateElements()
Returns the elements containing the information of the portlet display
templates to be installed by default.
|
String |
getDefaultTemplateKey()
Returns the key of the template handler's default template.
|
String[] |
getRestrictedVariables(String language)
Returns the restricted variables that are excluded from the template's
context.
|
protected String |
getTemplatesConfigPath() |
String |
getTemplatesHelpContent(String language)
Returns initial template content for helping the user create a new
template.
|
String |
getTemplatesHelpPath(String language)
Returns the path to the template's help content.
|
String |
getTemplatesHelpPropertyKey()
Returns the name of the property in
portal.properties that
defines the path to the template's help content. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassName, getName, getResourceName, getTemplateVariableGroups, isDisplayTemplateHandler
public Map<String,Object> getCustomContextObjects()
getCustomContextObjects
in interface TemplateHandler
public List<Element> getDefaultTemplateElements() throws Exception
TemplateHandler
getDefaultTemplateElements
in interface TemplateHandler
Exception
- if an exception occurred assembling the default
template elementspublic String getDefaultTemplateKey()
TemplateHandler
getDefaultTemplateKey
in interface TemplateHandler
public String[] getRestrictedVariables(String language)
TemplateHandler
getRestrictedVariables
in interface TemplateHandler
language
- the template's scripting language. Acceptable values for
the FreeMarker, Velocity, or XSL languages are TemplateConstants.LANG_TYPE_FTL
, TemplateConstants.LANG_TYPE_VM
, or TemplateConstants.LANG_TYPE_XSL
, respectively.public String getTemplatesHelpContent(String language)
TemplateHandler
getTemplatesHelpContent
in interface TemplateHandler
language
- the template's scripting language. Acceptable values for
the FreeMarker, Velocity, or XSL languages are TemplateConstants.LANG_TYPE_FTL
, TemplateConstants.LANG_TYPE_VM
, or TemplateConstants.LANG_TYPE_XSL
, respectively.public String getTemplatesHelpPath(String language)
TemplateHandler
getTemplatesHelpPath
in interface TemplateHandler
language
- the template's scripting language. Acceptable values for
the FreeMarker, Velocity, or XSL languages are TemplateConstants.LANG_TYPE_FTL
, TemplateConstants.LANG_TYPE_VM
, or TemplateConstants.LANG_TYPE_XSL
, respectively.public String getTemplatesHelpPropertyKey()
TemplateHandler
portal.properties
that
defines the path to the template's help content.getTemplatesHelpPropertyKey
in interface TemplateHandler
portal.properties
that
defines the path to the template's help contentprotected String getTemplatesConfigPath()