Interface BuildProblemResponsibilityFacade

    • Method Detail

      • setBuildProblemResponsibility

        void setBuildProblemResponsibility​(@NotNull
                                           BuildProblemInfo buildProblem,
                                           @NotNull
                                           String projectId,
                                           @NotNull
                                           ResponsibilityEntry entry)
        Sets the responsibility for build problem in a specified project
        Parameters:
        buildProblem - build problem
        projectId - project internal id
      • findBuildProblemResponsibility

        @Nullable
        BuildProblemResponsibilityEntry findBuildProblemResponsibility​(@NotNull
                                                                       BuildProblemInfo buildProblem,
                                                                       @NotNull
                                                                       String projectId)
        Returns responsibility entry for a build problem direct in a project, or null if it does not exist
        Parameters:
        buildProblem - build problem
        projectId - project internal id
        Returns:
        responsibility entry, or null
      • findBuildProblemResponsibilities

        @NotNull
        List<BuildProblemResponsibilityEntry> findBuildProblemResponsibilities​(@NotNull
                                                                               BuildProblemInfo buildProblem,
                                                                               @NotNull
                                                                               String projectId)
        Returns all responsibility entries for a build problem in the project's tree
        Parameters:
        buildProblem - build problem
        projectId - project internal id
        Returns:
        responsibility entries list; since 2018.1 entries for the specified project go first in the list
        Since:
        8.0
      • findEffectiveBuildProblemResponsibilities

        @NotNull
        List<BuildProblemResponsibilityEntry> findEffectiveBuildProblemResponsibilities​(@NotNull
                                                                                        BuildProblemInfo buildProblem,
                                                                                        @NotNull
                                                                                        String projectId)
        Returns all responsibility entries for a build problem in the project and it's parents
        Parameters:
        buildProblemId - build problem id
        projectId - project internal id
        Returns:
        responsibility entries list
        Since:
        10.0.4
      • getUserBuildProblemResponsibilities

        @NotNull
        List<BuildProblemResponsibilityEntry> getUserBuildProblemResponsibilities​(@Nullable
                                                                                  User user,
                                                                                  @Nullable
                                                                                  String projectId)
        Returns the list of responsibility entries associated with the specified user in a specified project.
        Parameters:
        user - the responsible user; null means all users
        projectId - the project internal id; null means all projects
        Returns:
        list of responsibility entries
      • removeBuildProblemResponsibility

        void removeBuildProblemResponsibility​(@NotNull
                                              BuildProblemInfo buildProblem,
                                              @NotNull
                                              String projectId)
        Removes responsibility entry associated with specified build problem
        Parameters:
        buildProblem - buils problem
        projectId - project internal id