iiitAccessServer 1.0

de.iiit.access.common.cache
Class RightsCache

java.lang.Object
  |
  +--de.iiit.cache.GenericCache
        |
        +--de.iiit.cache.GenericInvalidationCache
              |
              +--de.iiit.access.common.cache.RightsCache

public class RightsCache
extends GenericInvalidationCache

A cache implementation holding results for one user.

Version:
$Revision: 1.4 $ $Date: 2003/04/13 21:13:38 $

Constructor Summary
RightsCache()
          Creates a new instance of RightsCache
RightsCache(long invalidationTimeout)
          Creates a new instance of RightsCache
 
Method Summary
 void addRight(String expression, boolean isAllowed)
          Adds the result of one expression to the cache.
 boolean getRight(String expression)
          Retrieves the result of an expression from the cache.
 
Methods inherited from class de.iiit.cache.GenericInvalidationCache
addElement, getElement
 
Methods inherited from class de.iiit.cache.GenericCache
clear, getKeys, removeElement, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RightsCache

public RightsCache()
Creates a new instance of RightsCache


RightsCache

public RightsCache(long invalidationTimeout)
Creates a new instance of RightsCache

Parameters:
invalidationTimeout - the period of time after which a specific cache entry will be ignored and deleted.
Method Detail

addRight

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

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

getRight

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

Parameters:
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