com.atlassian.bamboo.ww2.beans
Class DecoratedResultStatus

java.lang.Object
  extended by com.atlassian.bamboo.ww2.beans.DecoratedResultStatus
All Implemented Interfaces:
DecoratedNavObjectStatus

public class DecoratedResultStatus
extends Object
implements DecoratedNavObjectStatus


Field Summary
static String NOT_RUN_YET
           
 
Constructor Summary
DecoratedResultStatus(ResultsSummary resultSummary, DecoratedResult decoratedResult)
           
 
Method Summary
 Date getBuildStartTime()
           
 BuildState getBuildState()
           
 String getDisplayClass()
           
 String getDuration()
          A test representation of the duration of this object
 ExecutionStatus getExecutionStatus()
           
 String getJobExecutionPhaseString()
           
 LifeCycleState getLifeCycleState()
           
 String getOpTimeText()
           
 String getSummarySuffix()
           
 String getTestSummary()
          A text representation of test status for this object
 boolean isActive()
           
 boolean isContinuable()
           
 boolean isInProgress()
           
 boolean isNotRunYet()
           
 boolean isUpdatingSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_RUN_YET

public static final String NOT_RUN_YET
See Also:
Constant Field Values
Constructor Detail

DecoratedResultStatus

public DecoratedResultStatus(ResultsSummary resultSummary,
                             DecoratedResult decoratedResult)
Method Detail

getDisplayClass

@NotNull
public String getDisplayClass()
Specified by:
getDisplayClass in interface DecoratedNavObjectStatus
Returns:
the css class to be used for this object

getJobExecutionPhaseString

@NotNull
public String getJobExecutionPhaseString()
Specified by:
getJobExecutionPhaseString in interface DecoratedNavObjectStatus
Returns:
string representing current phase of job execution

getExecutionStatus

@Nullable
public ExecutionStatus getExecutionStatus()
Specified by:
getExecutionStatus in interface DecoratedNavObjectStatus
Returns:
If the build is running returns details about the running build

isInProgress

public boolean isInProgress()
Specified by:
isInProgress in interface DecoratedNavObjectStatus
Returns:
true if this object currently running.

isActive

public boolean isActive()
Specified by:
isActive in interface DecoratedNavObjectStatus
Returns:
true if this object currently active.

isUpdatingSource

public boolean isUpdatingSource()
Specified by:
isUpdatingSource in interface DecoratedNavObjectStatus

getTestSummary

public String getTestSummary()
Description copied from interface: DecoratedNavObjectStatus
A text representation of test status for this object

Specified by:
getTestSummary in interface DecoratedNavObjectStatus
Returns:

getDuration

public String getDuration()
Description copied from interface: DecoratedNavObjectStatus
A test representation of the duration of this object

Specified by:
getDuration in interface DecoratedNavObjectStatus
Returns:

getBuildStartTime

public Date getBuildStartTime()

isContinuable

public boolean isContinuable()

isNotRunYet

public boolean isNotRunYet()

getSummarySuffix

@NotNull
public String getSummarySuffix()
Specified by:
getSummarySuffix in interface DecoratedNavObjectStatus
Returns:
text describing the build/job status (e.g. "was successful", "failed")

getOpTimeText

@Nullable
public String getOpTimeText()
Specified by:
getOpTimeText in interface DecoratedNavObjectStatus

getLifeCycleState

public LifeCycleState getLifeCycleState()

getBuildState

public BuildState getBuildState()


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