com.dtolabs.rundeck.core.authorization.providers
Class PoliciesCache
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoliciesCache
public PoliciesCache(java.io.File rootDir)
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
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>