|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.taglibs.velocity.AuthzImpl
public class AuthzImpl
I decided to wrap several JSP tag in one class, so I have to using inner class to wrap these JSP tag. To using this class, you need to inject Spring Context via SetAppCtx() method. AclTag need Spring Context to get AclManger bean.
Constructor Summary | |
---|---|
AuthzImpl()
|
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()
implementation of AuthenticationTag |
boolean |
hasPermission(Object domainObject,
String permissions)
implementation of AclTag |
boolean |
noneGranted(String roles)
none the listed roles must be granted to return true, otherwise fasle; |
void |
setAppCtx(ApplicationContext appCtx)
test case can use this class to mock application context with aclManager bean in it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthzImpl()
Method Detail |
---|
public boolean allGranted(String roles)
Authz
allGranted
in interface Authz
roles
- - comma separate GrantedAuthoritys
public boolean anyGranted(String roles)
Authz
anyGranted
in interface Authz
roles
- - comma separate GrantedAuthoritys
public ApplicationContext getAppCtx()
Authz
getAppCtx
in interface Authz
public String getPrincipal()
getPrincipal
in interface Authz
IllegalArgumentException
- DOCUMENT ME!public boolean hasPermission(Object domainObject, String permissions)
hasPermission
in interface Authz
domainObject
- DOCUMENT ME!permissions
- DOCUMENT ME!
IllegalArgumentException
- DOCUMENT ME!public boolean noneGranted(String roles)
Authz
noneGranted
in interface Authz
roles
- - comma separate GrantedAuthoritys
public void setAppCtx(ApplicationContext appCtx)
setAppCtx
in interface Authz
appCtx
- DOCUMENT ME!
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |