org.springframework.security.access
Interface PermissionCacheOptimizer

All Superinterfaces:
AopInfrastructureBean
All Known Implementing Classes:
AclPermissionCacheOptimizer

public interface PermissionCacheOptimizer
extends AopInfrastructureBean

Allows permissions to be pre-cached when using pre or post filtering with expressions

Since:
3.1

Method Summary
 void cachePermissionsFor(Authentication a, Collection<?> objects)
          Optimises the permission cache for anticipated operation on the supplied collection of objects.
 

Method Detail

cachePermissionsFor

void cachePermissionsFor(Authentication a,
                         Collection<?> objects)
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.

Parameters:
a - the user for whom permissions should be obtained.
objects - the (non-null) collection of domain objects for which permissions should be retrieved.