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 ImmutableChain
getChain()
Gets theChain
that the stage belongs to@Nullable String
Get the Stage Descriptiondefault BambooEntityType
Entity type of this object, used inBambooEntityOid
.long
getId()
Returns database id of the stage.@NotNull Set<? extends ImmutableJob>
getJobs()
Gets theImmutableJob
s associated with this Stage.@Nullable ImmutableChainStage
@NotNull String
getName()
Get the Stage Nameboolean
boolean
isFinal()
boolean
isManual()
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
Methods 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:
getId
in 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:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
- Returns:
- name
-
getDescription
Get the Stage Description- Specified by:
getDescription
in interfaceDescriptionProvider
- Returns:
- description
-
isManual
boolean isManual() -
isFinal
boolean isFinal() -
getChain
Gets theChain
that the stage belongs to- Returns:
- chain
-
getJobs
Gets theImmutableJob
s associated with this Stage. Only deletion code will see deleted jobs.- Returns:
- jobs
-
getMaster
-
hasMaster
boolean hasMaster() -
getEntityType
Description copied from interface:ImmutableEntityWithOid
Entity type of this object, used inBambooEntityOid
.- Specified by:
getEntityType
in interfaceImmutableEntityWithOid
-