Package jetbrains.buildServer
Interface BuildProject
-
- All Superinterfaces:
Comparable<BuildProject>
- All Known Implementing Classes:
PoolProject
,ProjectImpl
,SecuredProject
public interface BuildProject extends Comparable<BuildProject>
This interface provides information about TeamCity project
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROOT_PROJECT_ID
The internal and external identifier of the root project.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends BuildType>
getBuildTypes()
Returns all build configurations registered in this project and all its subprojects (not only direct).String
getDescription()
Returns project descriptionString
getExternalId()
Returns the external project identifier.String
getFullName()
Returns project full name in the form: <parent project name> / <parent project name> / ...String
getName()
Returns project nameList<? extends BuildType>
getOwnBuildTypes()
Returns all build configurations registered in this certain project.List<? extends BuildProject>
getOwnProjects()
Returns direct child projects of this project.List<? extends VcsRoot>
getOwnVcsRoots()
Returns all VCS roots used by build configurations or templates in this certain project.BuildProject
getParentProject()
Returns the parent project of this project.String
getParentProjectExternalId()
Returns external id of the parent project of this project.String
getParentProjectId()
Returns internal id of the parent project of this project.String
getProjectId()
Returns the internal project identifier.List<? extends BuildProject>
getProjects()
Returns all child projects (including children of children and so on) of this project.Status
getStatus()
Returns project status calculated according to cumulative status of all build configurations registered in the project.List<? extends VcsRoot>
getVcsRoots()
Returns all VCS roots used by build configurations or templates in this project and all its subprojects (not only direct).boolean
isRootProject()
Returns true iff this project is root project-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
ROOT_PROJECT_ID
@NotNull static final String ROOT_PROJECT_ID
The internal and external identifier of the root project.- Since:
- 8.0
- See Also:
getProjectId()
,getExternalId()
-
-
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()
-
getParentProject
@Nullable BuildProject getParentProject()
Returns the parent project of this project.Every project, except the root one, has a parent project.
- Returns:
- parent project or null if it is the root project
- Since:
- 8.0
- See Also:
getParentProjectId()
,getParentProjectExternalId()
-
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
-
-