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
Modifier and TypeMethodDescriptionbooleanAdds aJobto theChainStage@NotNull Collection<Job>Gets theJobs associated with this Stage, including the ones marked for deletion@NotNull ChaingetChain()Gets theChainthat the stage belongs togetJobs()Gets theJobs associated with this Stage, exlcuding the ones marked for deletionbooleanRemoves theJobfrom theChainStagevoidSets theChainthat the stage belongs tovoidsetDescription(String description) Set the Stage DescriptionvoidsetFinal(boolean finalStage) voidsetManual(boolean manual) voidSet the Stage NameMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.core.EntityWithOid
setOidMethods inherited from interface com.atlassian.bamboo.chains.cache.ImmutableChainStage
getDatabaseId, getDescription, getEntityType, getId, getMaster, getName, hasMaster, isFinal, isManualMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOidMethods inherited from interface com.atlassian.bamboo.versioning.VersionedEntityComponent
getRoot
-
Method Details
-
setName
Set the Stage Name- Specified by:
setNamein interfaceDescribable- Parameters:
name-
-
setDescription
Set the Stage Description- Specified by:
setDescriptionin interfaceDescribable- Parameters:
description-
-
setManual
void setManual(boolean manual) -
setFinal
void setFinal(boolean finalStage) -
getChain
Gets theChainthat the stage belongs to- Specified by:
getChainin interfaceImmutableChainStage- Returns:
- chain
-
setChain
Sets theChainthat the stage belongs to- Parameters:
chain-
-
getJobs
Gets theJobs associated with this Stage, exlcuding the ones marked for deletion- Specified by:
getJobsin interfaceImmutableChainStage- Returns:
- jobs
-
getAllJobs
Gets theJobs associated with this Stage, including the ones marked for deletion- Returns:
- jobs
-
addJob
Adds aJobto theChainStage- Parameters:
job-
-
removeJob
Removes theJobfrom theChainStage- Parameters:
job-
-