com.dtolabs.rundeck.core.authorization.providers
Class PoliciesCache

java.lang.Object
  extended by com.dtolabs.rundeck.core.authorization.providers.PoliciesCache
All Implemented Interfaces:
java.lang.Iterable<PolicyCollection>

public class PoliciesCache
extends java.lang.Object
implements java.lang.Iterable<PolicyCollection>

PoliciesCache retains PolicyDocument objects for inserted Files, and reloads them if file modification time changes.


Constructor Summary
PoliciesCache(java.io.File rootDir)
           
 
Method Summary
 void add(java.io.File file)
           
 PolicyCollection getDocument(java.io.File file)
           
 java.util.Iterator<PolicyCollection> iterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoliciesCache

public PoliciesCache(java.io.File rootDir)
              throws javax.xml.parsers.ParserConfigurationException
Throws:
javax.xml.parsers.ParserConfigurationException
Method Detail

add

public void add(java.io.File file)
         throws PoliciesParseException
Throws:
PoliciesParseException

getDocument

public PolicyCollection getDocument(java.io.File file)
                             throws PoliciesParseException
Throws:
PoliciesParseException

iterator

public java.util.Iterator<PolicyCollection> iterator()
Specified by:
iterator in interface java.lang.Iterable<PolicyCollection>