Class Policies

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

    public class Policies
    extends java.lang.Object
    implements com.dtolabs.rundeck.core.authorization.AclRuleSetSource
    Policies represent the policies as described in the policies file(s).
    • Constructor Detail

      • Policies

        public Policies​(java.lang.Iterable<PolicyCollection> cache,
                        com.dtolabs.rundeck.core.authorization.ValidationSet validationSet)
    • Method Detail

      • count

        public int count()
      • getRuleSet

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

        public static Policies load​(java.io.File rootPath)
        Parameters:
        rootPath - file root path
        Returns:
        Load the policies contained in the root path.
      • load

        public static Policies load​(java.io.File rootPath,
                                    Logger logger)
        Parameters:
        rootPath - file root path
        Returns:
        Load the policies contained in the root path.
      • load

        public static Policies load​(java.io.File rootPath,
                                    java.util.Set<com.dtolabs.rundeck.core.authorization.Attribute> forcedContext)
        Parameters:
        rootPath - file root path
        Returns:
        Load the policies contained in the root path.
      • loadFile

        public static Policies loadFile​(java.io.File singleFile)
        Parameters:
        singleFile - single file
        Returns:
        Load the policies contained in the root path.
      • listAllRoles

        @Deprecated
        public java.util.List<java.lang.String> listAllRoles()
        Deprecated.
        Returns:
        all roles list