public final class RoleHierarchyUtils extends Object
RoleHierarchy
.Modifier and Type | Method and Description |
---|---|
static String |
roleHierarchyFromMap(Map<String,List<String>> roleHierarchyMap)
Converts the supplied
Map of role name to implied role name(s) to a string
representation understood by RoleHierarchyImpl.setHierarchy(String) . |
public static String roleHierarchyFromMap(Map<String,List<String>> roleHierarchyMap)
Map
of role name to implied role name(s) to a string
representation understood by RoleHierarchyImpl.setHierarchy(String)
.
The map key is the role name and the map value is a List
of implied role name(s).roleHierarchyMap
- the mapping(s) of role name to implied role name(s)IllegalArgumentException
- if roleHierarchyMap is null or empty or if a role name is null or
empty or if an implied role name(s) is null or empty