Class SystemProblemNotificationEngine
- java.lang.Object
-
- jetbrains.buildServer.serverSide.systemProblems.SystemProblemNotificationEngine
-
- All Implemented Interfaces:
SystemProblemList,SystemProblemNotification
public class SystemProblemNotificationEngine extends Object implements SystemProblemNotification, SystemProblemList
-
-
Constructor Summary
Constructors Constructor Description SystemProblemNotificationEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearProblem(int problemId)SystemProblemgetProblem(int problemId)Returns the problem by the given idCollection<SBuildType>getProblematicBuildTypes()Returns the set of Build Types having at least one system problem (directly or indirectly associated)Collection<SystemProblemEntry>getProblems(SBuildType bt)Returns the set of system problems related to the given Build Type.Collection<SystemProblemEntry>getProblems(SBuildType buildType, String problemType, String problemSource)Returns the set of system problems related to the given Build Type with additional filtering by problem type and problem source.Collection<SystemProblemEntry>getProblems(SVcsRoot vcsRoot)Returns the set of system problems related to the given VCS Root.SystemProblemTicketraiseProblem(SBuildType relatedTo, SystemProblem problem)Raises a problem and links it to the given Build TypeSystemProblemTicketraiseProblem(SBuildType relatedBuildType, SVcsRoot relatedVcsRoot, SystemProblem problem)Raises a problem and links it to a pair of the given Build Type and VCS Root.SystemProblemTicketraiseProblem(SVcsRoot relatedTo, SystemProblem problem)Raises a problem and links it to the given VCS RootvoidsetProjectManager(ProjectManager projectManager)voidsetVcsManager(VcsManagerEx vcsManager)
-
-
-
Method Detail
-
setVcsManager
public void setVcsManager(@NotNull VcsManagerEx vcsManager)
-
setProjectManager
public void setProjectManager(@NotNull ProjectManager projectManager)
-
raiseProblem
@NotNull public SystemProblemTicket raiseProblem(@NotNull SBuildType relatedTo, @NotNull SystemProblem problem)
Description copied from interface:SystemProblemNotificationRaises a problem and links it to the given Build Type- Specified by:
raiseProblemin interfaceSystemProblemNotification- Parameters:
relatedTo- Build Typeproblem- problem- Returns:
- the problem ticket
-
raiseProblem
@NotNull @TestOnly public SystemProblemTicket raiseProblem(@NotNull SVcsRoot relatedTo, @NotNull SystemProblem problem)
Description copied from interface:SystemProblemNotificationRaises a problem and links it to the given VCS Root- Specified by:
raiseProblemin interfaceSystemProblemNotification- Parameters:
relatedTo- VCS Rootproblem- problem- Returns:
- the problem ticket
- See Also:
SystemProblemNotification.raiseProblem(SBuildType, SVcsRoot, SystemProblem)
-
raiseProblem
@NotNull public SystemProblemTicket raiseProblem(@NotNull SBuildType relatedBuildType, @NotNull SVcsRoot relatedVcsRoot, @NotNull SystemProblem problem)
Description copied from interface:SystemProblemNotificationRaises 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:
raiseProblemin interfaceSystemProblemNotification- Parameters:
relatedBuildType- Build TyperelatedVcsRoot- VCS Rootproblem- problem- Returns:
- the problem ticket
-
clearProblem
public void clearProblem(int problemId)
-
getProblems
@NotNull public Collection<SystemProblemEntry> getProblems(@NotNull SBuildType bt)
Description copied from interface:SystemProblemListReturns 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:
getProblemsin interfaceSystemProblemList- 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:SystemProblemListReturns 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:
getProblemsin interfaceSystemProblemList- Parameters:
buildType- Build TypeproblemType- if not null only problems of this problem type are includedproblemSource- if not null only problems with this problem source are included- Returns:
- the collection of problems
-
getProblematicBuildTypes
@NotNull public Collection<SBuildType> getProblematicBuildTypes()
Description copied from interface:SystemProblemListReturns the set of Build Types having at least one system problem (directly or indirectly associated)- Specified by:
getProblematicBuildTypesin interfaceSystemProblemList- Returns:
- the collection of problematic Build Types
-
getProblem
public SystemProblem getProblem(int problemId)
Description copied from interface:SystemProblemListReturns the problem by the given id- Specified by:
getProblemin interfaceSystemProblemList- 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:SystemProblemListReturns 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:
getProblemsin interfaceSystemProblemList- Parameters:
vcsRoot- VCS Root- Returns:
- the collection of problems
-
-