Class AclPermissionEvaluator
java.lang.Object
org.springframework.security.acls.AclPermissionEvaluator
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean,org.springframework.security.access.PermissionEvaluator
public class AclPermissionEvaluator
extends Object
implements org.springframework.security.access.PermissionEvaluator
Used by Spring Security's expression-based access control implementation to evaluate
permissions for a particular object using the ACL module. Similar in behaviour to
AclEntryVoter.- Since:
- 3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(org.springframework.security.core.Authentication authentication, Serializable targetId, String targetType, Object permission) booleanhasPermission(org.springframework.security.core.Authentication authentication, Object domainObject, Object permission) Determines whether the user has the given permission(s) on the domain object using the ACL configuration.voidsetObjectIdentityGenerator(ObjectIdentityGenerator objectIdentityGenerator) voidsetObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) voidsetPermissionFactory(PermissionFactory permissionFactory) voidsetSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy)
-
Constructor Details
-
AclPermissionEvaluator
-
-
Method Details
-
hasPermission
public boolean hasPermission(org.springframework.security.core.Authentication authentication, Object domainObject, Object permission) Determines whether the user has the given permission(s) on the domain object using the ACL configuration. If the domain object is null, returns false (this can always be overridden using a null check in the expression itself).- Specified by:
hasPermissionin interfaceorg.springframework.security.access.PermissionEvaluator
-
hasPermission
public boolean hasPermission(org.springframework.security.core.Authentication authentication, Serializable targetId, String targetType, Object permission) - Specified by:
hasPermissionin interfaceorg.springframework.security.access.PermissionEvaluator
-
setObjectIdentityRetrievalStrategy
public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) -
setObjectIdentityGenerator
-
setSidRetrievalStrategy
-
setPermissionFactory
-