| Constructor and description |
|---|
SecurityPrimitives
(AuthService authService, grails.core.GrailsApplication grailsApplication) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
boolean |
isAllGranted(java.lang.Iterable<java.lang.String> roles)Does the currently logged in user have all of the given roles? |
|
boolean |
isAnyGranted(java.lang.Iterable<java.lang.String> roles)Does the currently logged in user have any of the given roles? |
|
boolean |
isLoggedIn()Is the current user logged in? |
|
boolean |
isLoggedIn(java.lang.Object request)Is the current user logged in? |
|
boolean |
isNotGranted(java.lang.Iterable<java.lang.String> roles)Does the currently logged in user have none of the given roles? |
|
boolean |
isNotLoggedIn()Is the current user not logged in? |
|
boolean |
isNotLoggedIn(java.lang.Object request)Is the current user not logged in? |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Does the currently logged in user have all of the given roles?
roles - A list of roles to checkDoes the currently logged in user have any of the given roles?
roles - A list of roles to checkIs the current user logged in?
Is the current user logged in? Bypasses the authService and checks the request details instead.
request - The http request objectDoes the currently logged in user have none of the given roles?
roles - A list of roles to checkIs the current user not logged in?
Is the current user not logged in? Bypasses the authService and checks the request details instead.
request - The http request object