Class ImmutableChainBranchImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
-
- com.atlassian.bamboo.plan.cache.AbstractImmutableChain
-
- com.atlassian.bamboo.plan.branch.cache.ImmutableChainBranchImpl
-
- All Implemented Interfaces:
BambooIdProvider
,ImmutableEntityWithOid
,ChainBranchIdentifier
,ImmutableChain
,ImmutableChainBranch
,ImmutableDeletable
,ImmutablePlan
,PlanIdentifier
,PlanKeyProvider
,Triggerable
,DescriptionProvider
,NameProvider
,Versionable
,Comparable<ImmutablePlan>
public class ImmutableChainBranchImpl extends AbstractImmutableChain implements ImmutableChainBranch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutableChain
AbstractImmutableChain.VcsBambooSpecsSourceResettableLazyReference
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
averageBuildDuration, buildDefinition, resultsSummaryManager
-
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
NAME_DELIMITER
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanKeyProvider
getPlanKey
-
-
Constructor Summary
Constructors Constructor Description ImmutableChainBranchImpl(ChainBranch chainBranch, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BambooSpecsManager bambooSpecsManager, @NotNull BuildDefinition buildDefinition)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableChainBranchImpl
createImmutableChainBranchBasedOnFlatData(EnrichedPlanDto dto, List<FlatChainStageDto> chainStages, Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId, Map<Long,EnrichedPlanDto> jobsGroupedById, Pair<ImmutableChain,EnrichedPlanDto> masterWithMasterDto, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BambooSpecsManager bambooSpecsManager, NotificationManager notificationManager, BuildDefinitionManager buildDefinitionManager)
BranchCommitInformation
getCommitInformation()
String
getLinkedJiraIssue()
Branches can be linked to a specific jira issue.@NotNull PlanBranchMetadata
getMetadata()
boolean
isDivergent()
Is branch divergent.boolean
isRemoteJiraLinkRequired()
Stores whether a JIRA Issue exists but the remote issue link has not successfully been created for this branch-
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutableChain
containsStage, getAllJobs, getAllStages, getCreationDate, getEffectiveRepositoryDefinitions, getJobCount, getLastResultKey, getLatestResultsSummary, getMaster, getNotificationSet, getPlanRepositoryDefinitions, getStages, getStorageTag, getTriggerDefinitions, getVcsBambooSpecsSource, isActive, isBusy, isExecuting, isSuspended, resetLatestResultsSummary, resetPlanRepositoryDefinitions, resetVcsBambooSpecsSource, resetVcsBambooSpecsSource
-
Methods inherited from class com.atlassian.bamboo.plan.cache.AbstractImmutablePlan
compareTo, equals, exceptionOnModification, getAverageBuildDuration, getBuildDefinition, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getDatabaseId, getDescription, getEffectiveVariables, getFirstBuildNumber, getId, getKey, getLabellings, getLabelNames, getLastBuildNumber, getMasterId, getMasterIdIfExists, getName, getOid, getPlanKey, getPlanType, getProject, getRelatedLabellings, getType, getVariables, getVersion, hashCode, hasMaster, isMarkedForDeletion, isSuspendedFromBuilding, resetLatestResultsSummary
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableChain
containsStage, getAllJobs, getAllStages, getCreationDate, getEffectiveRepositoryDefinitions, getEntityType, getJobCount, getLastResultKey, getMaster, getNotificationSet, getPlanRepositoryDefinitions, getStages, getStorageTag, getVcsBambooSpecsSource
-
Methods inherited from interface com.atlassian.bamboo.core.ImmutableEntityWithOid
getOid
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
getAverageBuildDuration, getBuildDefinition, getBuildLogger, getCurrentStatus, getEffectiveVariables, getFirstBuildNumber, getKey, getLabelNames, getLastBuildNumber, getLatestResultsSummary, getProject, getType, getVariables, hasMaster, isActive, isBusy, isExecuting, isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.plan.PlanIdentifier
getBuildKey, getBuildName, getDatabaseId, getId, getMasterId, getMasterIdIfExists, getName, getPlanKey, getPlanType, isSuspendedFromBuilding
-
Methods inherited from interface com.atlassian.bamboo.trigger.Triggerable
getTriggerDefinitions, isSuspended
-
Methods inherited from interface com.atlassian.bamboo.versioning.Versionable
getVersion
-
-
-
-
Constructor Detail
-
ImmutableChainBranchImpl
public ImmutableChainBranchImpl(ChainBranch chainBranch, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, LabelManager labelManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BambooSpecsManager bambooSpecsManager, @NotNull @NotNull BuildDefinition buildDefinition)
-
-
Method Detail
-
createImmutableChainBranchBasedOnFlatData
public static ImmutableChainBranchImpl createImmutableChainBranchBasedOnFlatData(EnrichedPlanDto dto, List<FlatChainStageDto> chainStages, Map<Long,List<EnrichedPlanDto>> jobsGroupedByStageId, Map<Long,EnrichedPlanDto> jobsGroupedById, Pair<ImmutableChain,EnrichedPlanDto> masterWithMasterDto, BuildLoggerManager buildLoggerManager, ImmutablePlanCacheService immutablePlanCacheService, ImmutablePlanManager immutablePlanManager, ResultsSummaryManager resultsSummaryManager, RepositoryDefinitionManager repositoryDefinitionManager, CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager, VariableDefinitionManager variableDefinitionManager, BambooSpecsManager bambooSpecsManager, NotificationManager notificationManager, BuildDefinitionManager buildDefinitionManager)
-
getCommitInformation
public BranchCommitInformation getCommitInformation()
- Specified by:
getCommitInformation
in interfaceImmutableChainBranch
-
getLinkedJiraIssue
public String getLinkedJiraIssue()
Description copied from interface:ChainBranchIdentifier
Branches can be linked to a specific jira issue. This is the issue key of that issue.- Specified by:
getLinkedJiraIssue
in interfaceChainBranchIdentifier
- Returns:
-
isRemoteJiraLinkRequired
public boolean isRemoteJiraLinkRequired()
Description copied from interface:ChainBranchIdentifier
Stores whether a JIRA Issue exists but the remote issue link has not successfully been created for this branch- Specified by:
isRemoteJiraLinkRequired
in interfaceChainBranchIdentifier
- Returns:
- true if a remote issue link has not yet been created.
-
isDivergent
public boolean isDivergent()
Description copied from interface:ImmutableChainBranch
Is branch divergent.- Specified by:
isDivergent
in interfaceImmutableChainBranch
-
getMetadata
@NotNull public @NotNull PlanBranchMetadata getMetadata()
- Specified by:
getMetadata
in interfaceImmutableChainBranch
-
-