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 Details

    • RESOURCE_TYPE

      public static final String 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

      public String getPortletTypeId()
      Returns the identifier of the portlet type the template applies to
      Returns:
      the portlet type identifier
    • setPortletTypeId

      public void setPortletTypeId(String strPortletTypeId)
      Sets the identifier of the portlet type the template applies to
      Parameters:
      strPortletTypeId - the portlet type identifier
    • getDescription

      public String getDescription()
      Returns the label displayed to the administrator
      Returns:
      the description
    • setDescription

      public void setDescription(String strDescription)
      Sets the label displayed to the administrator
      Parameters:
      strDescription - the description
    • getTemplatePath

      public String getTemplatePath()
      Returns the template path, relative to the WEB-INF/templates directory
      Returns:
      the template path
    • setTemplatePath

      public void setTemplatePath(String strTemplatePath)
      Sets the template path, relative to the WEB-INF/templates directory
      Parameters:
      strTemplatePath - the template path
    • getResourceTypeCode

      public String getResourceTypeCode()
      Specified by:
      getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
    • getResourceId

      public String getResourceId()
      Specified by:
      getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource