org.acegisecurity.taglibs.velocity
public class AuthzImpl extends java.lang.Object implements Authz
Constructor and Description |
---|
AuthzImpl() |
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()
implementation of AuthenticationTag
|
boolean |
hasPermission(java.lang.Object domainObject,
java.lang.String permissions)
implementation of AclTag
|
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)
test case can use this class to mock application context with aclManager bean in it.
|
public boolean allGranted(java.lang.String roles)
Authz
allGranted
in interface Authz
roles
- - comma separate GrantedAuthorityspublic boolean anyGranted(java.lang.String roles)
Authz
anyGranted
in interface Authz
roles
- - comma separate GrantedAuthorityspublic org.springframework.context.ApplicationContext getAppCtx()
Authz
public java.lang.String getPrincipal()
getPrincipal
in interface Authz
java.lang.IllegalArgumentException
- DOCUMENT ME!public boolean hasPermission(java.lang.Object domainObject, java.lang.String permissions)
hasPermission
in interface Authz
domainObject
- DOCUMENT ME!permissions
- DOCUMENT ME!java.lang.IllegalArgumentException
- DOCUMENT ME!public boolean noneGranted(java.lang.String roles)
Authz
noneGranted
in interface Authz
roles
- - comma separate GrantedAuthoritysCopyright © 2004-2014 Interface21, Inc. All Rights Reserved.