|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Helper methods.
Constructor Summary | |
AuthorizeTools()
|
Method Summary | |
---|---|
static Set |
authoritiesToRoles(def authorities)
Extract the role names from authorities. |
static List |
getPrincipalAuthorities()
Get the current user's authorities. |
static ConfigObject |
getSecurityConfig()
|
static boolean |
ifAllGranted(def role)
|
static boolean |
ifAnyGranted(def role)
|
static boolean |
ifNotGranted(def role)
|
static Set |
parseAuthoritiesString(String authorizationsString)
|
static Set |
retainAll(def granted, def required)
|
static Set |
rolesToAuthorities(def grantedRoles, def granted)
|
Constructor Detail |
---|
AuthorizeTools()
Method Detail |
---|
public static Set authoritiesToRoles(def authorities)
public static List getPrincipalAuthorities()
public static ConfigObject getSecurityConfig()
public static boolean ifAllGranted(def role)
public static boolean ifAnyGranted(def role)
public static boolean ifNotGranted(def role)
public static Set parseAuthoritiesString(String authorizationsString)
public static Set retainAll(def granted, def required)
public static Set rolesToAuthorities(def grantedRoles, def granted)