Interface MergeResultContext
-
- All Known Subinterfaces:
MergeResultSummary
- All Known Implementing Classes:
MergeResultContextImpl,MergeResultSummaryImpl
@ExperimentalApi public interface MergeResultContextRepresents results of branch integration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable StringgetBranchName()Branch name associated with this Plan Branch.@Nullable StringgetBranchTargetVcsKey()Depending 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 StringgetFailureReason()@NotNull StringgetIntegrationBranchVcsKey()Depensing on the integration strategy this could be the checked out revision or the merged revision@Nullable StringgetIntegrationRepositoryBranchName()The branch name associated with the integration repositorylonggetIntegrationRepositoryId()@Nullable BranchIntegrationStrategygetIntegrationStrategy()Should not be null, however legacy data may exist that doesn't have this value.@Nullable StringgetMergeResultVcsKey()@Nullable MergeResultStategetMergeState()The state of the merge part of the integration strategy Should be NotNull but legacy data may exist@Nullable MergeResultStategetPushState()The state of the push part of the integration strategy Should be NotNull but legacy data may existbooleanhasFailed()Has the branch integration failed at any point in the integration processbooleanisEmptyMerge()voidsetBranchName(String branchName)voidsetBranchTargetVcsKey(String branchTargetVcsKey)voidsetEmptyMerge(boolean emptyMerge)voidsetFailureReason(String failureReason)voidsetIntegrationBranchVcsKey(String mergedRevisionKey)voidsetIntegrationRepositoryBranchName(String integrationRepositoryBranchName)voidsetIntegrationRepositoryId(long integrationRepositoryId)voidsetIntegrationStrategy(BranchIntegrationStrategy elemEnumValue)voidsetMergeResultVcsKey(String mergeResultVcsKey)voidsetMergeState(MergeResultState mergeState)voidsetPushState(MergeResultState pushState)
-
-
-
Method Detail
-
getFailureReason
@Nullable @Nullable String getFailureReason()
- Returns:
- reason of failure of merge or push operation
-
setFailureReason
void setFailureReason(String failureReason)
-
getBranchTargetVcsKey
@Nullable @Nullable String getBranchTargetVcsKey()
Depending 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.- Returns:
- The revision key used of the branch
-
setBranchTargetVcsKey
void setBranchTargetVcsKey(String branchTargetVcsKey)
-
getIntegrationRepositoryId
long getIntegrationRepositoryId()
- Returns:
- id of the integrated repository. This could be the checkout or merge repo depending on strategy
-
setIntegrationRepositoryId
void setIntegrationRepositoryId(long integrationRepositoryId)
-
getIntegrationRepositoryBranchName
@Nullable @Nullable String getIntegrationRepositoryBranchName()
The branch name associated with the integration repository- Returns:
- A string representation of the branch at the time of integration.
-
setIntegrationRepositoryBranchName
void setIntegrationRepositoryBranchName(String integrationRepositoryBranchName)
-
getIntegrationBranchVcsKey
@NotNull @NotNull String getIntegrationBranchVcsKey()
Depensing on the integration strategy this could be the checked out revision or the merged revision- Returns:
- revision key integrated into the branch
-
setIntegrationBranchVcsKey
void setIntegrationBranchVcsKey(String mergedRevisionKey)
-
getMergeResultVcsKey
@Nullable @Nullable String getMergeResultVcsKey()
- Returns:
- revision created by the merge process
-
setMergeResultVcsKey
void setMergeResultVcsKey(String mergeResultVcsKey)
-
isEmptyMerge
boolean isEmptyMerge()
- Returns:
- true iff merge doesn't produce any changes that need to be committed
-
setEmptyMerge
void setEmptyMerge(boolean emptyMerge)
-
getMergeState
@Nullable @Nullable MergeResultState getMergeState()
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist- Returns:
- MergeResultState representing the state of the merge
-
setMergeState
void setMergeState(MergeResultState mergeState)
-
getPushState
@Nullable @Nullable MergeResultState getPushState()
The state of the push part of the integration strategy Should be NotNull but legacy data may exist- Returns:
- MergeResultState representing the state of the push
-
setPushState
void setPushState(MergeResultState pushState)
-
hasFailed
boolean hasFailed()
Has the branch integration failed at any point in the integration process- Returns:
- true if the integration has failed.
-
getIntegrationStrategy
@Nullable @Nullable BranchIntegrationStrategy getIntegrationStrategy()
Should not be null, however legacy data may exist that doesn't have this value.- Returns:
- The integration strategy used for his merge.
-
setIntegrationStrategy
void setIntegrationStrategy(BranchIntegrationStrategy elemEnumValue)
-
getBranchName
@Nullable @Nullable String getBranchName()
Branch name associated with this Plan Branch.- Returns:
- a string representation of the branch at the time of integration
-
setBranchName
void setBranchName(String branchName)
-
-