|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Authz
Wrapper the implementation of Acegi Security for Spring JSP tag includes:
AuthenticationTag, AclTag, AuthorizeTag
| Method Summary | |
|---|---|
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; |
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(ApplicationContext appCtx)
get Spring application context which contains acegi related bean |
| Method Detail |
|---|
boolean allGranted(String roles)
roles - - comma separate GrantedAuthoritys
boolean anyGranted(String roles)
roles - - comma separate GrantedAuthoritys
ApplicationContext getAppCtx()
String getPrincipal()
Authentication object, such as a String
or UserDetails instance
boolean hasPermission(Object domainObject,
String permissions)
Only works with permissions that are subclasses of net.sf.acegisecurity.acl.basic.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 permissions
boolean noneGranted(String roles)
roles - - comma separate GrantedAuthoritys
void setAppCtx(ApplicationContext appCtx)
appCtx - DOCUMENT ME!
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||