Class YamlPolicyCollection

  • All Implemented Interfaces:
    com.dtolabs.rundeck.core.authorization.AclRuleSetSource, PolicyCollection

    public class YamlPolicyCollection
    extends java.lang.Object
    implements PolicyCollection
    Stores a collection of policies, read in from a source.
    • Constructor Summary

      Constructors 
      Constructor Description
      YamlPolicyCollection​(java.lang.String identity, com.dtolabs.rundeck.core.authorization.providers.YamlPolicyCollection.YamlSourceLoader loader, com.dtolabs.rundeck.core.authorization.providers.YamlPolicyCollection.YamlPolicyCreator creator, com.dtolabs.rundeck.core.authorization.ValidationSet validation)
      Create from a source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long countPolicies()  
      java.util.List<Policy> getPolicies()  
      com.dtolabs.rundeck.core.authorization.AclRuleSet getRuleSet()  
      java.util.Collection<java.lang.String> groupNames()
      For a given policy collection, return all the group names associated with it.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • YamlPolicyCollection

        public YamlPolicyCollection​(java.lang.String identity,
                                    com.dtolabs.rundeck.core.authorization.providers.YamlPolicyCollection.YamlSourceLoader loader,
                                    com.dtolabs.rundeck.core.authorization.providers.YamlPolicyCollection.YamlPolicyCreator creator,
                                    com.dtolabs.rundeck.core.authorization.ValidationSet validation)
                             throws java.io.IOException
        Create from a source
        Parameters:
        identity - source identity string
        Throws:
        java.io.IOException
    • Method Detail

      • getRuleSet

        public com.dtolabs.rundeck.core.authorization.AclRuleSet getRuleSet()
        Specified by:
        getRuleSet in interface com.dtolabs.rundeck.core.authorization.AclRuleSetSource
      • groupNames

        public java.util.Collection<java.lang.String> groupNames()
        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.