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 booleanequals(Object o)static List<BuildProblem>fillIsNew(BuildPromotion problemsOwner, List<BuildProblem> buildProblems)List<BuildProblemResponsibilityEntry>getAllResponsibilities()Returns all build problem responsibilitiesBuildProblemDatagetBuildProblemData()Returns build problem detailsStringgetBuildProblemDescription()BuildPromotiongetBuildPromotion()Returns corresponding build promotionCurrentMuteInfogetCurrentMuteInfo()Returns current mute information for this build problem or null if it's not currently muted Note that every method call causes database callintgetId()Returns build problem idMuteInfogetMuteInBuildInfo()Returns the brief mute information for this build problemStringgetProjectId()Returns related project internal idBuildProblemResponsibilityEntrygetResponsibility()Returns current responsibility information for this build problem or null if it's not currently investigatedTextStatusBuildergetStatusTextBuilder()Returns custom build problem status text builder or null if build problem shouldn't affect build status textStringgetTypeDescription()Returns human readable build problem type description or null if none providedBuildProblemTypeDetailsProvidergetTypeDetailsProvider()inthashCode()booleanisMuted()Returns weather this build problem is currently muted Note that every method call causes database callbooleanisMutedInBuild()Returns whether this build problem is marked as muted in buildBooleanisNew()Returns whether build problem first appeared in this buildvoidsetTypeDetailsProvider(BuildProblemTypeDetailsProvider typeDetailsProvider)StringtoString()
-
-
-
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:BuildProblemInfoReturns build problem id- Specified by:
getIdin interfaceBuildProblemInfo- Returns:
- see above
-
getBuildProblemData
@NotNull public BuildProblemData getBuildProblemData()
Description copied from interface:BuildProblemReturns build problem details- Specified by:
getBuildProblemDatain interfaceBuildProblem- Returns:
- see above
-
isMutedInBuild
public boolean isMutedInBuild()
Description copied from interface:BuildProblemReturns whether this build problem is marked as muted in build- Specified by:
isMutedInBuildin interfaceBuildProblem- Returns:
- see above
- See Also:
BuildProblem.getMuteInBuildInfo()
-
getMuteInBuildInfo
@Nullable public MuteInfo getMuteInBuildInfo()
Description copied from interface:BuildProblemReturns the brief mute information for this build problem- Specified by:
getMuteInBuildInfoin interfaceBuildProblem- Returns:
- see above
- See Also:
BuildProblem.isMutedInBuild()
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceBuildProblemInfo- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceBuildProblemInfo- Overrides:
hashCodein classObject
-
getTypeDescription
@Nullable public String getTypeDescription()
Description copied from interface:BuildProblemReturns human readable build problem type description or null if none provided- Specified by:
getTypeDescriptionin interfaceBuildProblem- Returns:
- see above
-
getStatusTextBuilder
@Nullable public TextStatusBuilder getStatusTextBuilder()
Description copied from interface:BuildProblemReturns custom build problem status text builder or null if build problem shouldn't affect build status text- Specified by:
getStatusTextBuilderin 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:BuildProblemReturns corresponding build promotion- Specified by:
getBuildPromotionin interfaceBuildProblem- Returns:
- see above
-
isMuted
public boolean isMuted()
Description copied from interface:BuildProblemReturns weather this build problem is currently muted Note that every method call causes database call- Specified by:
isMutedin interfaceBuildProblem- Returns:
- see above
-
getCurrentMuteInfo
@Nullable public CurrentMuteInfo getCurrentMuteInfo()
Description copied from interface:BuildProblemReturns 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:
getCurrentMuteInfoin interfaceBuildProblem- Returns:
- see above
-
getResponsibility
@Nullable public BuildProblemResponsibilityEntry getResponsibility()
Description copied from interface:BuildProblemReturns current responsibility information for this build problem or null if it's not currently investigated- Specified by:
getResponsibilityin interfaceBuildProblem- Returns:
- see above
-
getAllResponsibilities
@NotNull public List<BuildProblemResponsibilityEntry> getAllResponsibilities()
Description copied from interface:BuildProblemReturns all build problem responsibilities- Specified by:
getAllResponsibilitiesin interfaceBuildProblem- Returns:
- see above
-
getProjectId
@Nullable public String getProjectId()
Description copied from interface:BuildProblemInfoReturns related project internal id- Specified by:
getProjectIdin interfaceBuildProblemInfo- Returns:
- see above
-
getBuildProblemDescription
@Nullable public String getBuildProblemDescription()
- Specified by:
getBuildProblemDescriptionin interfaceBuildProblemInfo
-
getTypeDetailsProvider
@Nullable public BuildProblemTypeDetailsProvider getTypeDetailsProvider()
-
setTypeDetailsProvider
public void setTypeDetailsProvider(@Nullable BuildProblemTypeDetailsProvider typeDetailsProvider)
-
-