Class SystemProblemNotificationEngine

    • Constructor Detail

      • SystemProblemNotificationEngine

        public SystemProblemNotificationEngine()
    • Method Detail

      • setVcsManager

        public void setVcsManager​(@NotNull
                                  VcsManagerEx vcsManager)
      • setProjectManager

        public void setProjectManager​(@NotNull
                                      ProjectManager projectManager)
      • raiseProblem

        @NotNull
        public SystemProblemTicket raiseProblem​(@NotNull
                                                SBuildType relatedBuildType,
                                                @NotNull
                                                SVcsRoot relatedVcsRoot,
                                                @NotNull
                                                SystemProblem problem)
        Description copied from interface: SystemProblemNotification
        Raises a problem and links it to a pair of the given Build Type and VCS Root. The example of such problems are the problems with Checkout Rules -- they are related to both VCS Roots and Build Types.
        Specified by:
        raiseProblem in interface SystemProblemNotification
        Parameters:
        relatedBuildType - Build Type
        relatedVcsRoot - VCS Root
        problem - problem
        Returns:
        the problem ticket
      • clearProblem

        public void clearProblem​(int problemId)
      • getProblems

        @NotNull
        public Collection<SystemProblemEntry> getProblems​(@NotNull
                                                          SBuildType bt)
        Description copied from interface: SystemProblemList
        Returns the set of system problems related to the given Build Type. It includes both directly and indirectly associated problems. That is the problem directly associated with the VCS Roots connected to this Build Type are also included.
        Specified by:
        getProblems in interface SystemProblemList
        Parameters:
        bt - Build Type
        Returns:
        the collection of problems
      • getProblems

        @NotNull
        public Collection<SystemProblemEntry> getProblems​(@NotNull
                                                          SBuildType buildType,
                                                          @Nullable
                                                          String problemType,
                                                          @Nullable
                                                          String problemSource)
        Description copied from interface: SystemProblemList
        Returns the set of system problems related to the given Build Type with additional filtering by problem type and problem source. It includes both directly and indirectly associated problems. That is the problem directly associated with the VCS Roots connected to this Build Type are also included.
        Specified by:
        getProblems in interface SystemProblemList
        Parameters:
        buildType - Build Type
        problemType - if not null only problems of this problem type are included
        problemSource - if not null only problems with this problem source are included
        Returns:
        the collection of problems
      • getProblem

        public SystemProblem getProblem​(int problemId)
        Description copied from interface: SystemProblemList
        Returns the problem by the given id
        Specified by:
        getProblem in interface SystemProblemList
        Parameters:
        problemId - id od the problem
        Returns:
        the problem or null if no such problem found
      • getProblems

        @NotNull
        public Collection<SystemProblemEntry> getProblems​(@NotNull
                                                          SVcsRoot vcsRoot)
        Description copied from interface: SystemProblemList
        Returns the set of system problems related to the given VCS Root. The problems associated with this VCS Root AND some Build Type are NOT included.
        Specified by:
        getProblems in interface SystemProblemList
        Parameters:
        vcsRoot - VCS Root
        Returns:
        the collection of problems