public class AuthzImpl extends Object implements Authz
| Constructor and Description |
|---|
AuthzImpl() |
| 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()
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(org.springframework.context.ApplicationContext appCtx)
test case can use this class to mock application context with aclManager bean in it.
|
public boolean allGranted(String roles)
AuthzallGranted in interface Authzroles - - comma separate GrantedAuthorityspublic boolean anyGranted(String roles)
AuthzanyGranted in interface Authzroles - - comma separate GrantedAuthorityspublic org.springframework.context.ApplicationContext getAppCtx()
Authzpublic String getPrincipal()
getPrincipal in interface AuthzIllegalArgumentException - DOCUMENT ME!public boolean hasPermission(Object domainObject, String permissions)
hasPermission in interface AuthzdomainObject - DOCUMENT ME!permissions - DOCUMENT ME!IllegalArgumentException - DOCUMENT ME!public boolean noneGranted(String roles)
AuthznoneGranted in interface Authzroles - - comma separate GrantedAuthoritysCopyright © 2016. All rights reserved.