public class AclPermissionCacheOptimizer extends Object implements PermissionCacheOptimizer
Constructor and Description |
---|
AclPermissionCacheOptimizer(AclService aclService) |
Modifier and Type | Method and Description |
---|---|
void |
cachePermissionsFor(Authentication authentication,
Collection<?> objects)
Optimises the permission cache for anticipated operation on the supplied collection
of objects.
|
void |
setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy) |
void |
setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy) |
public AclPermissionCacheOptimizer(AclService aclService)
public void cachePermissionsFor(Authentication authentication, Collection<?> objects)
PermissionCacheOptimizer
cachePermissionsFor
in interface PermissionCacheOptimizer
authentication
- the user for whom permissions should be obtained.objects
- the (non-null) collection of domain objects for which permissions
should be retrieved.public void setObjectIdentityRetrievalStrategy(ObjectIdentityRetrievalStrategy objectIdentityRetrievalStrategy)
public void setSidRetrievalStrategy(SidRetrievalStrategy sidRetrievalStrategy)