Package com.atlassian.bamboo.chains
Class StageStatusHelperImpl
java.lang.Object
com.atlassian.bamboo.chains.StageStatusHelperImpl
- All Implemented Interfaces:
StageStatusHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
getDisplayClassForStage
(@NotNull ChainStageResult chainStageResult) Returns the CSS class name for a stage@NotNull String
getDisplayMessageForStage
(@NotNull ChainStageResult chainStageResult) Returns the display message for a stageboolean
isCollapsedByDefault
(@NotNull ChainStageResult chainStageResult, @NotNull Collection<ChainStageResult> chainStageResults) Returns a boolean indicating whether or not the stage should appear collapsed by default in the UI
-
Constructor Details
-
StageStatusHelperImpl
public StageStatusHelperImpl(com.opensymphony.xwork2.TextProvider textProvider)
-
-
Method Details
-
getDisplayClassForStage
@NotNull public @NotNull String getDisplayClassForStage(@NotNull @NotNull ChainStageResult chainStageResult) Description copied from interface:StageStatusHelper
Returns the CSS class name for a stage- Specified by:
getDisplayClassForStage
in interfaceStageStatusHelper
- Returns:
-
getDisplayMessageForStage
@NotNull public @NotNull String getDisplayMessageForStage(@NotNull @NotNull ChainStageResult chainStageResult) Description copied from interface:StageStatusHelper
Returns the display message for a stage- Specified by:
getDisplayMessageForStage
in interfaceStageStatusHelper
- Returns:
-
isCollapsedByDefault
public boolean isCollapsedByDefault(@NotNull @NotNull ChainStageResult chainStageResult, @NotNull @NotNull Collection<ChainStageResult> chainStageResults) Description copied from interface:StageStatusHelper
Returns a boolean indicating whether or not the stage should appear collapsed by default in the UI- Specified by:
isCollapsedByDefault
in interfaceStageStatusHelper
chainStageResults
- - the Collection of ChainStageResults containing the ChainStageResult- Returns:
-