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
.
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.plan.cache.ImmutablePlan |
getAverageBuildDuration, getBuildDefinition, getBuildDefinitionXml, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getNextBuildNumber, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion |
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
ChainStage
s 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
ChainStage
s 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.