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 ImmutableChain
getChain()
Gets theChain
that the stage belongs to@NotNull Optional<Long>
getDatabaseId()
@Nullable String
getDescription()
Get the Stage Descriptiondefault BambooEntityType
getEntityType()
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
getMaster()
@NotNull String
getName()
Get the Stage Nameboolean
hasMaster()
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 Detail
-
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
@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:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceNameProvider
- Returns:
- name
-
getDescription
@Nullable @Nullable String getDescription()
Get the Stage Description- Specified by:
getDescription
in interfaceDescriptionProvider
- Returns:
- description
-
isManual
boolean isManual()
-
isFinal
boolean isFinal()
-
getChain
@NotNull @NotNull ImmutableChain getChain()
Gets theChain
that the stage belongs to- Returns:
- chain
-
getJobs
@NotNull @NotNull Set<? extends ImmutableJob> getJobs()
Gets theImmutableJob
s 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:ImmutableEntityWithOid
Entity type of this object, used inBambooEntityOid
.- Specified by:
getEntityType
in interfaceImmutableEntityWithOid
-
-