org.jaffa.security
Class PolicyCache

java.lang.Object
  extended byorg.jaffa.security.PolicyCache

public class PolicyCache
extends Object

This class is the interface between the policy domain classes and the Policy manager, it provide the data to the PolicyManager in a more native format then in the domain objects It also caches the policy information for multiple access.


Constructor Summary
PolicyCache()
           
 
Method Summary
static void clearCache()
          Clear the cached policy.
static Roles getRoles()
          Returns the Roles domain objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyCache

public PolicyCache()
Method Detail

getRoles

public static Roles getRoles()
Returns the Roles domain objects. This are the objects created from the XML file. This is a cached copy and should not be modified. Changing this will not effect the contents of the loaded policy, as the policy will load on application startup.

Returns:
The root Roles domain object for the current policy

clearCache

public static void clearCache()
Clear the cached policy. Will be reloaded on the next access.



Copyright © 2002-2004 JAFFA Project.