|
Creating a Taxonomic e-Science | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cateproject.view.authz.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)
|
boolean |
anyGranted(String roles)
|
org.springframework.context.ApplicationContext |
getAppCtx()
|
String |
getPrincipal()
implementation of AuthenticationTag |
boolean |
hasPermission(Object domainObject,
String permissions)
implementation of AclTag |
boolean |
noneGranted(String roles)
|
void |
setAppCtx(org.springframework.context.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)
allGranted in interface org.springframework.security.taglibs.velocity.Authzpublic boolean anyGranted(String roles)
anyGranted in interface org.springframework.security.taglibs.velocity.Authzpublic org.springframework.context.ApplicationContext getAppCtx()
getAppCtx in interface org.springframework.security.taglibs.velocity.Authzpublic String getPrincipal()
getPrincipal in interface org.springframework.security.taglibs.velocity.AuthzIllegalArgumentException - DOCUMENT ME!
public boolean hasPermission(Object domainObject,
String permissions)
domainObject - DOCUMENT ME!permissions - DOCUMENT ME!
IllegalArgumentException - DOCUMENT ME!public boolean noneGranted(String roles)
noneGranted in interface org.springframework.security.taglibs.velocity.Authzpublic void setAppCtx(org.springframework.context.ApplicationContext appCtx)
setAppCtx in interface org.springframework.security.taglibs.velocity.AuthzappCtx - DOCUMENT ME!
|
Creating a Taxonomic e-Science | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||