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 void
clearProblem(int problemId)
SystemProblem
getProblem(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.SystemProblemTicket
raiseProblem(SBuildType relatedTo, SystemProblem problem)
Raises a problem and links it to the given Build TypeSystemProblemTicket
raiseProblem(SBuildType relatedBuildType, SVcsRoot relatedVcsRoot, SystemProblem problem)
Raises a problem and links it to a pair of the given Build Type and VCS Root.SystemProblemTicket
raiseProblem(SVcsRoot relatedTo, SystemProblem problem)
Raises a problem and links it to the given VCS Rootvoid
setProjectManager(ProjectManager projectManager)
void
setVcsManager(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:SystemProblemNotification
Raises a problem and links it to the given Build Type- Specified by:
raiseProblem
in 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:SystemProblemNotification
Raises a problem and links it to the given VCS Root- Specified by:
raiseProblem
in 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: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 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: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 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: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 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:SystemProblemList
Returns the set of Build Types having at least one system problem (directly or indirectly associated)- Specified by:
getProblematicBuildTypes
in interfaceSystemProblemList
- Returns:
- the collection of problematic Build Types
-
getProblem
public SystemProblem getProblem(int problemId)
Description copied from interface:SystemProblemList
Returns the problem by the given id- Specified by:
getProblem
in 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: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 interfaceSystemProblemList
- Parameters:
vcsRoot
- VCS Root- Returns:
- the collection of problems
-
-