Class MergeResultContextImpl
java.lang.Object
com.atlassian.bamboo.chains.branches.MergeResultContextImpl
- All Implemented Interfaces:
MergeResultContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMergeResultContextImpl(@NotNull MergeResultContext other) MergeResultContextImpl(BranchIntegrationStrategy integrationStrategy) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(@Nullable MergeResultContext from, @NotNull MergeResultContext to) @Nullable StringBranch name associated with this Plan Branch.@Nullable StringDepending on the integration strategy this could be the checked out revision or the merged revision Should be NotNull, but legacy data may exist that doesn't have this value.@Nullable String@NotNull StringDepensing on the integration strategy this could be the checked out revision or the merged revisionThe branch name associated with the integration repositorylongShould not be null, however legacy data may exist that doesn't have this value.@Nullable String@NotNull MergeResultStateThe state of the merge part of the integration strategy Should be NotNull but legacy data may exist@NotNull MergeResultStateThe state of the push part of the integration strategy Should be NotNull but legacy data may existbooleanHas the branch integration failed at any point in the integration processbooleanvoidsetBranchName(@Nullable String branchName) voidsetBranchTargetVcsKey(@Nullable String branchTargetVcsKey) voidsetEmptyMerge(boolean emptyMerge) voidsetFailureReason(@Nullable String failureReason) voidsetIntegrationBranchVcsKey(@NotNull String integrationBranchVcsKey) voidsetIntegrationRepositoryBranchName(String integrationRepositoryBranchName) voidsetIntegrationRepositoryId(long integrationRepositoryId) voidsetIntegrationStrategy(BranchIntegrationStrategy integrationStrategy) voidsetMergeResultVcsKey(@Nullable String pushRevisionKey) voidsetMergeState(@NotNull MergeResultState mergeState) voidsetPushState(@NotNull MergeResultState pushState) toString()
-
Field Details
-
UNITIALISED
- See Also:
-
-
Constructor Details
-
MergeResultContextImpl
public MergeResultContextImpl() -
MergeResultContextImpl
-
MergeResultContextImpl
-
-
Method Details
-
getIntegrationRepositoryId
public long getIntegrationRepositoryId()- Specified by:
getIntegrationRepositoryIdin interfaceMergeResultContext- Returns:
- id of the integrated repository. This could be the checkout or merge repo depending on strategy
-
setIntegrationRepositoryId
public void setIntegrationRepositoryId(long integrationRepositoryId) - Specified by:
setIntegrationRepositoryIdin interfaceMergeResultContext
-
getFailureReason
- Specified by:
getFailureReasonin interfaceMergeResultContext- Returns:
- reason of failure of merge or push operation
-
setFailureReason
- Specified by:
setFailureReasonin interfaceMergeResultContext
-
getIntegrationBranchVcsKey
Description copied from interface:MergeResultContextDepensing on the integration strategy this could be the checked out revision or the merged revision- Specified by:
getIntegrationBranchVcsKeyin interfaceMergeResultContext- Returns:
- revision key integrated into the branch
-
setIntegrationBranchVcsKey
- Specified by:
setIntegrationBranchVcsKeyin interfaceMergeResultContext
-
getMergeResultVcsKey
- Specified by:
getMergeResultVcsKeyin interfaceMergeResultContext- Returns:
- revision created by the merge process
-
setMergeResultVcsKey
- Specified by:
setMergeResultVcsKeyin interfaceMergeResultContext
-
isEmptyMerge
public boolean isEmptyMerge()- Specified by:
isEmptyMergein interfaceMergeResultContext- Returns:
- true iff merge doesn't produce any changes that need to be committed
-
setEmptyMerge
public void setEmptyMerge(boolean emptyMerge) - Specified by:
setEmptyMergein interfaceMergeResultContext
-
getMergeState
Description copied from interface:MergeResultContextThe state of the merge part of the integration strategy Should be NotNull but legacy data may exist- Specified by:
getMergeStatein interfaceMergeResultContext- Returns:
- MergeResultState representing the state of the merge
-
setMergeState
- Specified by:
setMergeStatein interfaceMergeResultContext
-
getPushState
Description copied from interface:MergeResultContextThe state of the push part of the integration strategy Should be NotNull but legacy data may exist- Specified by:
getPushStatein interfaceMergeResultContext- Returns:
- MergeResultState representing the state of the push
-
setPushState
- Specified by:
setPushStatein interfaceMergeResultContext
-
getBranchTargetVcsKey
Description copied from interface:MergeResultContextDepending on the integration strategy this could be the checked out revision or the merged revision Should be NotNull, but legacy data may exist that doesn't have this value.- Specified by:
getBranchTargetVcsKeyin interfaceMergeResultContext- Returns:
- The revision key used of the branch
-
setBranchTargetVcsKey
- Specified by:
setBranchTargetVcsKeyin interfaceMergeResultContext
-
getIntegrationStrategy
Description copied from interface:MergeResultContextShould not be null, however legacy data may exist that doesn't have this value.- Specified by:
getIntegrationStrategyin interfaceMergeResultContext- Returns:
- The integration strategy used for his merge.
-
setIntegrationStrategy
- Specified by:
setIntegrationStrategyin interfaceMergeResultContext
-
getIntegrationRepositoryBranchName
Description copied from interface:MergeResultContextThe branch name associated with the integration repository- Specified by:
getIntegrationRepositoryBranchNamein interfaceMergeResultContext- Returns:
- A string representation of the branch at the time of integration.
-
setIntegrationRepositoryBranchName
- Specified by:
setIntegrationRepositoryBranchNamein interfaceMergeResultContext
-
getBranchName
Description copied from interface:MergeResultContextBranch name associated with this Plan Branch.- Specified by:
getBranchNamein interfaceMergeResultContext- Returns:
- a string representation of the branch at the time of integration
-
setBranchName
- Specified by:
setBranchNamein interfaceMergeResultContext
-
hasFailed
public boolean hasFailed()Description copied from interface:MergeResultContextHas the branch integration failed at any point in the integration process- Specified by:
hasFailedin interfaceMergeResultContext- Returns:
- true if the integration has failed.
-
copy
public static void copy(@Nullable @Nullable MergeResultContext from, @NotNull @NotNull MergeResultContext to) -
toString
-