Class ImmutableChainStageImpl
java.lang.Object
com.atlassian.bamboo.chains.cache.ImmutableChainStageImpl
- All Implemented Interfaces:
ImmutableChainStage
,BambooIdProvider
,ImmutableEntityWithOid
,ImmutableDeletable
,DescriptionProvider
,NameProvider
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableChainStageImpl
createImmutableChainStageBasedOnFlatData
(@NotNull ImmutableChain chain, @NotNull FlatChainStageDto stageDto, @NotNull ImmutablePlanManager immutablePlanManager, @NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull Map<Long, List<EnrichedPlanDto>> jobsGroupedByStageId, boolean isLightWeight) static ImmutableChainStageImpl
createLightweightImmutableChainState
(@NotNull ImmutableChain chain, @NotNull ImmutableChainStage mutableStage, @NotNull ImmutablePlanManager immutablePlanManager, @NotNull ImmutablePlanCacheService immutablePlanCacheService) @NotNull ImmutableChain
getChain()
Gets theChain
that the stage belongs toGet the Stage Descriptionlong
getId()
Returns database id of the stage.@NotNull Set<ImmutableJob>
getJobs()
Gets theImmutableJob
s associated with this Stage.@NotNull String
getName()
Get the Stage NamegetOid()
OID assigned to this object.boolean
boolean
isFinal()
boolean
isManual()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.chains.cache.ImmutableChainStage
getEntityType
-
Method Details
-
createImmutableChainStageBasedOnFlatData
public static ImmutableChainStageImpl createImmutableChainStageBasedOnFlatData(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull FlatChainStageDto stageDto, @NotNull @NotNull ImmutablePlanManager immutablePlanManager, @NotNull @NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull @NotNull Map<Long, List<EnrichedPlanDto>> jobsGroupedByStageId, boolean isLightWeight) -
createLightweightImmutableChainState
public static ImmutableChainStageImpl createLightweightImmutableChainState(@NotNull @NotNull ImmutableChain chain, @NotNull @NotNull ImmutableChainStage mutableStage, @NotNull @NotNull ImmutablePlanManager immutablePlanManager, @NotNull @NotNull ImmutablePlanCacheService immutablePlanCacheService) -
getName
Description copied from interface:ImmutableChainStage
Get the Stage Name- Specified by:
getName
in interfaceDescriptionProvider
- Specified by:
getName
in interfaceImmutableChainStage
- Specified by:
getName
in interfaceNameProvider
- Returns:
- name
-
getDescription
Description copied from interface:ImmutableChainStage
Get the Stage Description- Specified by:
getDescription
in interfaceDescriptionProvider
- Specified by:
getDescription
in interfaceImmutableChainStage
- Returns:
- description
-
isManual
public boolean isManual()- Specified by:
isManual
in interfaceImmutableChainStage
-
isFinal
public boolean isFinal()- Specified by:
isFinal
in interfaceImmutableChainStage
-
getChain
Description copied from interface:ImmutableChainStage
Gets theChain
that the stage belongs to- Specified by:
getChain
in interfaceImmutableChainStage
- Returns:
- chain
-
getJobs
Description copied from interface:ImmutableChainStage
Gets theImmutableJob
s associated with this Stage. Only deletion code will see deleted jobs.- Specified by:
getJobs
in interfaceImmutableChainStage
- Returns:
- jobs
-
getMaster
- Specified by:
getMaster
in interfaceImmutableChainStage
-
hasMaster
public boolean hasMaster()- Specified by:
hasMaster
in interfaceImmutableChainStage
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletion
in interfaceImmutableDeletable
- Returns:
- Whether or not the Object has been marked for deletion
-
getId
public long getId()Description copied from interface:ImmutableChainStage
Returns database id of the stage. Use ofImmutableChainStage.getDatabaseId()
should be preferred.- Specified by:
getId
in interfaceBambooIdProvider
- Specified by:
getId
in interfaceImmutableChainStage
-
getDatabaseId
- Specified by:
getDatabaseId
in interfaceImmutableChainStage
- Returns:
- database id of the stage or empty if this stage is not a DB object.
-
getOid
Description copied from interface:ImmutableEntityWithOid
OID assigned to this object. TheBambooEntityOid.getEntityType()
should be the same as this object'sImmutableEntityWithOid.getEntityType()
.- Specified by:
getOid
in interfaceImmutableEntityWithOid
-