Interface IRundeckProject

    • Method Detail

      • listResourceModelConfigurations

        java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> listResourceModelConfigurations()
        list the configurations of resource model providers.
        Returns:
        a list of maps containing:
        • type - provider type name
        • props - configuration properties
      • getProperty

        java.lang.String getProperty​(java.lang.String name)
        Specified by:
        getProperty in interface IRundeckProjectConfig
        Parameters:
        name - property name
        Returns:
        the property value by name
      • hasProperty

        boolean hasProperty​(java.lang.String key)
        Specified by:
        hasProperty in interface IRundeckProjectConfig
        Parameters:
        key - property name
        Returns:
        true if present, false otherwise
      • getProperties

        java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Specified by:
        getProperties in interface IRundeckProjectConfig
        Returns:
        the merged properties available for the project
      • getProjectProperties

        java.util.Map<java.lang.String,​java.lang.String> getProjectProperties()
        Specified by:
        getProjectProperties in interface IRundeckProjectConfig
        Returns:
        the direct properties set for the project
      • mergeProjectProperties

        void mergeProjectProperties​(java.util.Properties properties,
                                    java.util.Set<java.lang.String> removePrefixes)
        Update the project properties file by setting updating the given properties, and removing any properties that have a prefix in the removePrefixes set
        Parameters:
        properties - new properties to put in the file
        removePrefixes - prefixes of properties to remove from the file
      • setProjectProperties

        void setProjectProperties​(java.util.Properties properties)
        Set the project properties file contents exactly
        Parameters:
        properties - new properties to use in the file
      • getProjectNodes

        IProjectNodes getProjectNodes()
        Returns:
        the project nodes interface
      • existsFileResource

        boolean existsFileResource​(java.lang.String path)
        Parameters:
        path - path relative to the project
        Returns:
        true if it exists
      • existsDirResource

        boolean existsDirResource​(java.lang.String path)
        Parameters:
        path - path relative to the project
        Returns:
        true if it is a directory
      • listDirPaths

        java.util.List<java.lang.String> listDirPaths​(java.lang.String path)
        Parameters:
        path - path relative to the project
        Returns:
        list of paths within the directory
      • deleteFileResource

        boolean deleteFileResource​(java.lang.String path)
        Parameters:
        path - path relative to the project
        Returns:
        true if it is deleted, false if it was not deleted
      • storeFileResource

        long storeFileResource​(java.lang.String path,
                               java.io.InputStream input)
                        throws java.io.IOException
        Store a file at a path for the project
        Parameters:
        path - path relative to the project
        input - input
        Throws:
        java.io.IOException - if an IO error occurs
      • loadFileResource

        long loadFileResource​(java.lang.String path,
                              java.io.OutputStream output)
                       throws java.io.IOException
        Read a file at a path for the project
        Parameters:
        path - path relative to the project
        output - output
        Returns:
        length of data loaded
        Throws:
        java.io.IOException - if an IO error occurs
      • isEnabled

        default boolean isEnabled()
        Indicates if the projects is enabled