Class UserManagerAction

java.lang.Object
org.apache.struts.action.Action
org.dlese.dpc.schemedit.action.DCSAction
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
  • 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 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
      form - NOT YET DOCUMENTED
      request - The HTTP request we are processing
      response - The HTTP response we are creating
      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