Interface MergeResultContext
-
- All Known Subinterfaces:
MergeResultSummary
- All Known Implementing Classes:
MergeResultContextImpl
,MergeResultSummaryImpl
@ExperimentalApi public interface MergeResultContext
Represents results of branch integration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable String
getBranchName()
Branch name associated with this Plan Branch.@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.@Nullable String
getFailureReason()
@NotNull String
getIntegrationBranchVcsKey()
Depensing on the integration strategy this could be the checked out revision or the merged revision@Nullable String
getIntegrationRepositoryBranchName()
The branch name associated with the integration repositorylong
getIntegrationRepositoryId()
@Nullable BranchIntegrationStrategy
getIntegrationStrategy()
Should not be null, however legacy data may exist that doesn't have this value.@Nullable String
getMergeResultVcsKey()
@Nullable MergeResultState
getMergeState()
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist@Nullable MergeResultState
getPushState()
The state of the push part of the integration strategy Should be NotNull but legacy data may existboolean
hasFailed()
Has the branch integration failed at any point in the integration processboolean
isEmptyMerge()
void
setBranchName(String branchName)
void
setBranchTargetVcsKey(String branchTargetVcsKey)
void
setEmptyMerge(boolean emptyMerge)
void
setFailureReason(String failureReason)
void
setIntegrationBranchVcsKey(String mergedRevisionKey)
void
setIntegrationRepositoryBranchName(String integrationRepositoryBranchName)
void
setIntegrationRepositoryId(long integrationRepositoryId)
void
setIntegrationStrategy(BranchIntegrationStrategy elemEnumValue)
void
setMergeResultVcsKey(String mergeResultVcsKey)
void
setMergeState(MergeResultState mergeState)
void
setPushState(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)
-
-