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 ofChainStage. Prefer using this interface unless modifying the stage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @NotNull ImmutableChaingetChain()Gets theChainthat the stage belongs to@NotNull Optional<Long>getDatabaseId()@Nullable StringgetDescription()Get the Stage Descriptiondefault BambooEntityTypegetEntityType()Entity 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 ImmutableChainStagegetMaster()@NotNull StringgetName()Get the Stage NamebooleanhasMaster()booleanisFinal()booleanisManual()-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
-
-
-
Method Detail
-
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
@NotNull @NotNull Optional<Long> getDatabaseId()
- Returns:
- database id of the stage or empty if this stage is not a DB object.
-
getName
@NotNull @NotNull String getName()
Get the Stage Name- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Returns:
- name
-
getDescription
@Nullable @Nullable String getDescription()
Get the Stage Description- Specified by:
getDescriptionin interfaceDescriptionProvider- Returns:
- description
-
isManual
boolean isManual()
-
isFinal
boolean isFinal()
-
getChain
@NotNull @NotNull ImmutableChain getChain()
Gets theChainthat the stage belongs to- Returns:
- chain
-
getJobs
@NotNull @NotNull Set<? extends ImmutableJob> getJobs()
Gets theImmutableJobs associated with this Stage. Only deletion code will see deleted jobs.- Returns:
- jobs
-
getMaster
@Nullable @Nullable ImmutableChainStage getMaster()
-
hasMaster
boolean hasMaster()
-
getEntityType
default BambooEntityType getEntityType()
Description copied from interface:ImmutableEntityWithOidEntity type of this object, used inBambooEntityOid.- Specified by:
getEntityTypein interfaceImmutableEntityWithOid
-
-