org.springframework.security.acls
Class AclPermissionCacheOptimizer
java.lang.Object
org.springframework.security.acls.AclPermissionCacheOptimizer
- All Implemented Interfaces:
- AopInfrastructureBean, PermissionCacheOptimizer
public class AclPermissionCacheOptimizer
- extends Object
- implements PermissionCacheOptimizer
Batch loads ACLs for collections of objects to allow optimised filtering.
- Since:
- 3.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AclPermissionCacheOptimizer
public AclPermissionCacheOptimizer(AclService aclService)
cachePermissionsFor
public void cachePermissionsFor(Authentication authentication,
Collection<?> objects)
- Description copied from interface:
PermissionCacheOptimizer
- Optimises 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:
cachePermissionsFor
in interface PermissionCacheOptimizer
- 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)