Class AbstractAclProvider
java.lang.Object
org.springframework.security.acls.afterinvocation.AbstractAclProvider
- All Implemented Interfaces:
AfterInvocationProvider
- Direct Known Subclasses:
AclEntryAfterInvocationCollectionFilteringProvider
,AclEntryAfterInvocationProvider
Abstract
AfterInvocationProvider
which provides commonly-used ACL-related
services.-
Field Summary
Modifier and TypeFieldDescriptionprotected final AclService
protected ObjectIdentityRetrievalStrategy
protected String
protected Class<?>
protected final List<Permission>
protected SidRetrievalStrategy
-
Constructor Summary
ConstructorDescriptionAbstractAclProvider
(AclService aclService, String processConfigAttribute, List<Permission> requirePermission) -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
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
This implementation supports any type of class, because it does not query the presented secure object.boolean
supports
(ConfigAttribute attribute) Indicates whether thisAfterInvocationProvider
is able to participate in a decision involving the passedConfigAttribute
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.access.AfterInvocationProvider
decide
-
Field Details
-
aclService
-
processConfigAttribute
-
processDomainObjectClass
-
objectIdentityRetrievalStrategy
-
sidRetrievalStrategy
-
requirePermission
-
-
Constructor Details
-
AbstractAclProvider
public AbstractAclProvider(AclService aclService, String processConfigAttribute, List<Permission> requirePermission)
-
-
Method Details
-
getProcessDomainObjectClass
-
hasPermission
-
setObjectIdentityRetrievalStrategy
public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) -
setProcessConfigAttribute
-
setProcessDomainObjectClass
-
setSidRetrievalStrategy
-
supports
Description copied from interface:AfterInvocationProvider
Indicates whether thisAfterInvocationProvider
is able to participate in a decision involving the passedConfigAttribute
.This allows the
AbstractSecurityInterceptor
to check every configuration attribute can be consumed by the configuredAccessDecisionManager
and/orRunAsManager
and/orAccessDecisionManager
.- Specified by:
supports
in interfaceAfterInvocationProvider
- Parameters:
attribute
- a configuration attribute that has been configured against theAbstractSecurityInterceptor
- Returns:
- true if this
AfterInvocationProvider
can support the passed configuration attribute
-
supports
This implementation supports any type of class, because it does not query the presented secure object.- Specified by:
supports
in interfaceAfterInvocationProvider
- Parameters:
clazz
- the secure object- Returns:
- always
true
-