Liferay 6.2-ce-ga5

com.liferay.portal.kernel.template
Interface TemplateHandler

All Known Implementing Classes:
AssetCategoriesNavigationPortletDisplayTemplateHandler, AssetPublisherPortletDisplayTemplateHandler, AssetTagsNavigationPortletDisplayTemplateHandler, BaseDDMTemplateHandler, BasePortletDisplayTemplateHandler, BaseTemplateHandler, BlogsPortletDisplayTemplateHandler, DDLTemplateHandler, DocumentLibraryPortletDisplayTemplateHandler, JournalTemplateHandler, SiteMapPortletDisplayTemplateHandler, WikiPortletDisplayTemplateHandler

public interface TemplateHandler


Method Summary
 String getClassName()
          Returns the class name of the template handler.
 List<Element> getDefaultTemplateElements()
          Returns a list of elements containing the information of the portlet display templates to be installed by default.
 String getName(Locale locale)
          Returns the name of the template handler.
 String getResourceName()
          Returns the name of the resource the template is associated with.
 String[] getRestrictedVariables(String language)
           
 String getTemplatesHelpPath(String language)
          Returns the path to the help template.
 String getTemplatesHelpPropertyKey()
          Returns the name of the property in portal.properties that defines the path to the help of template.
 Map<String,TemplateVariableGroup> getTemplateVariableGroups(long classPK, String language, Locale locale)
           
 

Method Detail

getClassName

String getClassName()
Returns the class name of the template handler.

Returns:
the class name of the template handler

getDefaultTemplateElements

List<Element> getDefaultTemplateElements()
                                         throws Exception
Returns a list of elements containing the information of the portlet display templates to be installed by default.

Returns:
a list of elements containing the information of the portlet display templates to be installed by default. These templates will be installed when registering the portlet
Throws:
Exception - if an exception occurred assembling the default template elements

getName

String getName(Locale locale)
Returns the name of the template handler.

Parameters:
locale - the locale of the template handler name to get
Returns:
the name of the template handler

getResourceName

String getResourceName()
Returns the name of the resource the template is associated with. Permissions on the resource are checked when adding a new template.

Returns:
the name of the resource

getRestrictedVariables

String[] getRestrictedVariables(String language)

getTemplatesHelpPath

String getTemplatesHelpPath(String language)
Returns the path to the help template.

Parameters:
language - the language of the template
Returns:
the path to the help template. This template will be shown as a help message when the user creates a new template.

getTemplatesHelpPropertyKey

String getTemplatesHelpPropertyKey()
Returns the name of the property in portal.properties that defines the path to the help of template.

Returns:
the name of the property in portal.properties that defines the path to the help template.

getTemplateVariableGroups

Map<String,TemplateVariableGroup> getTemplateVariableGroups(long classPK,
                                                            String language,
                                                            Locale locale)
                                                            throws Exception
Throws:
Exception

Liferay 6.2-ce-ga5