jetbrains.buildServer.serverSide.systemProblems
Interface SystemProblemList


public interface SystemProblemList

Provides an ability to retrieve raised system problems. Each method executes a query returning a subset of system problems with the given properties.

Since:
5.0
See Also:
SystemProblem, SystemProblemEntry, SystemProblemNotification

Method Summary
 SystemProblem getProblem(int id)
          Returns the problem by the given id
 java.util.Collection<SBuildType> getProblematicBuildTypes()
          Returns the set of Build Types having at least one system problem (directly or indirectly associated)
 java.util.Collection<SystemProblemEntry> getProblems(SBuildType buildType)
          Returns the set of system problems related to the given Build Type.
 java.util.Collection<SystemProblemEntry> getProblems(SBuildType buildType, java.lang.String problemType, java.lang.String problemSource)
          Returns the set of system problems related to the given Build Type with additional filtering by problem type and problem source.
 java.util.Collection<SystemProblemEntry> getProblems(SVcsRoot vcsRoot)
          Returns the set of system problems related to the given VCS Root.
 

Method Detail

getProblems

@NotNull
java.util.Collection<SystemProblemEntry> getProblems(@NotNull
                                                             SBuildType buildType)
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.

Parameters:
buildType - Build Type
Returns:
the collection of problems

getProblems

@NotNull
java.util.Collection<SystemProblemEntry> getProblems(@NotNull
                                                             SBuildType buildType,
                                                             @Nullable
                                                             java.lang.String problemType,
                                                             @Nullable
                                                             java.lang.String problemSource)
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.

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

getProblems

@NotNull
java.util.Collection<SystemProblemEntry> getProblems(@NotNull
                                                             SVcsRoot vcsRoot)
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.

Parameters:
vcsRoot - VCS Root
Returns:
the collection of problems

getProblematicBuildTypes

@NotNull
java.util.Collection<SBuildType> getProblematicBuildTypes()
Returns the set of Build Types having at least one system problem (directly or indirectly associated)

Returns:
the collection of problematic Build Types

getProblem

@Nullable
SystemProblem getProblem(int id)
Returns the problem by the given id

Parameters:
id - id od the problem
Returns:
the problem or null if no such problem found