Class BuildProblemImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.problems.BuildProblemImpl
-
- All Implemented Interfaces:
BuildProblem
,BuildProblemInfo
public class BuildProblemImpl extends Object implements BuildProblem, BuildProblemInfo
Contains build problem details with extended information about muting
-
-
Constructor Summary
Constructors Constructor Description BuildProblemImpl(BuildPromotion buildPromotion, int buildProblemId, BuildProblemData buildProblemData, boolean muted, MuteInfo muteInfo, ProblemMutingService mutingService, BuildProblemResponsibilityFacade responsibilityFacade)
BuildProblemImpl(BuildPromotion buildPromotion, int buildProblemId, BuildProblemData buildProblemData, boolean muted, ProblemMutingService mutingService, BuildProblemResponsibilityFacade responsibilityFacade)
BuildProblemImpl(BuildPromotion buildPromotion, int buildProblemId, BuildProblemData buildProblemData, ProblemMutingService mutingService, BuildProblemResponsibilityFacade responsibilityFacade)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static List<BuildProblem>
fillIsNew(BuildPromotion problemsOwner, List<BuildProblem> buildProblems)
List<BuildProblemResponsibilityEntry>
getAllResponsibilities()
Returns all build problem responsibilitiesBuildProblemData
getBuildProblemData()
Returns build problem detailsString
getBuildProblemDescription()
BuildPromotion
getBuildPromotion()
Returns corresponding build promotionCurrentMuteInfo
getCurrentMuteInfo()
Returns current mute information for this build problem or null if it's not currently muted Note that every method call causes database callint
getId()
Returns build problem idMuteInfo
getMuteInBuildInfo()
Returns the brief mute information for this build problemString
getProjectId()
Returns related project internal idBuildProblemResponsibilityEntry
getResponsibility()
Returns current responsibility information for this build problem or null if it's not currently investigatedTextStatusBuilder
getStatusTextBuilder()
Returns custom build problem status text builder or null if build problem shouldn't affect build status textString
getTypeDescription()
Returns human readable build problem type description or null if none providedBuildProblemTypeDetailsProvider
getTypeDetailsProvider()
int
hashCode()
boolean
isMuted()
Returns weather this build problem is currently muted Note that every method call causes database callboolean
isMutedInBuild()
Returns whether this build problem is marked as muted in buildBoolean
isNew()
Returns whether build problem first appeared in this buildvoid
setTypeDetailsProvider(BuildProblemTypeDetailsProvider typeDetailsProvider)
String
toString()
-
-
-
Constructor Detail
-
BuildProblemImpl
public BuildProblemImpl(@NotNull BuildPromotion buildPromotion, int buildProblemId, @NotNull BuildProblemData buildProblemData, @NotNull ProblemMutingService mutingService, @NotNull BuildProblemResponsibilityFacade responsibilityFacade)
-
BuildProblemImpl
public BuildProblemImpl(@NotNull BuildPromotion buildPromotion, int buildProblemId, @NotNull BuildProblemData buildProblemData, boolean muted, @NotNull ProblemMutingService mutingService, @NotNull BuildProblemResponsibilityFacade responsibilityFacade)
-
BuildProblemImpl
public BuildProblemImpl(@NotNull BuildPromotion buildPromotion, int buildProblemId, @NotNull BuildProblemData buildProblemData, boolean muted, @Nullable MuteInfo muteInfo, @NotNull ProblemMutingService mutingService, @NotNull BuildProblemResponsibilityFacade responsibilityFacade)
-
-
Method Detail
-
getId
public int getId()
Description copied from interface:BuildProblemInfo
Returns build problem id- Specified by:
getId
in interfaceBuildProblemInfo
- Returns:
- see above
-
getBuildProblemData
@NotNull public BuildProblemData getBuildProblemData()
Description copied from interface:BuildProblem
Returns build problem details- Specified by:
getBuildProblemData
in interfaceBuildProblem
- Returns:
- see above
-
isMutedInBuild
public boolean isMutedInBuild()
Description copied from interface:BuildProblem
Returns whether this build problem is marked as muted in build- Specified by:
isMutedInBuild
in interfaceBuildProblem
- Returns:
- see above
- See Also:
BuildProblem.getMuteInBuildInfo()
-
getMuteInBuildInfo
@Nullable public MuteInfo getMuteInBuildInfo()
Description copied from interface:BuildProblem
Returns the brief mute information for this build problem- Specified by:
getMuteInBuildInfo
in interfaceBuildProblem
- Returns:
- see above
- See Also:
BuildProblem.isMutedInBuild()
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceBuildProblemInfo
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceBuildProblemInfo
- Overrides:
hashCode
in classObject
-
getTypeDescription
@Nullable public String getTypeDescription()
Description copied from interface:BuildProblem
Returns human readable build problem type description or null if none provided- Specified by:
getTypeDescription
in interfaceBuildProblem
- Returns:
- see above
-
getStatusTextBuilder
@Nullable public TextStatusBuilder getStatusTextBuilder()
Description copied from interface:BuildProblem
Returns custom build problem status text builder or null if build problem shouldn't affect build status text- Specified by:
getStatusTextBuilder
in interfaceBuildProblem
- Returns:
- see above
-
isNew
@Nullable public Boolean isNew()
Returns whether build problem first appeared in this build- Returns:
- null if corresponding data wasn't filled or is not available (see TW-26535)
-
fillIsNew
@NotNull public static List<BuildProblem> fillIsNew(@Nullable BuildPromotion problemsOwner, @NotNull List<BuildProblem> buildProblems)
-
getBuildPromotion
@NotNull public BuildPromotion getBuildPromotion()
Description copied from interface:BuildProblem
Returns corresponding build promotion- Specified by:
getBuildPromotion
in interfaceBuildProblem
- Returns:
- see above
-
isMuted
public boolean isMuted()
Description copied from interface:BuildProblem
Returns weather this build problem is currently muted Note that every method call causes database call- Specified by:
isMuted
in interfaceBuildProblem
- Returns:
- see above
-
getCurrentMuteInfo
@Nullable public CurrentMuteInfo getCurrentMuteInfo()
Description copied from interface:BuildProblem
Returns current mute information for this build problem or null if it's not currently muted Note that every method call causes database call- Specified by:
getCurrentMuteInfo
in interfaceBuildProblem
- Returns:
- see above
-
getResponsibility
@Nullable public BuildProblemResponsibilityEntry getResponsibility()
Description copied from interface:BuildProblem
Returns current responsibility information for this build problem or null if it's not currently investigated- Specified by:
getResponsibility
in interfaceBuildProblem
- Returns:
- see above
-
getAllResponsibilities
@NotNull public List<BuildProblemResponsibilityEntry> getAllResponsibilities()
Description copied from interface:BuildProblem
Returns all build problem responsibilities- Specified by:
getAllResponsibilities
in interfaceBuildProblem
- Returns:
- see above
-
getProjectId
@Nullable public String getProjectId()
Description copied from interface:BuildProblemInfo
Returns related project internal id- Specified by:
getProjectId
in interfaceBuildProblemInfo
- Returns:
- see above
-
getBuildProblemDescription
@Nullable public String getBuildProblemDescription()
- Specified by:
getBuildProblemDescription
in interfaceBuildProblemInfo
-
getTypeDetailsProvider
@Nullable public BuildProblemTypeDetailsProvider getTypeDetailsProvider()
-
setTypeDetailsProvider
public void setTypeDetailsProvider(@Nullable BuildProblemTypeDetailsProvider typeDetailsProvider)
-
-