public class DirectoryManagerUtils extends Object
| Constructor and Description |
|---|
DirectoryManagerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getUserRoles(UserDetails user)
Extract all roles assigned to the specified user.
|
static List<String> |
getUserRoles(UserManager userManager,
String username)
Query the
UserManager for all the roles assigned to the specified user. |
static List<UserDetails> |
getUsersWithRole(UserManager userManager,
String role)
Get all users that are assigned to the specified role.
|
public static List<UserDetails> getUsersWithRole(UserManager userManager, String role)
userManager - A user manager to query.role - The role to query.public static List<String> getUserRoles(UserManager userManager, String username)
UserManager for all the roles assigned to the specified user.userManager - A user manager to query.username - The user to query.public static List<String> getUserRoles(UserDetails user)
user - The user to extract roles from.Copyright © GigaSpaces.