Class PoolProject

    • Constructor Detail

      • PoolProject

        public PoolProject​(@NotNull
                           SProject project)
    • Method Detail

      • isAdmin

        public boolean isAdmin()
        Indicates that the current user can admin thr pool-project associations for thi.
      • setAdmin

        public void setAdmin​(boolean admin)
      • isCanBeDissociated

        public boolean isCanBeDissociated()
        Indicates that current user can dissociate this project from this pool.
      • setCanBeDissociated

        public void setCanBeDissociated​(boolean canBeDissociated)
      • isAssociated

        public boolean isAssociated()
      • setAssociated

        public void setAssociated​(boolean associated)
      • incRemovableChildrenCount

        public void incRemovableChildrenCount()
      • getDepth

        public int getDepth()
      • getProject

        @NotNull
        public SProject getProject()
      • getAllPoolsCount

        public int getAllPoolsCount()
      • getFixedPoolsCount

        public int getFixedPoolsCount()
      • getAssociatedPools

        @NotNull
        public List<PoolBox> getAssociatedPools()
      • getProjectId

        @NotNull
        public String getProjectId()
        Description copied from interface: BuildProject
        Returns the internal project identifier.

        Before 8.0 TC there was only one project identifier. Since 8.0 there are two project identifiers: internal (with a surrogate value, to use in DB) and external (that is build based on the project name, or specified by users).

        Specified by:
        getProjectId in interface BuildProject
        Returns:
        internal id.
        See Also:
        BuildProject.getExternalId()
      • getOwnProjects

        @NotNull
        public List<SProject> getOwnProjects()
        Description copied from interface: BuildProject
        Returns direct child projects of this project.
        Specified by:
        getOwnProjects in interface BuildProject
        Returns:
        list of projects sorted by name
      • getProjects

        @NotNull
        public List<SProject> getProjects()
        Description copied from interface: BuildProject
        Returns all child projects (including children of children and so on) of this project.
        Specified by:
        getProjects in interface BuildProject
        Returns:
        list of projects sorted by name
      • getBuildTypes

        @NotNull
        public List<SBuildType> getBuildTypes()
        Description copied from interface: BuildProject
        Returns all build configurations registered in this project and all its subprojects (not only direct).
        Specified by:
        getBuildTypes in interface BuildProject
        Returns:
        list of build configurations sorted by name
      • isArchived

        public boolean isArchived()
      • isRootProject

        public boolean isRootProject()
        Description copied from interface: BuildProject
        Returns true iff this project is root project
        Specified by:
        isRootProject in interface BuildProject
        Returns:
        see above
      • getName

        @NotNull
        public String getName()
        Description copied from interface: BuildProject
        Returns project name
        Specified by:
        getName in interface BuildProject
        Returns:
        presentable name
      • getFullName

        @NotNull
        public String getFullName()
        Description copied from interface: BuildProject
        Returns project full name in the form: <parent project name> / <parent project name> / ... / <project name>. Root project name is not included in this sequence, so the first name in the sequence is the name of some child of the root project.
        Specified by:
        getFullName in interface BuildProject
        Returns:
        presentable name
      • getDescription

        @NotNull
        public String getDescription()
        Description copied from interface: BuildProject
        Returns project description
        Specified by:
        getDescription in interface BuildProject
        Returns:
        project description
      • getStatus

        public Status getStatus()
        Description copied from interface: BuildProject
        Returns project status calculated according to cumulative status of all build configurations registered in the project. Since 8.0.3: if the project is active (not archived), the status of the archived subprojects is ignored.
        Specified by:
        getStatus in interface BuildProject
        Returns:
        current project status
      • getOwnBuildTypes

        @NotNull
        public List<SBuildType> getOwnBuildTypes()
        Description copied from interface: BuildProject
        Returns all build configurations registered in this certain project. Does NOT include build configurations from subprojects.
        Specified by:
        getOwnBuildTypes in interface BuildProject
        Returns:
        list of build configurations sorted by name
      • getOwnVcsRoots

        @NotNull
        public List<SVcsRoot> getOwnVcsRoots()
        Description copied from interface: BuildProject
        Returns all VCS roots used by build configurations or templates in this certain project. Does NOT include VCS roots used by build configurations or templates in subprojects.
        Specified by:
        getOwnVcsRoots in interface BuildProject
        Returns:
        list of VCS roots
      • getVcsRoots

        @NotNull
        public List<SVcsRoot> getVcsRoots()
        Description copied from interface: BuildProject
        Returns all VCS roots used by build configurations or templates in this project and all its subprojects (not only direct).
        Specified by:
        getVcsRoots in interface BuildProject
        Returns:
        list of vcs roots
      • getRemovableChildrenCount

        public int getRemovableChildrenCount()