public class UserUtils
extends java.lang.Object
| Constructor and Description |
|---|
UserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearCache()
Clear cache for child roles and child groups, etc.
|
static void |
fillCachePrivileged()
Ensure that cache is filled with configured where clause and name filter
|
static java.util.List<java.lang.String> |
getAllChildGroups(java.lang.String groupName)
Returns a list of all child groups.
|
static java.util.List<java.lang.String> |
getAllChildRoles(java.lang.String roleName)
Returns a list of all child roles.
|
static java.util.Collection<java.lang.String> |
getAllParentGroups(java.lang.String groupName) |
static java.util.Collection<java.lang.String> |
getAllParentRoles(java.lang.String roleName) |
static java.util.List<java.lang.String> |
getChildGroups(java.lang.String groupName)
Returns a list of child groups.
|
static java.util.List<java.lang.String> |
getChildRoles(java.lang.String roleName)
Returns a list of child roles.
|
static java.util.List<java.lang.String> |
getChildUsers(java.lang.String user)
Returns the child users for the specified user.
|
static java.util.Collection<java.lang.String> |
getParentUsers(java.lang.String user)
Returns the parent users for the specified user.
|
static java.lang.String[] |
getTopLevelGroups() |
static java.lang.String[] |
getTopLevelRoles() |
static boolean |
isGroup(java.lang.String user)
Returns whether the specified user is a group or not.
|
static boolean |
isPerson(java.lang.String user)
Returns whether the specified user is a person or not.
|
static boolean |
isRole(java.lang.String user)
Returns whether the specified user is a role or not.
|
public static void clearCache()
public static boolean isPerson(java.lang.String user)
throws TVCException
TVCExceptionpublic static boolean isRole(java.lang.String user)
throws TVCException
TVCExceptionpublic static boolean isGroup(java.lang.String user)
throws TVCException
TVCExceptionpublic static java.util.Collection<java.lang.String> getAllParentRoles(java.lang.String roleName)
throws TVCException
TVCExceptionpublic static java.util.Collection<java.lang.String> getAllParentGroups(java.lang.String groupName)
throws TVCException
TVCExceptionpublic static java.util.Collection<java.lang.String> getParentUsers(java.lang.String user)
throws TVCException
TVCExceptiongetAllParentGroups(String),
getAllParentRoles(String)public static java.util.List<java.lang.String> getChildUsers(java.lang.String user)
throws TVCException
TVCExceptiongetChildRoles(String),
getChildGroups(String)public static java.lang.String[] getTopLevelGroups()
throws TVCException
TVCExceptionpublic static java.lang.String[] getTopLevelRoles()
throws TVCException
TVCExceptionpublic static java.util.List<java.lang.String> getChildGroups(java.lang.String groupName)
throws TVCException
groupName - A group.TVCException - If unable to get child groups.public static java.util.List<java.lang.String> getChildRoles(java.lang.String roleName)
throws TVCException
roleName - The name of a role.TVCException - If unable to get child groups.public static java.util.List<java.lang.String> getAllChildGroups(java.lang.String groupName)
throws TVCException
groupName - The name of a group.TVCException - If unable to get child groups.public static java.util.List<java.lang.String> getAllChildRoles(java.lang.String roleName)
throws TVCException
roleName - The name of a role.TVCException - If unable to get child groups.public static void fillCachePrivileged()
throws TVCException
TVCExceptionCopyright ? Technia AB. All Rights Reserved.