com.atlassian.bamboo.chains
Interface Chain

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

@PublicApi
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
 
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getPlanKeyFunction
 
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey
 
Method Summary
 ChainStage addNewStage(String name, String description, boolean manual)
          Adds a new stage and returns the stage
 void addStage(ChainStage chainStage)
           
 List<Job> getAllJobs()
          Note: Does not include Jobs that are marked for deletion.
 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.
 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.trigger.Triggerable
getTriggerDefinitions, getTriggers, isSuspended
 
Methods inherited from interface com.atlassian.bamboo.plan.Plan
getBuildDefinitionXml, getLabellings, getLatestResultsSummary, getRelatedLabellings, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setMaster, setNextBuildNumber, setPlanKey, setProject, setSuspendedFromBuilding
 
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, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, 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
                               String name,
                               @NotNull
                               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 ImmutableChain
Specified by:
getMaster in interface ImmutablePlan
Returns:
the master Plan if one exists.

getStages

@NotNull
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
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
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 © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.