Class PortletTemplate
java.lang.Object
fr.paris.lutece.portal.business.portlet.PortletTemplate
- All Implemented Interfaces:
fr.paris.lutece.portal.service.rbac.RBACResource
public class PortletTemplate
extends Object
implements fr.paris.lutece.portal.service.rbac.RBACResource
A FreeMarker template available to render the portlets of a given portlet type. It replaces the XSL styles of the former versions : a portlet chooses
one of the templates registered for its type, and renders its content through it.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe RBAC resource type of the portlet templates -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the label displayed to the administratorintgetId()Returns the template identifierReturns the identifier of the portlet type the template applies toReturns the template path, relative to the WEB-INF/templates directoryvoidsetDescription(String strDescription) Sets the label displayed to the administratorvoidsetId(int nId) Sets the template identifiervoidsetPortletTypeId(String strPortletTypeId) Sets the identifier of the portlet type the template applies tovoidsetTemplatePath(String strTemplatePath) Sets the template path, relative to the WEB-INF/templates directory
-
Field Details
-
RESOURCE_TYPE
The RBAC resource type of the portlet templates- See Also:
-
-
Constructor Details
-
PortletTemplate
public PortletTemplate()
-
-
Method Details
-
getId
public int getId()Returns the template identifier- Returns:
- the template identifier
-
setId
public void setId(int nId) Sets the template identifier- Parameters:
nId- the template identifier
-
getPortletTypeId
Returns the identifier of the portlet type the template applies to- Returns:
- the portlet type identifier
-
setPortletTypeId
Sets the identifier of the portlet type the template applies to- Parameters:
strPortletTypeId- the portlet type identifier
-
getDescription
Returns the label displayed to the administrator- Returns:
- the description
-
setDescription
Sets the label displayed to the administrator- Parameters:
strDescription- the description
-
getTemplatePath
Returns the template path, relative to the WEB-INF/templates directory- Returns:
- the template path
-
setTemplatePath
Sets the template path, relative to the WEB-INF/templates directory- Parameters:
strTemplatePath- the template path
-
getResourceTypeCode
- Specified by:
getResourceTypeCodein interfacefr.paris.lutece.portal.service.rbac.RBACResource
-
getResourceId
- Specified by:
getResourceIdin interfacefr.paris.lutece.portal.service.rbac.RBACResource
-