Class EditorProfileJspBean
java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.portal.web.editor.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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCreateEditorProfile(jakarta.servlet.http.HttpServletRequest request, Models model) Creates a profile, after the existing ones in the order of prioritydoModifyEditorProfile(jakarta.servlet.http.HttpServletRequest request, Models model) Modifies a profile.doMoveEditorProfile(jakarta.servlet.http.HttpServletRequest request) Moves a profile one step before or after in the order of prioritydoRemoveEditorProfile(jakarta.servlet.http.HttpServletRequest request) Removes a profile.getBackToDashboard(jakarta.servlet.http.HttpServletRequest request) The profiles are listed in the technical settings: the default view goes back theregetConfirmRemoveEditorProfile(jakarta.servlet.http.HttpServletRequest request) Displays the removal confirmationgetCreateEditorProfile(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the creation formstatic ReferenceListgetEditorsList(Locale locale) getModifyEditorProfile(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the modification formMethods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
processControllerMethods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, initMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
CONTROLLER_JSP
The controller JSP- See Also:
-
CONTROLLER_PATH
The controller path- See Also:
-
ACTION_MOVE_PROFILE
The action moving a profile, whose token the dashboard tab puts in its forms- See Also:
-
-
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 requestmodel- 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 requestmodel- 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 requestmodel- 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 requestmodel- 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
- Parameters:
locale- the locale- Returns:
- the editors of the back office a profile can belong to: all but "no editor"
-