DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.action
Class UserManagerAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.dlese.dpc.schemedit.action.DCSAction
          extended by org.dlese.dpc.schemedit.security.action.UserManagerAction

public final class UserManagerAction
extends DCSAction

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
 class UserManagerAction.CollectionRoleBean
          NOT YET DOCUMENTED
 class UserManagerAction.CollectionRoleBeanSorter
          NOT YET DOCUMENTED
 
Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.action.DCSAction
accessManager, collectionRegistry, dcsDataManager, frameworkRegistry, ndrServiceEnabled, repositoryManager, repositoryService, requiredRole, sessionRegistry, userManager
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
UserManagerAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward execute(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).
 Map getUserRoleMap(Collection managedUsers, User sessionUser)
          Create a mapping from username to List of CollectionRoleBeans, which are sorted by collection.
 Map getUserRoleMap(User user, User sessionUser)
          Gets the userRoleMap attribute of the UserManagerAction object
 
Methods inherited from class org.dlese.dpc.schemedit.action.DCSAction
getMetaDataFramework, getRequiredContextAttributeValue, getSessionBean, getSessionUser, getSessionUser, getSessionUserName, initializeFromContext
 
Methods 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManagerAction

public UserManagerAction()
Method Detail

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 an ActionForward instance describing where and how control should be forwarded, or null if the response has already been completed.

Overrides:
execute in class org.apache.struts.action.Action
Parameters:
mapping - The ActionMapping used to select this instance
request - The HTTP request we are processing
response - The HTTP response we are creating
form - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED
Throws:
IOException - if an input/output error occurs
ServletException - if a servlet exception occurs

getUserRoleMap

public Map getUserRoleMap(User user,
                          User sessionUser)
Gets the userRoleMap attribute of the UserManagerAction object

Parameters:
user - NOT YET DOCUMENTED
sessionUser - NOT YET DOCUMENTED
Returns:
The userRoleMap value

getUserRoleMap

public Map getUserRoleMap(Collection managedUsers,
                          User sessionUser)
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 DOCUMENTED
sessionUser - NOT YET DOCUMENTED
Returns:
The userRoleMap value

DLESE Tools
v1.6.0