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 java.lang.Object
implements DecoratedNavObjectStatus


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

Constructor Detail

DecoratedResultStatus

public DecoratedResultStatus(ResultsSummary resultSummary,
                             DecoratedResult decoratedResult)
Method Detail

getDisplayClass

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

getJobExecutionPhaseString

@NotNull
public java.lang.String getJobExecutionPhaseString()
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()

getTestSummary

public java.lang.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 java.lang.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 java.util.Date getBuildStartTime()

getSummarySuffix

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

getOpTimeText

public java.lang.String getOpTimeText()

getLifeCycleState

public LifeCycleState getLifeCycleState()

getBuildState

public BuildState getBuildState()


Copyright © 2011 Atlassian. All Rights Reserved.