Package com.atlassian.bamboo.plan.branch
Class BranchIntegrationPointImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.branch.BranchIntegrationPointImpl
-
- All Implemented Interfaces:
BranchIntegrationPoint
public class BranchIntegrationPointImpl extends Object implements BranchIntegrationPoint
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable BranchIntegrationPoint
changeDetectionIntegrationPointForChain(@NotNull ImmutableChain chain)
Finds the best possible branch integration point for change detection, according to chain branch configuration.static @NotNull BranchIntegrationPointImpl
forOldIntegrationPointWithNewPlanKey(BranchIntegrationPoint integrationPoint, @Nullable PlanKey planKey)
Creates an integration point for a given old integration point with overwritten plan key.static @NotNull BranchIntegrationPointImpl
forPlanBranch(@NotNull PlanKey branchKey)
Creates an integration point for a given plan branch.static @NotNull BranchIntegrationPointImpl
forVcsReference(@NotNull String vcsReference)
Creates an integration point for the given VCS reference.@Nullable PlanKey
getIntegrationPlanBranchKey()
@Nullable String
getIntegrationVcsReference()
VCS reference used for merging.
-
-
-
Method Detail
-
forOldIntegrationPointWithNewPlanKey
@NotNull public static @NotNull BranchIntegrationPointImpl forOldIntegrationPointWithNewPlanKey(BranchIntegrationPoint integrationPoint, @Nullable @Nullable PlanKey planKey)
Creates an integration point for a given old integration point with overwritten plan key.- Since:
- 9.6
-
forPlanBranch
@NotNull public static @NotNull BranchIntegrationPointImpl forPlanBranch(@NotNull @NotNull PlanKey branchKey)
Creates an integration point for a given plan branch.- Parameters:
branchKey
- key of the plan branch- Returns:
- new instances of branch integration point
- See Also:
BranchIntegrationPoint.getIntegrationPlanBranchKey()
-
forVcsReference
@NotNull public static @NotNull BranchIntegrationPointImpl forVcsReference(@NotNull @NotNull String vcsReference)
Creates an integration point for the given VCS reference.- Parameters:
vcsReference
- VCS reference- Returns:
- new instances of branch integration point
- See Also:
BranchIntegrationPoint.getIntegrationVcsReference()
-
getIntegrationPlanBranchKey
@Nullable public @Nullable PlanKey getIntegrationPlanBranchKey()
- Specified by:
getIntegrationPlanBranchKey
in interfaceBranchIntegrationPoint
-
getIntegrationVcsReference
@Nullable public @Nullable String getIntegrationVcsReference()
Description copied from interface:BranchIntegrationPoint
VCS reference used for merging.- Specified by:
getIntegrationVcsReference
in interfaceBranchIntegrationPoint
- Returns:
- branch name in format /refs/heads/BRANCH_NAME
-
changeDetectionIntegrationPointForChain
@Nullable public static @Nullable BranchIntegrationPoint changeDetectionIntegrationPointForChain(@NotNull @NotNull ImmutableChain chain)
Finds the best possible branch integration point for change detection, according to chain branch configuration. Returns null if chain is not a chain branch.- Parameters:
chain
-
-
-