com.atlassian.bamboo.chains
Class ChainStageResultImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.chains.ChainStageResultImpl
All Implemented Interfaces:
ChainStageResult, BambooObject, Describable, DescriptionProvider, NameProvider, java.lang.Cloneable

public class ChainStageResultImpl
extends BambooEntityObject
implements ChainStageResult


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
ChainStageResultImpl()
           
ChainStageResultImpl(java.lang.String name, java.lang.String description, ChainResult chainResult)
           
 
Method Summary
 boolean addBuildResult(ExtendedBuildResultsSummary buildResult)
          Adds a ExtendedBuildResultsSummary
 java.util.Set<ExtendedBuildResultsSummary> getBuildResults()
          Returns all the ExtendedBuildResultsSummary with this Stage result
 ChainResult getChainResult()
          Returns the ChainResult associated with this Stage result
 java.lang.String getDescription()
           
 int getListPosition()
          Return position of the Stage Result in the Stage Results list of Chain Result
 java.lang.String getName()
           
 boolean removeBuildResult(ExtendedBuildResultsSummary buildResult)
          Removes a ExtendedBuildResultsSummary
 void setBuildResults(java.util.Set<ExtendedBuildResultsSummary> buildResults)
           
 void setChainResult(ChainResult chainResult)
          Sets the ChainResult associated with this Stage result
 void setDescription(java.lang.String description)
           
 void setListPosition(int index)
           
 void setName(java.lang.String name)
           
 
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

ChainStageResultImpl

public ChainStageResultImpl(java.lang.String name,
                            java.lang.String description,
                            ChainResult chainResult)

ChainStageResultImpl

public ChainStageResultImpl()
Method Detail

getName

@NotNull
public java.lang.String getName()
Specified by:
getName in interface DescriptionProvider
Specified by:
getName in interface NameProvider

setName

public void setName(@NotNull
                    java.lang.String name)
Specified by:
setName in interface Describable

getDescription

@Nullable
public java.lang.String getDescription()
Specified by:
getDescription in interface DescriptionProvider

setDescription

public void setDescription(@Nullable
                           java.lang.String description)
Specified by:
setDescription in interface Describable

getChainResult

@NotNull
public ChainResult getChainResult()
Description copied from interface: ChainStageResult
Returns the ChainResult associated with this Stage result

Specified by:
getChainResult in interface ChainStageResult
Returns:
chainResult

setChainResult

public void setChainResult(@NotNull
                           ChainResult chainResult)
Description copied from interface: ChainStageResult
Sets the ChainResult associated with this Stage result

Specified by:
setChainResult in interface ChainStageResult

getBuildResults

@NotNull
public java.util.Set<ExtendedBuildResultsSummary> getBuildResults()
Description copied from interface: ChainStageResult
Returns all the ExtendedBuildResultsSummary with this Stage result

Specified by:
getBuildResults in interface ChainStageResult
Returns:
results

setBuildResults

public void setBuildResults(@NotNull
                            java.util.Set<ExtendedBuildResultsSummary> buildResults)

addBuildResult

public boolean addBuildResult(@NotNull
                              ExtendedBuildResultsSummary buildResult)
Description copied from interface: ChainStageResult
Adds a ExtendedBuildResultsSummary

Specified by:
addBuildResult in interface ChainStageResult
Returns:
success

removeBuildResult

public boolean removeBuildResult(@NotNull
                                 ExtendedBuildResultsSummary buildResult)
Description copied from interface: ChainStageResult
Removes a ExtendedBuildResultsSummary

Specified by:
removeBuildResult in interface ChainStageResult
Returns:
success

getListPosition

public int getListPosition()
Return position of the Stage Result in the Stage Results list of Chain Result

Returns:
Position of the Stage Result in the Stage Results list of Chain Result

setListPosition

public void setListPosition(int index)


Copyright © 2010 Atlassian. All Rights Reserved.