Package fr.paris.lutece.portal.web.user
Class AdminUserJspBean
java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.user.AdminUserJspBean
- All Implemented Interfaces:
Serializable
This class provides the user interface to manage app user features ( manage, create, modify, remove, ... )
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoAnonymizeAdminUser(jakarta.servlet.http.HttpServletRequest request) Anonymize a userdoChangeFieldAnonymizeAdminUsers(jakarta.servlet.http.HttpServletRequest request) Change the anonymization status of user parameters.doConfirmRemoveAdminUser(jakarta.servlet.http.HttpServletRequest request) Returns the page of confirmation for deleting a providerdoCreateAdminUser(jakarta.servlet.http.HttpServletRequest request) Process the data capture form of a new appUserdoExportUsers(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Do export usersdoImportUsersFromFile(jakarta.servlet.http.HttpServletRequest request) Do import users from a CSV filedoInsertRegularExpression(jakarta.servlet.http.HttpServletRequest request) Do insert a regular expressiondoModifyAccountLifeTimeEmails(jakarta.servlet.http.HttpServletRequest request) Update an account life time emaildoModifyAdminUser(jakarta.servlet.http.HttpServletRequest request) Process the change form of an appUserdoModifyAdminUserPassword(jakarta.servlet.http.HttpServletRequest request) Process the change form of an appUser passworddoModifyAdminUserRights(jakarta.servlet.http.HttpServletRequest request) Process the change form of an appUser rightsdoModifyAdminUserRoles(jakarta.servlet.http.HttpServletRequest request) Process the change form of an appUser rolesdoModifyAdminUserWorkgroups(jakarta.servlet.http.HttpServletRequest request) Process the change form of an appUser workspacesdoModifyDefaultUserParameterValues(jakarta.servlet.http.HttpServletRequest request) Modify the default user parameter values.doModifyDefaultUserSecurityValues(jakarta.servlet.http.HttpServletRequest request) Modify the default user parameter security values.doModifyEmailPattern(jakarta.servlet.http.HttpServletRequest request) Modify the email patterndoRemoveAdminUser(jakarta.servlet.http.HttpServletRequest request) Process to the confirmation of deleting of an AppUserdoRemoveAdvancedSecurityParameters(jakarta.servlet.http.HttpServletRequest request) Disable advanced security parametersdoRemoveRegularExpression(jakarta.servlet.http.HttpServletRequest request) Do remove a regular expressiondoSelectImportUser(jakarta.servlet.http.HttpServletRequest request) Performs checks on the selected user to import and redirects on the creation form.doUseAdvancedSecurityParameters(jakarta.servlet.http.HttpServletRequest request) Enable advanced security parametersgetAnonymizeAdminUser(jakarta.servlet.http.HttpServletRequest request) Get the confirmation page before anonymizing a user.getChangeFieldAnonymizeAdminUsers(jakarta.servlet.http.HttpServletRequest request) Get the page with the list of every anonymizable attributegetChangeUseAdvancedSecurityParameters(jakarta.servlet.http.HttpServletRequest request) Get the admin message to confirm the enabling or the disabling of the advanced security parametersgetCreateAdminUser(jakarta.servlet.http.HttpServletRequest request) Returns the data capture form of a new UsergetExportUsers(jakarta.servlet.http.HttpServletRequest request) Get a page to export usersgetFindImportAdminUser(jakarta.servlet.http.HttpServletRequest request) Display the page for user import.getImportUsersFromFile(jakarta.servlet.http.HttpServletRequest request) Get a page to import users from a CSV file.getManageAdminUserRights(jakarta.servlet.http.HttpServletRequest request) Build the User right listgetManageAdminUserRoles(jakarta.servlet.http.HttpServletRequest request) Build the User role listgetManageAdminUsers(jakarta.servlet.http.HttpServletRequest request) Build the User listgetManageAdminUserWorkgroups(jakarta.servlet.http.HttpServletRequest request) Build the User workgroup listgetModifyAccountLifeTimeEmails(jakarta.servlet.http.HttpServletRequest request) Get the modify account life time emails pagegetModifyAdminUser(jakarta.servlet.http.HttpServletRequest request) Returns the form to update info about a AppUsergetModifyAdminUserRights(jakarta.servlet.http.HttpServletRequest request) Build the right listgetModifyAdminUserRoles(jakarta.servlet.http.HttpServletRequest request) Build the role listgetModifyAdminUserWorkgroups(jakarta.servlet.http.HttpServletRequest request) Build the assignable workgroups listgetModifyUserPassword(jakarta.servlet.http.HttpServletRequest request) Returns the form to update password of AppUserreactivateAccount(jakarta.servlet.http.HttpServletRequest request) Update a user account life timeMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, init, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
RIGHT_USERS_MANAGEMENT
- See Also:
-
-
Constructor Details
-
AdminUserJspBean
public AdminUserJspBean()
-
-
Method Details
-
getManageAdminUsers
Build the User list- Parameters:
request- Http Request- Returns:
- the AppUser list
-
getFindImportAdminUser
Display the page for user import. This page is used in module mode to link a user to its code in the module (for later authentication) and to populate the creation form with the data the module is able to provide.- Parameters:
request- the http request- Returns:
- the html code for the import page
-
doSelectImportUser
Performs checks on the selected user to import and redirects on the creation form. This page is used in module mode.- Parameters:
request- The HTTP Request- Returns:
- The Jsp URL of the creation form if check ok, an error page url otherwise
-
getCreateAdminUser
Returns the data capture form of a new User- Parameters:
request- The HTTP Request- Returns:
- The HTML form
-
doCreateAdminUser
public String doCreateAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process the data capture form of a new appUser- Parameters:
request- The HTTP Request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the security token is invalid
-
getModifyAdminUser
public String getModifyAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Returns the form to update info about a AppUser- Parameters:
request- The Http request- Returns:
- The HTML form to update info
- Throws:
AccessDeniedException- If the current user is not authorized to modify the user
-
doModifyAdminUser
public String doModifyAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process the change form of an appUser- Parameters:
request- The Http request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the current user is not authorized to modify the user
-
getModifyUserPassword
public String getModifyUserPassword(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Returns the form to update password of AppUser- Parameters:
request- The Http request- Returns:
- The HTML form to update info
- Throws:
AccessDeniedException- If the current user is not authorized to modify the user
-
doModifyAdminUserPassword
public String doModifyAdminUserPassword(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process the change form of an appUser password- Parameters:
request- The Http request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the current user is not authorized to modify the user
-
getImportUsersFromFile
Get a page to import users from a CSV file.- Parameters:
request- The request- Returns:
- The HTML content
-
doImportUsersFromFile
public DefaultPluginActionResult doImportUsersFromFile(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Do import users from a CSV file- Parameters:
request- The request- Returns:
- A DefaultPluginActionResult with the URL of the page to display, or the HTML content
- Throws:
AccessDeniedException- if the security token is invalid
-
getExportUsers
Get a page to export users- Parameters:
request- The request- Returns:
- The html content
-
doExportUsers
public DefaultPluginActionResult doExportUsers(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException Do export users- Parameters:
request- The requestresponse- The response- Returns:
- A DefaultPluginActionResult containing the result, or null if the file download has been initialized
- Throws:
IOException- If an IOException occurs
-
doConfirmRemoveAdminUser
public String doConfirmRemoveAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Returns the page of confirmation for deleting a provider- Parameters:
request- The Http Request- Returns:
- the confirmation url
- Throws:
AccessDeniedException- When not authorized
-
doRemoveAdminUser
public String doRemoveAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process to the confirmation of deleting of an AppUser- Parameters:
request- The Http Request- Returns:
- the HTML page
- Throws:
AccessDeniedException- If the user is not authorized
-
getManageAdminUserRights
public String getManageAdminUserRights(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Build the User right list- Parameters:
request- Http Request- Returns:
- the right list
- Throws:
AccessDeniedException- If the user is not authorized
-
getManageAdminUserWorkgroups
public String getManageAdminUserWorkgroups(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Build the User workgroup list- Parameters:
request- Http Request- Returns:
- the right list
- Throws:
AccessDeniedException- If the user is not authorized
-
getModifyAdminUserWorkgroups
public String getModifyAdminUserWorkgroups(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Build the assignable workgroups list- Parameters:
request- Http Request- Returns:
- the right list
- Throws:
AccessDeniedException- If the user is not authorized
-
getModifyAdminUserRights
public String getModifyAdminUserRights(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Build the right list- Parameters:
request- Http Request- Returns:
- the right list
- Throws:
AccessDeniedException- If the user is not authorized
-
doModifyAdminUserRights
public String doModifyAdminUserRights(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process the change form of an appUser rights- Parameters:
request- The Http request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the user is not authorized
-
getManageAdminUserRoles
public String getManageAdminUserRoles(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Build the User role list- Parameters:
request- Http Request- Returns:
- the right list
- Throws:
AccessDeniedException- If the user is not authorized
-
getModifyAdminUserRoles
public String getModifyAdminUserRoles(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Build the role list- Parameters:
request- Http Request- Returns:
- the right list
- Throws:
AccessDeniedException- IF the user is not authorized
-
doModifyAdminUserRoles
public String doModifyAdminUserRoles(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process the change form of an appUser roles- Parameters:
request- The Http request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- IF the user is not authorized
-
doModifyAdminUserWorkgroups
public String doModifyAdminUserWorkgroups(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Process the change form of an appUser workspaces- Parameters:
request- The Http request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the user is not authorized
-
doModifyDefaultUserParameterValues
public String doModifyDefaultUserParameterValues(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Modify the default user parameter values.- Parameters:
request- HttpServletRequest- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the user does not have the permission
-
doModifyDefaultUserSecurityValues
public String doModifyDefaultUserSecurityValues(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Modify the default user parameter security values.- Parameters:
request- HttpServletRequest- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the user does not have the permission
-
doModifyEmailPattern
public String doModifyEmailPattern(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Modify the email pattern- Parameters:
request- HttpServletRequest- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- If the user does not have the permission
-
doInsertRegularExpression
public String doInsertRegularExpression(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Do insert a regular expression- Parameters:
request-HttpServletRequest- Returns:
- the jsp return
- Throws:
AccessDeniedException- access denied if the AdminUser does not have the permission
-
doRemoveRegularExpression
public String doRemoveRegularExpression(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Do remove a regular expression- Parameters:
request-HttpServletRequest- Returns:
- the jsp return
- Throws:
AccessDeniedException- access denied if the AdminUser does not have the permission
-
getChangeUseAdvancedSecurityParameters
public String getChangeUseAdvancedSecurityParameters(jakarta.servlet.http.HttpServletRequest request) Get the admin message to confirm the enabling or the disabling of the advanced security parameters- Parameters:
request- The request- Returns:
- The url of the admin message
-
doUseAdvancedSecurityParameters
public String doUseAdvancedSecurityParameters(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Enable advanced security parameters- Parameters:
request- The request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- if the security token is invalid
-
doRemoveAdvancedSecurityParameters
public String doRemoveAdvancedSecurityParameters(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Disable advanced security parameters- Parameters:
request- The request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- if the security token is invalid
-
getChangeFieldAnonymizeAdminUsers
Get the page with the list of every anonymizable attribute- Parameters:
request- The request- Returns:
- The admin page
-
doChangeFieldAnonymizeAdminUsers
public String doChangeFieldAnonymizeAdminUsers(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Change the anonymization status of user parameters.- Parameters:
request- The request- Returns:
- the Jsp URL of the process result
- Throws:
AccessDeniedException- If the security token is invalid
-
getAnonymizeAdminUser
public String getAnonymizeAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Get the confirmation page before anonymizing a user.- Parameters:
request- The request- Returns:
- The URL of the confirmation page
- Throws:
AccessDeniedException- If the user is not authorized to modify the user to anonymize
-
doAnonymizeAdminUser
public String doAnonymizeAdminUser(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Anonymize a user- Parameters:
request- The request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- in case of invalid security token or if the user is not authorized to modify the user to anonymize
-
reactivateAccount
Update a user account life time- Parameters:
request- The request- Returns:
- The Jsp URL of the process result
-
getModifyAccountLifeTimeEmails
Get the modify account life time emails page- Parameters:
request- The request- Returns:
- The html to display
-
doModifyAccountLifeTimeEmails
public String doModifyAccountLifeTimeEmails(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException Update an account life time email- Parameters:
request- The request- Returns:
- The Jsp URL of the process result
- Throws:
AccessDeniedException- if the security token is invalid
-