Class FrameworkProjectMgr

    • Field Detail

      • log

        public static final org.slf4j.Logger log
    • Method Detail

      • createFrameworkProject

        public IRundeckProject createFrameworkProject​(java.lang.String projectName,
                                                      java.util.Properties properties)
        Specified by:
        createFrameworkProject in interface ProjectManager
        Parameters:
        projectName - Name of the project
        properties - additional properties to include in the project's properties file
        Returns:
        Create a new project if it doesn't exist, otherwise returns existing project
      • createFrameworkProjectStrict

        public IRundeckProject createFrameworkProjectStrict​(java.lang.String projectName,
                                                            java.util.Properties properties)
        Create a new project if it doesn't, otherwise throw exception
        Specified by:
        createFrameworkProjectStrict in interface ProjectManager
        Parameters:
        projectName - name of project
        properties - config properties
        Returns:
        new project
        Throws:
        java.lang.IllegalArgumentException - if the project already exists
      • removeFrameworkProject

        public void removeFrameworkProject​(java.lang.String projectName)
        Remove a project definition
        Specified by:
        removeFrameworkProject in interface ProjectManager
        Parameters:
        projectName - name of the project
      • disableFrameworkProject

        public void disableFrameworkProject​(java.lang.String projectName)
        Description copied from interface: ProjectManager
        Disables a project so it becomes unavailable without deleting it.
        Specified by:
        disableFrameworkProject in interface ProjectManager
        Parameters:
        projectName - name of the project.
      • enableFrameworkProject

        public void enableFrameworkProject​(java.lang.String projectName)
        Description copied from interface: ProjectManager
        Enables a previously disabled project.
        Specified by:
        enableFrameworkProject in interface ProjectManager
        Parameters:
        projectName - name of the project.
      • isFrameworkProjectDisabled

        public boolean isFrameworkProjectDisabled​(java.lang.String projectName)
        Specified by:
        isFrameworkProjectDisabled in interface ProjectManager
        Returns:
        true if the project exists and is disabled. false otherwise.
      • getProjectDescription

        public java.lang.String getProjectDescription​(java.lang.String projectName)
        Description copied from interface: ProjectManager
        Gets the project description
        Specified by:
        getProjectDescription in interface ProjectManager
        Parameters:
        projectName - Project name identifier
        Returns:
        The description if any. null otherwise.
      • listChildNames

        public java.util.List<java.lang.String> listChildNames()
      • getFrameworkProject

        public FrameworkProject getFrameworkProject​(java.lang.String name)
        Description copied from interface: ProjectManager
        Get the specified existing project
        Specified by:
        getFrameworkProject in interface ProjectManager
        Parameters:
        name - The name of the project
        Returns:
        an existing Project object and returns it
      • existsFrameworkProject

        public boolean existsFrameworkProject​(java.lang.String project)
        Description copied from interface: ProjectManager
        Checks if project by that name exists
        Specified by:
        existsFrameworkProject in interface ProjectManager
        Parameters:
        project - The name of the project
        Returns:
        true if project exists in framework.
      • childCouldBeLoaded

        public boolean childCouldBeLoaded​(java.lang.String name)
      • getProperties

        public java.util.Properties getProperties()