|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.iiit.cache.GenericCache | +--de.iiit.cache.GenericInvalidationCache | +--de.iiit.access.common.cache.RightsCache
A cache implementation holding results for one user.
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 |
public RightsCache()
public RightsCache(long invalidationTimeout)
invalidationTimeout
- the period of time after which a specific cache entry will be ignored and
deleted.Method Detail |
public void addRight(String expression, boolean isAllowed)
expression
- The expressionisAllowed
- The result of the expressionpublic boolean getRight(String expression) throws CacheFaultException
expression
- The expression
CacheFaultException
- if the result is not found in the cache
|
iiitAccessServer 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |