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 ImmutableChainStageImplcreateImmutableChainStageBasedOnFlatData(@NotNull ImmutableChain chain, @NotNull FlatChainStageDto stageDto, @NotNull ImmutablePlanManager immutablePlanManager, @NotNull ImmutablePlanCacheService immutablePlanCacheService, @NotNull Map<Long, List<EnrichedPlanDto>> jobsGroupedByStageId, boolean isLightWeight) static ImmutableChainStageImplcreateLightweightImmutableChainState(@NotNull ImmutableChain chain, @NotNull ImmutableChainStage mutableStage, @NotNull ImmutablePlanManager immutablePlanManager, @NotNull ImmutablePlanCacheService immutablePlanCacheService) @NotNull ImmutableChaingetChain()Gets theChainthat the stage belongs toGet the Stage DescriptionlonggetId()Returns database id of the stage.@NotNull Set<ImmutableJob>getJobs()Gets theImmutableJobs associated with this Stage.@NotNull StringgetName()Get the Stage NamegetOid()OID assigned to this object.booleanbooleanisFinal()booleanisManual()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ImmutableChainStageGet the Stage Name- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceImmutableChainStage- Specified by:
getNamein interfaceNameProvider- Returns:
- name
-
getDescription
Description copied from interface:ImmutableChainStageGet the Stage Description- Specified by:
getDescriptionin interfaceDescriptionProvider- Specified by:
getDescriptionin interfaceImmutableChainStage- Returns:
- description
-
isManual
public boolean isManual()- Specified by:
isManualin interfaceImmutableChainStage
-
isFinal
public boolean isFinal()- Specified by:
isFinalin interfaceImmutableChainStage
-
getChain
Description copied from interface:ImmutableChainStageGets theChainthat the stage belongs to- Specified by:
getChainin interfaceImmutableChainStage- Returns:
- chain
-
getJobs
Description copied from interface:ImmutableChainStageGets theImmutableJobs associated with this Stage. Only deletion code will see deleted jobs.- Specified by:
getJobsin interfaceImmutableChainStage- Returns:
- jobs
-
getMaster
- Specified by:
getMasterin interfaceImmutableChainStage
-
hasMaster
public boolean hasMaster()- Specified by:
hasMasterin interfaceImmutableChainStage
-
isMarkedForDeletion
public boolean isMarkedForDeletion()- Specified by:
isMarkedForDeletionin interfaceImmutableDeletable- Returns:
- Whether or not the Object has been marked for deletion
-
getId
public long getId()Description copied from interface:ImmutableChainStageReturns database id of the stage. Use ofImmutableChainStage.getDatabaseId()should be preferred.- Specified by:
getIdin interfaceBambooIdProvider- Specified by:
getIdin interfaceImmutableChainStage
-
getDatabaseId
- Specified by:
getDatabaseIdin interfaceImmutableChainStage- Returns:
- database id of the stage or empty if this stage is not a DB object.
-
getOid
Description copied from interface:ImmutableEntityWithOidOID assigned to this object. TheBambooEntityOid.getEntityType()should be the same as this object'sImmutableEntityWithOid.getEntityType().- Specified by:
getOidin interfaceImmutableEntityWithOid
-