Class UserManagerAction
java.lang.Object
org.apache.struts.action.Action
org.dlese.dpc.schemedit.action.DCSAction
org.dlese.dpc.schemedit.security.action.UserManagerAction
Controller for Manage Users page, which displays users and their roles for
each collection, and allows for editing these roles, as well as deleting
users.
- Author:
- Jonathan Ostwald
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNOT YET DOCUMENTEDclassNOT YET DOCUMENTED -
Field Summary
Fields inherited from class org.dlese.dpc.schemedit.action.DCSAction
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManagerFields inherited from class org.apache.struts.action.Action
defaultLocale, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardexecute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it).getUserRoleMap(Collection managedUsers, User sessionUser) Create a mapping from username to List of CollectionRoleBeans, which are sorted by collection.getUserRoleMap(User user, User sessionUser) Gets the userRoleMap attribute of the UserManagerAction objectMethods inherited from class org.dlese.dpc.schemedit.action.DCSAction
getMetaDataFramework, getRequiredContextAttributeValue, getSessionBean, getSessionUser, getSessionUser, getSessionUserName, initializeFromContextMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
Constructor Details
-
UserManagerAction
public UserManagerAction()
-
-
Method Details
-
execute
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). Return anActionForwardinstance describing where and how control should be forwarded, ornullif the response has already been completed.- Overrides:
executein classorg.apache.struts.action.Action- Parameters:
mapping- The ActionMapping used to select this instanceform- NOT YET DOCUMENTEDrequest- The HTTP request we are processingresponse- The HTTP response we are creating- Returns:
- NOT YET DOCUMENTED
- Throws:
IOException- if an input/output error occursServletException- if a servlet exception occurs
-
getUserRoleMap
Gets the userRoleMap attribute of the UserManagerAction object- Parameters:
user- NOT YET DOCUMENTEDsessionUser- NOT YET DOCUMENTED- Returns:
- The userRoleMap value
-
getUserRoleMap
Create a mapping from username to List of CollectionRoleBeans, which are sorted by collection. Don't worry about sorting users, this will be done on a separate data structure.- Parameters:
managedUsers- NOT YET DOCUMENTEDsessionUser- NOT YET DOCUMENTED- Returns:
- The userRoleMap value
-