public abstract class BaseDDMTemplateHandler extends BaseTemplateHandler
| Constructor and Description |
|---|
BaseDDMTemplateHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addTemplateVariableGroup(java.util.Map<java.lang.String,TemplateVariableGroup> templateVariableGroups,
TemplateVariableGroup templateVariableGroup) |
protected void |
collectNestedFieldNameVariableName(DDMFormField parentDDMFormField,
java.util.Map<java.lang.String,java.lang.String> fieldNameVariableNameMap) |
protected java.lang.Class<?> |
getFieldVariableClass() |
protected TemplateVariableGroup |
getGeneralVariablesTemplateVariableGroup() |
protected TemplateVariableGroup |
getStructureFieldsTemplateVariableGroup(long ddmStructureId,
java.util.Locale locale) |
protected abstract TemplateVariableCodeHandler |
getTemplateVariableCodeHandler() |
java.util.Map<java.lang.String,TemplateVariableGroup> |
getTemplateVariableGroups(long classPK,
java.lang.String language,
java.util.Locale locale)
Returns the template's map of script variable groups for which hints are
displayed in the template editor palette.
|
protected TemplateVariableGroup |
getUtilTemplateVariableGroup() |
boolean |
isDisplayTemplateHandler()
Returns
true if the entity is a display template handler. |
getCustomContextObjects, getDefaultTemplateElements, getDefaultTemplateKey, getRestrictedVariables, getTemplatesConfigPath, getTemplatesHelpContent, getTemplatesHelpPath, getTemplatesHelpPropertyKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassName, getName, getResourceNamepublic java.util.Map<java.lang.String,TemplateVariableGroup> getTemplateVariableGroups(long classPK, java.lang.String language, java.util.Locale locale) throws java.lang.Exception
TemplateHandler
Script variables can be grouped arbitrarily. As examples, a group of
entity fields could be mapped to the keyword Fields, or a
group of general variables portal variables could be mapped to the phrase
General Variables, etc.
classPK - the primary key of the entity that defines the variable
groups for the template. For example, consider specifying the
primary key of the structure associated to the template.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.locale - the locale of the variable groups to getjava.lang.Exception - if an exception occurred retrieving the template
variable groupspublic boolean isDisplayTemplateHandler()
TemplateHandlertrue if the entity is a display template handler.true if the entity is a display template handler;
false otherwiseprotected void addTemplateVariableGroup(java.util.Map<java.lang.String,TemplateVariableGroup> templateVariableGroups, TemplateVariableGroup templateVariableGroup)
protected void collectNestedFieldNameVariableName(DDMFormField parentDDMFormField, java.util.Map<java.lang.String,java.lang.String> fieldNameVariableNameMap) throws PortalException
PortalExceptionprotected java.lang.Class<?> getFieldVariableClass()
protected TemplateVariableGroup getGeneralVariablesTemplateVariableGroup()
protected TemplateVariableGroup getStructureFieldsTemplateVariableGroup(long ddmStructureId, java.util.Locale locale) throws PortalException
PortalExceptionprotected abstract TemplateVariableCodeHandler getTemplateVariableCodeHandler()
protected TemplateVariableGroup getUtilTemplateVariableGroup()