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
public class AdminUserJspBean extends AdminFeaturesPageJspBean
This class provides the user interface to manage app user features ( manage, create, modify, remove, ... )- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AdminUserJspBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdoAnonymizeAdminUser(javax.servlet.http.HttpServletRequest request)Anonymize a userStringdoChangeFieldAnonymizeAdminUsers(javax.servlet.http.HttpServletRequest request)Change the anonymization status of user parameters.StringdoConfirmRemoveAdminUser(javax.servlet.http.HttpServletRequest request)Returns the page of confirmation for deleting a providerStringdoCreateAdminUser(javax.servlet.http.HttpServletRequest request)Process the data capture form of a new appUserDefaultPluginActionResultdoExportUsers(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Do export usersDefaultPluginActionResultdoImportUsersFromFile(javax.servlet.http.HttpServletRequest request)Do import users from a CSV fileStringdoInsertRegularExpression(javax.servlet.http.HttpServletRequest request)Do insert a regular expressionStringdoModifyAccountLifeTimeEmails(javax.servlet.http.HttpServletRequest request)Update an account life time emailStringdoModifyAdminUser(javax.servlet.http.HttpServletRequest request)Process the change form of an appUserStringdoModifyAdminUserPassword(javax.servlet.http.HttpServletRequest request)Process the change form of an appUser passwordStringdoModifyAdminUserRights(javax.servlet.http.HttpServletRequest request)Process the change form of an appUser rightsStringdoModifyAdminUserRoles(javax.servlet.http.HttpServletRequest request)Process the change form of an appUser rolesStringdoModifyAdminUserWorkgroups(javax.servlet.http.HttpServletRequest request)Process the change form of an appUser workspacesStringdoModifyDefaultUserParameterValues(javax.servlet.http.HttpServletRequest request)Modify the default user parameter values.StringdoModifyDefaultUserSecurityValues(javax.servlet.http.HttpServletRequest request)Modify the default user parameter security values.StringdoModifyEmailPattern(javax.servlet.http.HttpServletRequest request)Modify the email patternStringdoRemoveAdminUser(javax.servlet.http.HttpServletRequest request)Process to the confirmation of deleting of an AppUserStringdoRemoveAdvancedSecurityParameters(javax.servlet.http.HttpServletRequest request)Disable advanced security parametersStringdoRemoveRegularExpression(javax.servlet.http.HttpServletRequest request)Do remove a regular expressionStringdoSelectImportUser(javax.servlet.http.HttpServletRequest request)Performs checks on the selected user to import and redirects on the creation form.StringdoUseAdvancedSecurityParameters(javax.servlet.http.HttpServletRequest request)Enable advanced security parametersStringgetAnonymizeAdminUser(javax.servlet.http.HttpServletRequest request)Get the confirmation page before anonymizing a user.StringgetChangeFieldAnonymizeAdminUsers(javax.servlet.http.HttpServletRequest request)Get the page with the list of every anonymizable attributeStringgetChangeUseAdvancedSecurityParameters(javax.servlet.http.HttpServletRequest request)Get the admin message to confirm the enabling or the disabling of the advanced security parametersStringgetCreateAdminUser(javax.servlet.http.HttpServletRequest request)Returns the data capture form of a new UserStringgetExportUsers(javax.servlet.http.HttpServletRequest request)Get a page to export usersStringgetFindImportAdminUser(javax.servlet.http.HttpServletRequest request)Display the page for user import.StringgetImportUsersFromFile(javax.servlet.http.HttpServletRequest request)Get a page to import users from a CSV file.StringgetManageAdminUserRights(javax.servlet.http.HttpServletRequest request)Build the User right listStringgetManageAdminUserRoles(javax.servlet.http.HttpServletRequest request)Build the User role listStringgetManageAdminUsers(javax.servlet.http.HttpServletRequest request)Build the User listStringgetManageAdminUserWorkgroups(javax.servlet.http.HttpServletRequest request)Build the User workgroup listStringgetModifyAccountLifeTimeEmails(javax.servlet.http.HttpServletRequest request)Get the modify account life time emails pageStringgetModifyAdminUser(javax.servlet.http.HttpServletRequest request)Returns the form to update info about a AppUserStringgetModifyAdminUserRights(javax.servlet.http.HttpServletRequest request)Build the right listStringgetModifyAdminUserRoles(javax.servlet.http.HttpServletRequest request)Build the role listStringgetModifyAdminUserWorkgroups(javax.servlet.http.HttpServletRequest request)Build the assignable workgroups listStringgetModifyUserPassword(javax.servlet.http.HttpServletRequest request)Returns the form to update password of AppUserStringreactivateAccount(javax.servlet.http.HttpServletRequest request)Update a user account life time-
Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, init, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
-
-
-
Method Detail
-
getManageAdminUsers
public String getManageAdminUsers(javax.servlet.http.HttpServletRequest request)
Build the User list- Parameters:
request- Http Request- Returns:
- the AppUser list
-
getFindImportAdminUser
public String getFindImportAdminUser(javax.servlet.http.HttpServletRequest request)
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
public String doSelectImportUser(javax.servlet.http.HttpServletRequest request)
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
public String getCreateAdminUser(javax.servlet.http.HttpServletRequest request)
Returns the data capture form of a new User- Parameters:
request- The HTTP Request- Returns:
- The HTML form
-
doCreateAdminUser
public String doCreateAdminUser(javax.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(javax.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(javax.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(javax.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(javax.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
public String getImportUsersFromFile(javax.servlet.http.HttpServletRequest request)
Get a page to import users from a CSV file.- Parameters:
request- The request- Returns:
- The HTML content
-
doImportUsersFromFile
public DefaultPluginActionResult doImportUsersFromFile(javax.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
public String getExportUsers(javax.servlet.http.HttpServletRequest request)
Get a page to export users- Parameters:
request- The request- Returns:
- The html content
-
doExportUsers
public DefaultPluginActionResult doExportUsers(javax.servlet.http.HttpServletRequest request, javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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(javax.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
public String getChangeFieldAnonymizeAdminUsers(javax.servlet.http.HttpServletRequest request)
Get the page with the list of every anonymizable attribute- Parameters:
request- The request- Returns:
- The admin page
-
doChangeFieldAnonymizeAdminUsers
public String doChangeFieldAnonymizeAdminUsers(javax.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(javax.servlet.http.HttpServletRequest request)
Get the confirmation page before anonymizing a user.- Parameters:
request- The request- Returns:
- The URL of the confirmation page
-
doAnonymizeAdminUser
public String doAnonymizeAdminUser(javax.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
-
reactivateAccount
public String reactivateAccount(javax.servlet.http.HttpServletRequest request)
Update a user account life time- Parameters:
request- The request- Returns:
- The Jsp URL of the process result
-
getModifyAccountLifeTimeEmails
public String getModifyAccountLifeTimeEmails(javax.servlet.http.HttpServletRequest request)
Get the modify account life time emails page- Parameters:
request- The request- Returns:
- The html to display
-
doModifyAccountLifeTimeEmails
public String doModifyAccountLifeTimeEmails(javax.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
-
-