Package com.atlassian.bamboo.plan.branch
Class BranchIntegrationServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.branch.BranchIntegrationServiceImpl
-
- All Implemented Interfaces:
BranchIntegrationService
public class BranchIntegrationServiceImpl extends Object implements BranchIntegrationService
-
-
Constructor Summary
Constructors Constructor Description BranchIntegrationServiceImpl(CachedPlanManager cachedPlanManager, RepositoryDefinitionManager repositoryDefinitionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull ImmutableChain
getIntegrationPlan(@NotNull BranchIntegrationConfiguration integrationConfiguration)
Deprecated.since 6.0.@NotNull PlanRepositoryDefinition
getIntegrationRepository(@NotNull ImmutablePlan plan)
Get repository configured as merge to / merge from in branch configuration.@NotNull PlanRepositoryDefinition
getIntegrationRepository(@NotNull ImmutablePlan plan, @NotNull BranchIntegrationPoint branchIntegrationPoint)
Get repository configured as integration point for arbitrary defined integration point (vcs branch or plan)@NotNull Map<Long,PlanRepositoryDefinition>
getPlanRepositoryDefinitionMap(@NotNull ImmutablePlan plan)
Get repository definition map for a given plan and if Branch Integration was configured merge it with repository definition of branch selected in Integration Configuration
-
-
-
Constructor Detail
-
BranchIntegrationServiceImpl
@Inject public BranchIntegrationServiceImpl(CachedPlanManager cachedPlanManager, RepositoryDefinitionManager repositoryDefinitionManager)
-
-
Method Detail
-
getIntegrationPlan
@NotNull @Deprecated public @NotNull ImmutableChain getIntegrationPlan(@NotNull @NotNull BranchIntegrationConfiguration integrationConfiguration)
Deprecated.since 6.0. Use {getIntegrationRepository(ImmutablePlan)
}.Description copied from interface:BranchIntegrationService
Get plan configured as merge to / merge from in branch configuration.- Specified by:
getIntegrationPlan
in interfaceBranchIntegrationService
- Parameters:
integrationConfiguration
- config- Returns:
- plan used for integration build
-
getIntegrationRepository
@NotNull public @NotNull PlanRepositoryDefinition getIntegrationRepository(@NotNull @NotNull ImmutablePlan plan)
Description copied from interface:BranchIntegrationService
Get repository configured as merge to / merge from in branch configuration.- Specified by:
getIntegrationRepository
in interfaceBranchIntegrationService
- Returns:
- integration repository
-
getIntegrationRepository
@NotNull public @NotNull PlanRepositoryDefinition getIntegrationRepository(@NotNull @NotNull ImmutablePlan plan, @NotNull @NotNull BranchIntegrationPoint branchIntegrationPoint)
Description copied from interface:BranchIntegrationService
Get repository configured as integration point for arbitrary defined integration point (vcs branch or plan)- Specified by:
getIntegrationRepository
in interfaceBranchIntegrationService
-
getPlanRepositoryDefinitionMap
@NotNull public @NotNull Map<Long,PlanRepositoryDefinition> getPlanRepositoryDefinitionMap(@NotNull @NotNull ImmutablePlan plan)
Description copied from interface:BranchIntegrationService
Get repository definition map for a given plan and if Branch Integration was configured merge it with repository definition of branch selected in Integration Configuration- Specified by:
getPlanRepositoryDefinitionMap
in interfaceBranchIntegrationService
- Returns:
-
-