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: 21c4c5c6d178607cff5a26ef1f692e3d03401392 $

Method Summary
 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.


Copyright © 2004-2013 XWiki. All Rights Reserved.