com.atlassian.bamboo.chains
Class ChainResultImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.chains.ChainResultImpl
All Implemented Interfaces:
ChainResult, BambooObject, java.lang.Cloneable

public class ChainResultImpl
extends BambooEntityObject
implements ChainResult


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
ChainResultImpl()
           
ChainResultImpl(Chain chain, int chainBuildNumber)
           
 
Method Summary
 boolean addStageResult(ChainStageResult chainStageResult)
          Add a stage result
 ChainStageResult create(java.lang.String name, java.lang.String description)
          Create a new ChainStageResult and associates it with the ChainResult
 BuildState getBuildState()
          Gets the BuildState of the Chain
 Chain getChain()
          Get Chain
 int getChainBuildNumber()
          Get Chain result number
 PlanResultKey getPlanResultKey()
          Gets the PlanResultKey for this ChainResult
 java.lang.String getResultKey()
          Get the Chain result key (eg BUILD-CHAIN-123)
 java.util.List<ChainStageResult> getStageResults()
          Get all the ChainStageResult's associated with this ChainResult
 boolean isFailed()
          Is the chain execution a failure?
 boolean isPending()
          Is the chain execution still pending?
 boolean isSuccessful()
          Is the chain execution successful?
 boolean removeStageResult(ChainStageResult chainStageResult)
          Remove a stage result
 void setBuildState(BuildState buildState)
          Sets the BuildState of the Chain
 void setChain(Chain chain)
          Set Chain
 void setChainBuildNumber(int chainBuildNumber)
          Set the Chain result number
 void setStageResults(java.util.List<ChainStageResult> stageResults)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 

Constructor Detail

ChainResultImpl

public ChainResultImpl(Chain chain,
                       int chainBuildNumber)

ChainResultImpl

public ChainResultImpl()
Method Detail

getPlanResultKey

@NotNull
public PlanResultKey getPlanResultKey()
Description copied from interface: ChainResult
Gets the PlanResultKey for this ChainResult

Specified by:
getPlanResultKey in interface ChainResult
Returns:
planResultKey

isSuccessful

public boolean isSuccessful()
Description copied from interface: ChainResult
Is the chain execution successful?

Specified by:
isSuccessful in interface ChainResult
Returns:
successful

isFailed

public boolean isFailed()
Description copied from interface: ChainResult
Is the chain execution a failure?

Specified by:
isFailed in interface ChainResult
Returns:
failure

isPending

public boolean isPending()
Description copied from interface: ChainResult
Is the chain execution still pending?

Specified by:
isPending in interface ChainResult
Returns:

getBuildState

public BuildState getBuildState()
Description copied from interface: ChainResult
Gets the BuildState of the Chain

Specified by:
getBuildState in interface ChainResult
Returns:
buildState

setBuildState

public void setBuildState(BuildState buildState)
Description copied from interface: ChainResult
Sets the BuildState of the Chain

Specified by:
setBuildState in interface ChainResult

getChainBuildNumber

public int getChainBuildNumber()
Description copied from interface: ChainResult
Get Chain result number

Specified by:
getChainBuildNumber in interface ChainResult
Returns:
num

setChainBuildNumber

public void setChainBuildNumber(int chainBuildNumber)
Description copied from interface: ChainResult
Set the Chain result number

Specified by:
setChainBuildNumber in interface ChainResult

getResultKey

public java.lang.String getResultKey()
Description copied from interface: ChainResult
Get the Chain result key (eg BUILD-CHAIN-123)

Specified by:
getResultKey in interface ChainResult
Returns:
resultKey

getChain

@NotNull
public Chain getChain()
Description copied from interface: ChainResult
Get Chain

Specified by:
getChain in interface ChainResult
Returns:
chain

setChain

public void setChain(@NotNull
                     Chain chain)
Description copied from interface: ChainResult
Set Chain

Specified by:
setChain in interface ChainResult

create

@NotNull
public ChainStageResult create(java.lang.String name,
                                       java.lang.String description)
Description copied from interface: ChainResult
Create a new ChainStageResult and associates it with the ChainResult

Specified by:
create in interface ChainResult
Parameters:
name - name of the Stage related to result
description - decription of the Stage releated to result
Returns:
chainStageResult

getStageResults

@NotNull
public java.util.List<ChainStageResult> getStageResults()
Description copied from interface: ChainResult
Get all the ChainStageResult's associated with this ChainResult

Specified by:
getStageResults in interface ChainResult
Returns:
results

setStageResults

public void setStageResults(@NotNull
                            java.util.List<ChainStageResult> stageResults)

addStageResult

public boolean addStageResult(@NotNull
                              ChainStageResult chainStageResult)
Description copied from interface: ChainResult
Add a stage result

Specified by:
addStageResult in interface ChainResult
Returns:
success

removeStageResult

public boolean removeStageResult(@NotNull
                                 ChainStageResult chainStageResult)
Description copied from interface: ChainResult
Remove a stage result

Specified by:
removeStageResult in interface ChainResult
Returns:
success


Copyright © 2010 Atlassian. All Rights Reserved.