com.atlassian.bamboo.chains
Interface Chain

All Superinterfaces:
BambooIdProvider, BambooObject, Deletable, Describable, DescriptionProvider, ImmutableChain, ImmutableDeletable, ImmutablePlan, NameProvider, Plan, PlanIdentifier
All Known Subinterfaces:
ChainBranch, TopLevelPlan
All Known Implementing Classes:
AbstractChain, AbstractImmutableChain, ChainBranchImpl, DefaultChain, ImmutableChainBranchImpl, ImmutableChainImpl

public interface Chain
extends ImmutableChain, Plan

Mutable version of ImmutableChain.


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Method Summary
 ChainStage addNewStage(java.lang.String name, java.lang.String description, boolean manual)
          Adds a new stage and returns the stage
 void addStage(ChainStage chainStage)
           
 java.util.List<Job> getAllJobs()
          Note: Does not include Jobs that are marked for deletion.
 java.util.List<ChainStage> getAllStages()
          Get Stages of the Chain

Note that this includes ChainStages that have been marked for deletion

 Chain getMaster()
          Return the master plan if one exists.
 java.util.List<ChainStage> getStages()
          Get Stages of the chain.
 void removeStage(long chainStage)
           
 void setNotificationSet(NotificationSet notificationSet)
           
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableChain
containsStage, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getNotificationSet
 
Methods inherited from interface com.atlassian.bamboo.plan.Plan
getLabellings, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setMaster, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding, validateBuild
 
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription, setName
 
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
 
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getId, getMasterId, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
 

Method Detail

setNotificationSet

void setNotificationSet(NotificationSet notificationSet)

addNewStage

@NotNull
ChainStage addNewStage(@NotNull
                               java.lang.String name,
                               @NotNull
                               java.lang.String description,
                               boolean manual)
Adds a new stage and returns the stage

Parameters:
name -
description -
manual -
Returns:

addStage

void addStage(@NotNull
              ChainStage chainStage)

removeStage

void removeStage(long chainStage)

getMaster

Chain getMaster()
Description copied from interface: ImmutablePlan
Return the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.

Specified by:
getMaster in interface ImmutablePlan
Returns:
the master Plan if one exists.

getStages

@NotNull
java.util.List<ChainStage> getStages()
Description copied from interface: ImmutableChain
Get Stages of the chain.

Note that this excludes ChainStages that have been marked for deletion

Specified by:
getStages in interface ImmutableChain
Returns:
stages

getAllStages

@NotNull
java.util.List<ChainStage> getAllStages()
Get Stages of the Chain

Note that this includes ChainStages that have been marked for deletion

Specified by:
getAllStages in interface ImmutableChain
Returns:
stages

getAllJobs

@NotNull
java.util.List<Job> getAllJobs()
Note: Does not include Jobs that are marked for deletion.

Specified by:
getAllJobs in interface ImmutableChain
Returns:
a list of all Jobs that are currently contained within this chain - no order guaranteed.


Copyright © 2012 Atlassian. All Rights Reserved.