DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.security.util
Class AccessUtils

java.lang.Object
  extended by org.dlese.dpc.schemedit.security.util.AccessUtils

public final class AccessUtils
extends Object


Constructor Summary
AccessUtils()
           
 
Method Summary
static SetInfo getAuthorizedSetInfo(String collection, List authorizedSets)
           
static List getManagableUsers(User sessionUser, List managedUsers, UserManager userManager)
           
static List getManagableUsers(User sessionUser, List managedUsers, UserManager userManager, Comparator comparator)
           
static List getManagedUsers(User sessionUser, List authorizedSets, UserManager userManager)
           
static List getManagedUsers(User sessionUser, List authorizedSets, UserManager userManager, Comparator comparator)
          build a list of users who are managed by the current sessionUser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessUtils

public AccessUtils()
Method Detail

getManagedUsers

public static List getManagedUsers(User sessionUser,
                                   List authorizedSets,
                                   UserManager userManager)

getManagedUsers

public static List getManagedUsers(User sessionUser,
                                   List authorizedSets,
                                   UserManager userManager,
                                   Comparator comparator)
build a list of users who are managed by the current sessionUser. This list contains all the users who have permission to access any of the collections managed by the sessionUser. Admin users manage all other users, including other admins.


getManagableUsers

public static List getManagableUsers(User sessionUser,
                                     List managedUsers,
                                     UserManager userManager)

getManagableUsers

public static List getManagableUsers(User sessionUser,
                                     List managedUsers,
                                     UserManager userManager,
                                     Comparator comparator)

getAuthorizedSetInfo

public static SetInfo getAuthorizedSetInfo(String collection,
                                           List authorizedSets)
                                    throws Exception
Throws:
Exception

DLESE Tools
v1.6.0