issrg.pba.rbac
Class CacheRulesWithTime

java.lang.Object
  extended by issrg.pba.rbac.CacheRulesWithTime

public class CacheRulesWithTime
extends java.lang.Object

This class stores AssignmentRule(s) associated with one issuer. Objects of this class will be stored in a cache which stores RARs (AssignmentRules) of issuers. Each object is associated with a timeout. When the timeout is reached, the object will be replaced.


Constructor Summary
CacheRulesWithTime()
          Creates a new instance of CacheRulesWithTime
CacheRulesWithTime(java.util.Vector rules, long time)
          This is the constructor of the class.
 
Method Summary
 java.util.Vector getRules()
          This method returns the vector of rules of that issuer
 long getTime()
          This method returns the timeout associated with the set of rules of the issuer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheRulesWithTime

public CacheRulesWithTime()
Creates a new instance of CacheRulesWithTime


CacheRulesWithTime

public CacheRulesWithTime(java.util.Vector rules,
                          long time)
This is the constructor of the class.

Parameters:
rules - is the vector of RARs (AssignmentRules) of one issuer
time - is a long value indicates the timeout of the object
Method Detail

getRules

public java.util.Vector getRules()
This method returns the vector of rules of that issuer

Returns:
rules is a vector of rules of that issuer

getTime

public long getTime()
This method returns the timeout associated with the set of rules of the issuer

Returns:
time is a long value