public abstract class AbstractAclProvider extends Object implements AfterInvocationProvider
AfterInvocationProvider
which provides commonly-used ACL-related services.Modifier and Type | Field and Description |
---|---|
protected AclService |
aclService |
protected ObjectIdentityRetrievalStrategy |
objectIdentityRetrievalStrategy |
protected String |
processConfigAttribute |
protected Class<?> |
processDomainObjectClass |
protected List<Permission> |
requirePermission |
protected SidRetrievalStrategy |
sidRetrievalStrategy |
Constructor and Description |
---|
AbstractAclProvider(AclService aclService,
String processConfigAttribute,
List<Permission> requirePermission) |
Modifier and Type | Method and Description |
---|---|
protected Class<?> |
getProcessDomainObjectClass() |
protected boolean |
hasPermission(Authentication authentication,
Object domainObject) |
void |
setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) |
protected void |
setProcessConfigAttribute(String processConfigAttribute) |
void |
setProcessDomainObjectClass(Class<?> processDomainObjectClass) |
void |
setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy) |
boolean |
supports(Class<?> clazz)
This implementation supports any type of class, because it does not query the presented secure object.
|
boolean |
supports(ConfigAttribute attribute)
Indicates whether this
AfterInvocationProvider is able to participate in a decision
involving the passed ConfigAttribute . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decide
protected final AclService aclService
protected Class<?> processDomainObjectClass
protected ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy
protected SidRetrievalStrategy sidRetrievalStrategy
protected String processConfigAttribute
protected final List<Permission> requirePermission
public AbstractAclProvider(AclService aclService, String processConfigAttribute, List<Permission> requirePermission)
protected Class<?> getProcessDomainObjectClass()
protected boolean hasPermission(Authentication authentication, Object domainObject)
public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
protected void setProcessConfigAttribute(String processConfigAttribute)
public void setProcessDomainObjectClass(Class<?> processDomainObjectClass)
public void setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy)
public boolean supports(ConfigAttribute attribute)
AfterInvocationProvider
AfterInvocationProvider
is able to participate in a decision
involving the passed ConfigAttribute
.This allows the
AbstractSecurityInterceptor
to check every configuration attribute can be consumed by the
configured AccessDecisionManager
and/or RunAsManager
and/or
AccessDecisionManager
.
supports
in interface AfterInvocationProvider
attribute
- a configuration attribute that has been configured against the
AbstractSecurityInterceptor
AfterInvocationProvider
can support the passed configuration attributepublic boolean supports(Class<?> clazz)
supports
in interface AfterInvocationProvider
clazz
- the secure objecttrue