Class AclPermissionCacheOptimizer
- java.lang.Object
-
- org.springframework.security.acls.AclPermissionCacheOptimizer
-
- All Implemented Interfaces:
org.springframework.aop.framework.AopInfrastructureBean,PermissionCacheOptimizer
public class AclPermissionCacheOptimizer extends java.lang.Object implements PermissionCacheOptimizer
Batch loads ACLs for collections of objects to allow optimised filtering.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description AclPermissionCacheOptimizer(AclService aclService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcachePermissionsFor(Authentication authentication, java.util.Collection<?> objects)Optimises the permission cache for anticipated operation on the supplied collection of objects.voidsetObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)voidsetSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy)
-
-
-
Constructor Detail
-
AclPermissionCacheOptimizer
public AclPermissionCacheOptimizer(AclService aclService)
-
-
Method Detail
-
cachePermissionsFor
public void cachePermissionsFor(Authentication authentication, java.util.Collection<?> objects)
Description copied from interface:PermissionCacheOptimizerOptimises the permission cache for anticipated operation on the supplied collection of objects. Usually this will entail batch loading of permissions for the objects in the collection.- Specified by:
cachePermissionsForin interfacePermissionCacheOptimizer- Parameters:
authentication- the user for whom permissions should be obtained.objects- the (non-null) collection of domain objects for which permissions should be retrieved.
-
setObjectIdentityRetrievalStrategy
public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
-
setSidRetrievalStrategy
public void setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy)
-
-