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 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 users
        projectId - 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 type
        entry - 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