iiitAccessServer 1.0

de.iiit.access.server.api
Interface CachePluginIf

All Superinterfaces:
AccessServerPluginIf, ThreadPluginIf
All Known Implementing Classes:
DbCache, SimpleCache

public interface CachePluginIf
extends ThreadPluginIf

Classes implementing this interfaces can be loaded a cache plug-in into the AccessServer.

Version:
$Revision: 1.3 $ $Date: 2003/04/13 20:16:41 $

Method Summary
 void addUserRight(String user, String expression, boolean isAllowed)
          Adds the result of one expression to the cache of the user.
 boolean getUserRight(String user, String expression)
          Retrieves the result of an expression from the cache.
 
Methods inherited from interface de.iiit.access.server.api.ThreadPluginIf
shutdown, start
 
Methods inherited from interface de.iiit.access.server.api.AccessServerPluginIf
initialize
 

Method Detail

addUserRight

public void addUserRight(String user,
                         String expression,
                         boolean isAllowed)
Adds the result of one expression to the cache of the user.

Parameters:
user - The name of the user
expression - The expression
isAllowed - The result of the expression

getUserRight

public boolean getUserRight(String user,
                            String expression)
                     throws CacheFaultException
Retrieves the result of an expression from the cache.

Parameters:
user - The name of the user for whom the result is needed.
expression - The expression
Returns:
the result of the expression
Throws:
CacheFaultException - if the result is not found in the cache

iiitAccessServer 1.0

Copyright © 2002, 2003 ingeneurbuero fuer innovative informationstechnik, Dipl.-Ing. Joerg Beckmann, Dortmund, Germany. All Rights Reserved.
See Copyright statement