com.atlassian.bamboo.chains
Class StageStatusHelperImpl

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

public class StageStatusHelperImpl
extends java.lang.Object
implements StageStatusHelper


Constructor Summary
StageStatusHelperImpl(com.opensymphony.xwork.TextProvider textProvider)
           
 
Method Summary
 java.lang.String getDisplayClassForStage(ChainStageResult chainStageResult)
          Returns the CSS class name for a stage
 java.lang.String getDisplayMessageForStage(ChainStageResult chainStageResult)
          Returns the display message for a stage
 boolean isCollapsedByDefault(ChainStageResult chainStageResult, java.util.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.xwork.TextProvider textProvider)
Method Detail

getDisplayClassForStage

@NotNull
public java.lang.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 java.lang.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
                                    java.util.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 © 2012 Atlassian. All Rights Reserved.