org.xwiki.security.authorization.cache
Interface SecurityCacheLoader
@Role
public interface SecurityCacheLoader
Loads access and rule entries into the security cache.
It depends on a SecurityEntryReader
for reading rules missing from the cache, and on a
AuthorizationSettler for resolving
access from rules.
- Since:
- 4.0M2
- Version:
- $Id$
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.
Copyright © 2004-2012 XWiki. All Rights Reserved.