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