Interface BuildTypeResponsibilityFacade
-
public interface BuildTypeResponsibilityFacade
Provides the interface to access and modify the responsibility on a build type. Thread-safe.- Since:
- 5.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResponsibilityEntry
findBuildTypeResponsibility(BuildType buildType)
Returns the responsibility entry for a build type, or null if it does not exist.java.util.List<BuildTypeResponsibilityEntry>
getUserBuildTypeResponsibilities(User user, java.lang.String projectId)
Returns the list of entries associated with the user (if specified) in a specified project (or globally).void
removeBuildTypeResponsibility(BuildType buildType)
Deletes the build type entry associated with the build type.void
setBuildTypeResponsibility(BuildType buildType, ResponsibilityEntry entry)
Sets the responsibility entry for the build type.
-
-
-
Method Detail
-
findBuildTypeResponsibility
@Nullable ResponsibilityEntry findBuildTypeResponsibility(@NotNull BuildType buildType)
Returns the responsibility entry for a build type, or null if it does not exist.- Parameters:
buildType
- the build type- Returns:
- responsibility entry, or null
-
getUserBuildTypeResponsibilities
@NotNull java.util.List<BuildTypeResponsibilityEntry> getUserBuildTypeResponsibilities(@Nullable User user, @Nullable java.lang.String projectId)
Returns the list of entries associated with the user (if specified) in a specified project (or globally).- Parameters:
user
- the responsible user; null means all usersprojectId
- the project id; null means all projects- Returns:
- list of responsibilities
- Since:
- projectId is nullable since TeamCity 7.0
-
setBuildTypeResponsibility
void setBuildTypeResponsibility(@NotNull BuildType buildType, @NotNull ResponsibilityEntry entry)
Sets the responsibility entry for the build type.Note: if new reporter user isn't set (
entry.getReporterUser() == null
), it is not overwritten.- Parameters:
buildType
- the build typeentry
- responsibility entry
-
removeBuildTypeResponsibility
void removeBuildTypeResponsibility(@NotNull BuildType buildType)
Deletes the build type entry associated with the build type. Does nothing, if it doesn't exist.- Parameters:
buildType
- the build type
-
-