Package com.atlassian.bamboo.chains
Interface ChainStage
-
- All Superinterfaces:
BambooIdProvider,BambooObject,Deletable,Describable,DescriptionProvider,EntityWithOid,ImmutableChainStage,ImmutableDeletable,ImmutableEntityWithOid,NameProvider,VersionedEntityComponent<Chain>
- All Known Implementing Classes:
ChainStageImpl
@PublicApi public interface ChainStage extends ImmutableChainStage, Describable, BambooObject, Deletable, EntityWithOid, VersionedEntityComponent<Chain>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddJob(@NotNull Job job)Adds aJobto theChainStage@NotNull Collection<Job>getAllJobs()Gets theJobs associated with this Stage, including the ones marked for deletion@NotNull ChaingetChain()Gets theChainthat the stage belongs to@NotNull Set<Job>getJobs()Gets theJobs associated with this Stage, exlcuding the ones marked for deletionbooleanremoveJob(@NotNull Job job)Removes theJobfrom theChainStagevoidsetChain(@NotNull Chain chain)Sets theChainthat the stage belongs tovoidsetDescription(String description)Set the Stage DescriptionvoidsetFinal(boolean finalStage)voidsetManual(boolean manual)voidsetName(@NotNull String name)Set the Stage Name-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOid
-
Methods inherited from interface com.atlassian.bamboo.chains.cache.ImmutableChainStage
getDatabaseId, getDescription, getEntityType, getId, getMaster, getName, hasMaster, isFinal, isManual
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.versioning.VersionedEntityComponent
getRoot
-
-
-
-
Method Detail
-
setName
void setName(@NotNull @NotNull String name)Set the Stage Name- Specified by:
setNamein interfaceDescribable- Parameters:
name-
-
setDescription
void setDescription(String description)
Set the Stage Description- Specified by:
setDescriptionin interfaceDescribable- Parameters:
description-
-
setManual
void setManual(boolean manual)
-
setFinal
void setFinal(boolean finalStage)
-
getChain
@NotNull @NotNull Chain getChain()
Gets theChainthat the stage belongs to- Specified by:
getChainin interfaceImmutableChainStage- Returns:
- chain
-
setChain
void setChain(@NotNull @NotNull Chain chain)Sets theChainthat the stage belongs to- Parameters:
chain-
-
getJobs
@NotNull @NotNull Set<Job> getJobs()
Gets theJobs associated with this Stage, exlcuding the ones marked for deletion- Specified by:
getJobsin interfaceImmutableChainStage- Returns:
- jobs
-
getAllJobs
@NotNull @NotNull Collection<Job> getAllJobs()
Gets theJobs associated with this Stage, including the ones marked for deletion- Returns:
- jobs
-
addJob
boolean addJob(@NotNull @NotNull Job job)Adds aJobto theChainStage- Parameters:
job-
-
removeJob
boolean removeJob(@NotNull @NotNull Job job)Removes theJobfrom theChainStage- Parameters:
job-
-
-