Interface PermissionCacheOptimizer
- 
- All Superinterfaces:
 org.springframework.aop.framework.AopInfrastructureBean
- All Known Implementing Classes:
 AclPermissionCacheOptimizer
public interface PermissionCacheOptimizer extends org.springframework.aop.framework.AopInfrastructureBeanAllows permissions to be pre-cached when using pre or post filtering with expressions- Since:
 - 3.1
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcachePermissionsFor(Authentication a, java.util.Collection<?> objects)Optimises the permission cache for anticipated operation on the supplied collection of objects. 
 - 
 
- 
- 
Method Detail
- 
cachePermissionsFor
void cachePermissionsFor(Authentication a, java.util.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.
 
 - 
 
 -