Interface BuildTypeResponsibilityFacade

    • 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
        List<BuildTypeResponsibilityEntry> getUserBuildTypeResponsibilities​(@Nullable
                                                                            User user,
                                                                            @Nullable
                                                                            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