public abstract class AbstractAclProvider extends java.lang.Object implements AfterInvocationProvider
AfterInvocationProvider
which provides commonly-used ACL-related
services.Modifier and Type | Field and Description |
---|---|
protected AclService |
aclService |
protected ObjectIdentityRetrievalStrategy |
objectIdentityRetrievalStrategy |
protected java.lang.String |
processConfigAttribute |
protected java.lang.Class<?> |
processDomainObjectClass |
protected java.util.List<Permission> |
requirePermission |
protected SidRetrievalStrategy |
sidRetrievalStrategy |
Constructor and Description |
---|
AbstractAclProvider(AclService aclService,
java.lang.String processConfigAttribute,
java.util.List<Permission> requirePermission) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Class<?> |
getProcessDomainObjectClass() |
protected boolean |
hasPermission(Authentication authentication,
java.lang.Object domainObject) |
void |
setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) |
protected void |
setProcessConfigAttribute(java.lang.String processConfigAttribute) |
void |
setProcessDomainObjectClass(java.lang.Class<?> processDomainObjectClass) |
void |
setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy) |
boolean |
supports(java.lang.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 java.lang.Class<?> processDomainObjectClass
protected ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy
protected SidRetrievalStrategy sidRetrievalStrategy
protected java.lang.String processConfigAttribute
protected final java.util.List<Permission> requirePermission
public AbstractAclProvider(AclService aclService, java.lang.String processConfigAttribute, java.util.List<Permission> requirePermission)
protected java.lang.Class<?> getProcessDomainObjectClass()
protected boolean hasPermission(Authentication authentication, java.lang.Object domainObject)
public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
protected void setProcessConfigAttribute(java.lang.String processConfigAttribute)
public void setProcessDomainObjectClass(java.lang.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(java.lang.Class<?> clazz)
supports
in interface AfterInvocationProvider
clazz
- the secure objecttrue