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 TypeMethodDescriptionboolean
Adds aJob
to theChainStage
@NotNull Collection<Job>
Gets theJob
s associated with this Stage, including the ones marked for deletion@NotNull Chain
getChain()
Gets theChain
that the stage belongs togetJobs()
Gets theJob
s associated with this Stage, exlcuding the ones marked for deletionboolean
Removes theJob
from theChainStage
void
Sets theChain
that the stage belongs tovoid
setDescription
(String description) Set the Stage Descriptionvoid
setFinal
(boolean finalStage) void
setManual
(boolean manual) void
Set the Stage NameMethods 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 Details
-
setName
Set the Stage Name- Specified by:
setName
in interfaceDescribable
- Parameters:
name
-
-
setDescription
Set the Stage Description- Specified by:
setDescription
in interfaceDescribable
- Parameters:
description
-
-
setManual
void setManual(boolean manual) -
setFinal
void setFinal(boolean finalStage) -
getChain
Gets theChain
that the stage belongs to- Specified by:
getChain
in interfaceImmutableChainStage
- Returns:
- chain
-
setChain
Sets theChain
that the stage belongs to- Parameters:
chain
-
-
getJobs
Gets theJob
s associated with this Stage, exlcuding the ones marked for deletion- Specified by:
getJobs
in interfaceImmutableChainStage
- Returns:
- jobs
-
getAllJobs
Gets theJob
s associated with this Stage, including the ones marked for deletion- Returns:
- jobs
-
addJob
Adds aJob
to theChainStage
- Parameters:
job
-
-
removeJob
Removes theJob
from theChainStage
- Parameters:
job
-
-