|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.security.directory.DirectoryManagerUtils
public class DirectoryManagerUtils
A helper class for managing the directory.
Constructor Summary | |
---|---|
DirectoryManagerUtils()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryManagerUtils()
Method Detail |
---|
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.
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |