Class PortletTemplateJspBean

All Implemented Interfaces:
Serializable

@RequestScoped @Named @Controller(controllerJsp="ManagePortletTemplates.jsp", controllerPath="jsp/admin/style/", right="CORE_PORTLET_TEMPLATE_MANAGEMENT", securityTokenEnabled=true) public class PortletTemplateJspBean extends MVCAdminJspBean
Management of the portlet templates : the FreeMarker templates the portlets of each type can be rendered with. It replaces the XSL style management of the former versions.
See Also:
  • Field Details

  • Constructor Details

    • PortletTemplateJspBean

      public PortletTemplateJspBean()
  • Method Details

    • getManagePortletTemplates

      @View(value="managePortletTemplates", defaultView=true) public String getManagePortletTemplates(jakarta.servlet.http.HttpServletRequest request, Models model)
      Displays the templates, grouped by portlet type, optionally restricted to one portlet type. The model tells, for each template, whether the user may modify or delete it and whether a portlet uses it : a used template cannot be deleted.
      Parameters:
      request - the HTTP request
      model - the model
      Returns:
      the page
    • getCreatePortletTemplate

      @View("createPortletTemplate") public String getCreatePortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model)
      Displays the creation form
      Parameters:
      request - the HTTP request
      model - the model
      Returns:
      the page
    • doCreatePortletTemplate

      @Action("createPortletTemplate") public String doCreatePortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model, String strPortletTypeId, String strDescription, String strTemplatePath, BindingResult bindingResult)
      Creates a template
      Parameters:
      request - the HTTP request
      model - the model
      strPortletTypeId - the portlet type identifier
      strDescription - the description
      strTemplatePath - the template path
      bindingResult - the binding result
      Returns:
      the redirection
    • getModifyPortletTemplate

      @View("modifyPortletTemplate") public String getModifyPortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model)
      Displays the modification form
      Parameters:
      request - the HTTP request
      model - the model
      Returns:
      the page
    • doModifyPortletTemplate

      @Action("modifyPortletTemplate") public String doModifyPortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model, String strPortletTypeId, String strDescription, BindingResult bindingResult)
      Modifies a template. The template path is never changed : a template is bound to its file, a portlet needing another file needs another template.
      Parameters:
      request - the HTTP request
      model - the model
      strPortletTypeId - the portlet type identifier
      strDescription - the description
      bindingResult - the binding result
      Returns:
      the redirection
    • getConfirmRemovePortletTemplate

      @View(value="confirmRemovePortletTemplate", securityTokenAction="removePortletTemplate") public String getConfirmRemovePortletTemplate(jakarta.servlet.http.HttpServletRequest request)
      Displays the removal confirmation
      Parameters:
      request - the HTTP request
      Returns:
      the redirection to the confirmation message
    • doRemovePortletTemplate

      @Action("removePortletTemplate") public String doRemovePortletTemplate(jakarta.servlet.http.HttpServletRequest request)
      Removes a template. A template used by a portlet is never removed.
      Parameters:
      request - the HTTP request
      Returns:
      the redirection