Interface BuildProject

    • Field Detail

    • Method Detail

      • getProjectId

        @NotNull
        String getProjectId()
        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).

        Returns:
        internal id.
        See Also:
        getExternalId()
      • getExternalId

        @NotNull
        String getExternalId()
        Returns the external project identifier.
        Returns:
        external identifier.
        Since:
        8.0
        See Also:
        getProjectId()
      • getParentProjectId

        @Nullable
        String getParentProjectId()
        Returns internal id of the parent project of this project.

        Every project, except the root one, has a parent project.

        Returns:
        parent project internal id or null if it is the root project
        Since:
        8.0
        See Also:
        getParentProject(), getParentProjectExternalId()
      • getParentProjectExternalId

        @Nullable
        String getParentProjectExternalId()
        Returns external id of the parent project of this project.

        Every project, except the root one, has a parent project.

        Returns:
        parent project external id or null if it is the root project
        Since:
        8.0
        See Also:
        getParentProject(), getParentProjectId()
      • isRootProject

        boolean isRootProject()
        Returns true iff this project is root project
        Returns:
        see above
        Since:
        8.0
      • getOwnProjects

        @NotNull
        List<? extends BuildProject> getOwnProjects()
        Returns direct child projects of this project.
        Returns:
        list of projects sorted by name
        Since:
        8.0
      • getProjects

        @NotNull
        List<? extends BuildProject> getProjects()
        Returns all child projects (including children of children and so on) of this project.
        Returns:
        list of projects sorted by name
        Since:
        8.0
      • getName

        @NotNull
        String getName()
        Returns project name
        Returns:
        presentable name
      • getFullName

        @NotNull
        String getFullName()
        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.
        Returns:
        presentable name
        Since:
        8.0
      • getDescription

        @NotNull
        String getDescription()
        Returns project description
        Returns:
        project description
      • getStatus

        Status getStatus()
        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.
        Returns:
        current project status
      • getOwnBuildTypes

        @NotNull
        List<? extends BuildType> getOwnBuildTypes()
        Returns all build configurations registered in this certain project. Does NOT include build configurations from subprojects.
        Returns:
        list of build configurations sorted by name
      • getBuildTypes

        @NotNull
        List<? extends BuildType> getBuildTypes()
        Returns all build configurations registered in this project and all its subprojects (not only direct).
        Returns:
        list of build configurations sorted by name
        Since:
        8.0
      • getOwnVcsRoots

        @NotNull
        List<? extends VcsRoot> getOwnVcsRoots()
        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.
        Returns:
        list of VCS roots
      • getVcsRoots

        @NotNull
        List<? extends VcsRoot> getVcsRoots()
        Returns all VCS roots used by build configurations or templates in this project and all its subprojects (not only direct).
        Returns:
        list of vcs roots
        Since:
        8.0