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

java.lang.Object
  extended by com.dtolabs.rundeck.core.authorization.providers.YamlPolicyCollection
All Implemented Interfaces:
PolicyCollection

public class YamlPolicyCollection
extends java.lang.Object
implements PolicyCollection


Constructor Summary
YamlPolicyCollection(java.io.File file)
           
 
Method Summary
 long countPolicies()
           
 java.util.Collection<java.lang.String> groupNames()
          For a given policy collection, return all the group names associated with it.
 java.util.Collection<AclContext> matchedContexts(javax.security.auth.Subject subject, java.util.Set<Attribute> environment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YamlPolicyCollection

public YamlPolicyCollection(java.io.File file)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

groupNames

public java.util.Collection<java.lang.String> groupNames()
                                                  throws InvalidCollection
Description copied from interface: PolicyCollection
For a given policy collection, return all the group names associated with it.

Specified by:
groupNames in interface PolicyCollection
Returns:
collection of group names.
Throws:
InvalidCollection

countPolicies

public long countPolicies()
                   throws InvalidCollection
Specified by:
countPolicies in interface PolicyCollection
Throws:
InvalidCollection

matchedContexts

public java.util.Collection<AclContext> matchedContexts(javax.security.auth.Subject subject,
                                                        java.util.Set<Attribute> environment)
                                                 throws InvalidCollection
Specified by:
matchedContexts in interface PolicyCollection
Throws:
InvalidCollection