|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Authentication utility methods.
Field Summary | |
---|---|
def |
objectDefinitionSource
|
def |
passwordEncoder
|
def |
securityConfig
|
boolean |
transactional
|
Constructor Summary | |
AuthenticateService()
|
Method Summary | |
---|---|
void |
clearCachedRequestmaps()
Call when editing, creating, or deleting a Requestmap to flush the cached configuration and rebuild using the most recent data. |
void |
deleteRole(def role)
Delete a role, and if Requestmap class is used to store roles, remove the role from all Requestmap definitions. |
String |
encodePassword(String passwd)
|
List |
findRequestmapsByRole(String roleName, def domainClass, def conf)
|
ConfigObject |
getSecurityConfig()
Load the security configuration. |
boolean |
ifAllGranted(def role)
dependency injection for the password encoder |
boolean |
ifAnyGranted(def role)
|
boolean |
ifNotGranted(def role)
|
boolean |
isAjax(def request)
Check if the request was triggered by an Ajax call. |
boolean |
isLoggedIn()
|
String |
passwordEncoder(String passwd)
returns a MessageDigest password. |
def |
principal()
Get the currently logged in user's principal. |
boolean |
updateRole(def role, def newProperties)
Update a role, and if Requestmap class is used to store roles, replace the new role name in all Requestmap definitions that use it if the name was changed. |
def |
userDomain()
Get the currently logged in user's domain class. |
Constructor Detail |
---|
AuthenticateService()
Method Detail |
---|
void clearCachedRequestmaps()
void deleteRole(def role)
String encodePassword(String passwd)
List findRequestmapsByRole(String roleName, def domainClass, def conf)
ConfigObject getSecurityConfig()
boolean ifAllGranted(def role)
boolean ifAnyGranted(def role)
boolean ifNotGranted(def role)
boolean isAjax(def request)
true
if Ajax
boolean isLoggedIn()
String passwordEncoder(String passwd)
encodePassword
instead
public def principal()
null
if not logged in
boolean updateRole(def role, def newProperties)
public def userDomain()
null
if not logged in