Interface ImmutableChainStage
- All Superinterfaces:
BambooIdProvider,DescriptionProvider,ImmutableDeletable,ImmutableEntityWithOid,NameProvider
- All Known Subinterfaces:
ChainStage
- All Known Implementing Classes:
ChainStageImpl,ImmutableChainStageImpl
public interface ImmutableChainStage
extends DescriptionProvider, ImmutableDeletable, BambooIdProvider, ImmutableEntityWithOid
An immutable version of
ChainStage. Prefer using this interface unless modifying the stage.-
Method Summary
Modifier and TypeMethodDescription@NotNull ImmutableChaingetChain()Gets theChainthat the stage belongs to@Nullable StringGet the Stage Descriptiondefault BambooEntityTypeEntity type of this object, used inBambooEntityOid.longgetId()Returns database id of the stage.@NotNull Set<? extends ImmutableJob>getJobs()Gets theImmutableJobs associated with this Stage.@Nullable ImmutableChainStage@NotNull StringgetName()Get the Stage NamebooleanbooleanisFinal()booleanisManual()Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Method Details
-
getId
long getId()Returns database id of the stage. Use ofgetDatabaseId()should be preferred.- Specified by:
getIdin interfaceBambooIdProvider- Throws:
IllegalStateException- if this stage is not a DB object.
-
getDatabaseId
- Returns:
- database id of the stage or empty if this stage is not a DB object.
-
getName
Get the Stage Name- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Returns:
- name
-
getDescription
Get the Stage Description- Specified by:
getDescriptionin interfaceDescriptionProvider- Returns:
- description
-
isManual
boolean isManual() -
isFinal
boolean isFinal() -
getChain
Gets theChainthat the stage belongs to- Returns:
- chain
-
getJobs
Gets theImmutableJobs associated with this Stage. Only deletion code will see deleted jobs.- Returns:
- jobs
-
getMaster
-
hasMaster
boolean hasMaster() -
getEntityType
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-