public interface Authz
AuthenticationTag
, AclTag
, AuthorizeTag
Modifier and Type | Method and Description |
---|---|
boolean |
allGranted(String roles)
all the listed roles must be granted to return true, otherwise fasle;
|
boolean |
anyGranted(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
|
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(Object domainObject,
String permissions)
return true if the principal holds either permission specified for the provided domain object
|
boolean |
noneGranted(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(String roles)
roles
- - comma separate GrantedAuthoritysboolean anyGranted(String roles)
roles
- - comma separate GrantedAuthoritysorg.springframework.context.ApplicationContext getAppCtx()
String getPrincipal()
Authentication
object, such as a String or UserDetails
instanceboolean hasPermission(Object domainObject, 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(String roles)
roles
- - comma separate GrantedAuthoritysvoid setAppCtx(org.springframework.context.ApplicationContext appCtx)
appCtx
- DOCUMENT ME!Copyright © 2016. All rights reserved.