Class AccessUtils
java.lang.Object
org.dlese.dpc.schemedit.security.util.AccessUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SetInfogetAuthorizedSetInfo(String collection, List authorizedSets) static ListgetManagableUsers(User sessionUser, List managedUsers, UserManager userManager) static ListgetManagableUsers(User sessionUser, List managedUsers, UserManager userManager, Comparator comparator) static ListgetManagedUsers(User sessionUser, List authorizedSets, UserManager userManager) static ListgetManagedUsers(User sessionUser, List authorizedSets, UserManager userManager, Comparator comparator) build a list of users who are managed by the current sessionUser.
-
Constructor Details
-
AccessUtils
public AccessUtils()
-
-
Method Details
-
getManagedUsers
-
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
-
getManagableUsers
public static List getManagableUsers(User sessionUser, List managedUsers, UserManager userManager, Comparator comparator) -
getAuthorizedSetInfo
- Throws:
Exception
-