Class EditorProfileJspBean

All Implemented Interfaces:
Serializable

@RequestScoped @Named @Controller(controllerJsp="ManageEditorProfiles.jsp", controllerPath="jsp/admin/admindashboard/", right="CORE_EDITORS_MANAGEMENT", securityTokenEnabled=true) public class EditorProfileJspBean extends MVCAdminJspBean
Management of the profiles of the back office rich text editors. The profiles are listed in the "Text editor" tab of the technical settings (EditorAdminDashboardComponent): this controller only holds their forms and actions, and brings the user back to that tab. A profile belongs to the editor chosen at its creation, the editor of the back office at that time by default, and keeps it.
See Also:
  • Field Details

  • Constructor Details

    • EditorProfileJspBean

      public EditorProfileJspBean()
  • Method Details

    • getBackToDashboard

      @View(value="backToDashboard", defaultView=true) public String getBackToDashboard(jakarta.servlet.http.HttpServletRequest request)
      The profiles are listed in the technical settings: the default view goes back there
      Parameters:
      request - the HTTP request
      Returns:
      the redirection to the tab of the editors
    • getCreateEditorProfile

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

      @Action("createEditorProfile") public String doCreateEditorProfile(jakarta.servlet.http.HttpServletRequest request, Models model)
      Creates a profile, after the existing ones in the order of priority
      Parameters:
      request - the HTTP request
      model - the model
      Returns:
      the redirection to the tab of the editors, or the form with its errors
    • getModifyEditorProfile

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

      @Action("modifyEditorProfile") public String doModifyEditorProfile(jakarta.servlet.http.HttpServletRequest request, Models model)
      Modifies a profile. Its editor is never changed, nor the targets of a default profile: it applies when no other profile of its editor does.
      Parameters:
      request - the HTTP request
      model - the model
      Returns:
      the redirection to the tab of the editors, or the form with its errors
    • getConfirmRemoveEditorProfile

      @View(value="confirmRemoveEditorProfile", securityTokenAction="removeEditorProfile") public String getConfirmRemoveEditorProfile(jakarta.servlet.http.HttpServletRequest request)
      Displays the removal confirmation
      Parameters:
      request - the HTTP request
      Returns:
      the redirection to the confirmation message
    • doRemoveEditorProfile

      @Action("removeEditorProfile") public String doRemoveEditorProfile(jakarta.servlet.http.HttpServletRequest request)
      Removes a profile. The default profile is never removed.
      Parameters:
      request - the HTTP request
      Returns:
      the redirection to the tab of the editors
    • doMoveEditorProfile

      @Action("moveEditorProfile") public String doMoveEditorProfile(jakarta.servlet.http.HttpServletRequest request)
      Moves a profile one step before or after in the order of priority
      Parameters:
      request - the HTTP request
      Returns:
      the redirection to the tab of the editors
    • getEditorsList

      public static ReferenceList getEditorsList(Locale locale)
      Parameters:
      locale - the locale
      Returns:
      the editors of the back office a profile can belong to: all but "no editor"