public interface Authz
AuthenticationTag, AclTag, AuthorizeTag| Modifier and Type | Method and Description |
|---|---|
boolean |
allGranted(java.lang.String roles)
all the listed roles must be granted to return true, otherwise fasle;
|
boolean |
anyGranted(java.lang.String roles)
any the listed roles must be granted to return true, otherwise fasle;
|
org.springframework.context.ApplicationContext |
getAppCtx()
set Spring application context which contains acegi related bean
|
java.lang.String |
getPrincipal()
return the principal's name, supports the various type of principals that can exist in the
Authentication object, such as a String or UserDetails instance |
boolean |
hasPermission(java.lang.Object domainObject,
java.lang.String permissions)
return true if the principal holds either permission specified for the provided domain object
|
boolean |
noneGranted(java.lang.String roles)
none the listed roles must be granted to return true, otherwise fasle;
|
void |
setAppCtx(org.springframework.context.ApplicationContext appCtx)
get Spring application context which contains acegi related bean
|
boolean allGranted(java.lang.String roles)
roles - - comma separate GrantedAuthoritysboolean anyGranted(java.lang.String roles)
roles - - comma separate GrantedAuthoritysorg.springframework.context.ApplicationContext getAppCtx()
java.lang.String getPrincipal()
Authentication object, such as a String or UserDetails instanceboolean hasPermission(java.lang.Object domainObject,
java.lang.String permissions)
Only
works with permissions that are subclasses of AbstractBasicAclEntry.
For this class to operate it must be able to access the application context via the
WebApplicationContextUtils and locate an AclManager.
domainObject - - domain object need acl controlpermissions - - comma separate integer permissionsboolean noneGranted(java.lang.String roles)
roles - - comma separate GrantedAuthoritysvoid setAppCtx(org.springframework.context.ApplicationContext appCtx)
appCtx - DOCUMENT ME!