com.atlassian.bamboo.chains
Class StageStatusHelperImpl

java.lang.Object
  extended by com.atlassian.bamboo.chains.StageStatusHelperImpl
All Implemented Interfaces:
StageStatusHelper

public class StageStatusHelperImpl
extends Object
implements StageStatusHelper


Constructor Summary
StageStatusHelperImpl(com.opensymphony.xwork2.TextProvider textProvider)
           
 
Method Summary
 String getDisplayClassForStage(ChainStageResult chainStageResult)
          Returns the CSS class name for a stage
 String getDisplayMessageForStage(ChainStageResult chainStageResult)
          Returns the display message for a stage
 boolean isCollapsedByDefault(ChainStageResult chainStageResult, Collection<ChainStageResult> chainStageResults)
          Returns a boolean indicating whether or not the stage should appear collapsed by default in the UI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StageStatusHelperImpl

public StageStatusHelperImpl(com.opensymphony.xwork2.TextProvider textProvider)
Method Detail

getDisplayClassForStage

@NotNull
public String getDisplayClassForStage(@NotNull
                                              ChainStageResult chainStageResult)
Description copied from interface: StageStatusHelper
Returns the CSS class name for a stage

Specified by:
getDisplayClassForStage in interface StageStatusHelper
Returns:

getDisplayMessageForStage

@NotNull
public String getDisplayMessageForStage(@NotNull
                                                ChainStageResult chainStageResult)
Description copied from interface: StageStatusHelper
Returns the display message for a stage

Specified by:
getDisplayMessageForStage in interface StageStatusHelper
Returns:

isCollapsedByDefault

public boolean isCollapsedByDefault(@NotNull
                                    ChainStageResult chainStageResult,
                                    @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 interface StageStatusHelper
chainStageResults - - the Collection of ChainStageResults containing the ChainStageResult
Returns:


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.