Interface SecurityCacheLoader
-
@Role public interface SecurityCacheLoader
Loads access and rule entries into the security cache. It depends on aSecurityEntryReader
for reading rules missing from the cache, and on aAuthorizationSettler
for resolving access from rules.- Since:
- 4.0M2
- Version:
- $Id: 21c4c5c6d178607cff5a26ef1f692e3d03401392 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityAccessEntry
load(UserSecurityReference user, SecurityReference entity)
Load the cache with the required entries to look up the access for a given user on a given entity.
-
-
-
Method Detail
-
load
SecurityAccessEntry load(UserSecurityReference user, SecurityReference entity) throws AuthorizationException
Load the cache with the required entries to look up the access for a given user on a given entity.- Parameters:
user
- The user to check access for.entity
- The entity to check access to.- Returns:
- The resulting access level for the user at the entity.
- Throws:
AuthorizationException
- if an error occurs.
-
-