public class MergeResultContextImpl extends Object implements MergeResultContext
Modifier and Type | Field and Description |
---|---|
protected static String |
UNITIALISED |
Constructor and Description |
---|
MergeResultContextImpl() |
MergeResultContextImpl(BranchIntegrationStrategy integrationStrategy) |
MergeResultContextImpl(@NotNull MergeResultContext other) |
Modifier and Type | Method and Description |
---|---|
static void |
copy(@Nullable MergeResultContext from,
@NotNull MergeResultContext to) |
@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
|
String |
getIntegrationRepositoryBranchName()
The branch name associated with the integration repository
|
long |
getIntegrationRepositoryId() |
BranchIntegrationStrategy |
getIntegrationStrategy()
Should not be null, however legacy data may exist that doesn't have this value.
|
@Nullable String |
getMergeResultVcsKey() |
@NotNull MergeResultState |
getMergeState()
The state of the merge part of the integration strategy
Should be NotNull but legacy data may exist
|
@NotNull MergeResultState |
getPushState()
The state of the push part of the integration strategy
Should be NotNull but legacy data may exist
|
boolean |
hasFailed()
Has the branch integration failed at any point in the integration process
|
boolean |
isEmptyMerge() |
void |
setBranchName(@Nullable String branchName) |
void |
setBranchTargetVcsKey(@Nullable String branchTargetVcsKey) |
void |
setEmptyMerge(boolean emptyMerge) |
void |
setFailureReason(@Nullable String failureReason) |
void |
setIntegrationBranchVcsKey(@NotNull String integrationBranchVcsKey) |
void |
setIntegrationRepositoryBranchName(String integrationRepositoryBranchName) |
void |
setIntegrationRepositoryId(long integrationRepositoryId) |
void |
setIntegrationStrategy(BranchIntegrationStrategy integrationStrategy) |
void |
setMergeResultVcsKey(@Nullable String pushRevisionKey) |
void |
setMergeState(@NotNull MergeResultState mergeState) |
void |
setPushState(@NotNull MergeResultState pushState) |
String |
toString() |
protected static final String UNITIALISED
public MergeResultContextImpl()
public MergeResultContextImpl(BranchIntegrationStrategy integrationStrategy)
public MergeResultContextImpl(@NotNull @NotNull MergeResultContext other)
public long getIntegrationRepositoryId()
getIntegrationRepositoryId
in interface MergeResultContext
public void setIntegrationRepositoryId(long integrationRepositoryId)
setIntegrationRepositoryId
in interface MergeResultContext
@Nullable public @Nullable String getFailureReason()
getFailureReason
in interface MergeResultContext
public void setFailureReason(@Nullable @Nullable String failureReason)
setFailureReason
in interface MergeResultContext
@NotNull public @NotNull String getIntegrationBranchVcsKey()
MergeResultContext
getIntegrationBranchVcsKey
in interface MergeResultContext
public void setIntegrationBranchVcsKey(@NotNull @NotNull String integrationBranchVcsKey)
setIntegrationBranchVcsKey
in interface MergeResultContext
@Nullable public @Nullable String getMergeResultVcsKey()
getMergeResultVcsKey
in interface MergeResultContext
public void setMergeResultVcsKey(@Nullable @Nullable String pushRevisionKey)
setMergeResultVcsKey
in interface MergeResultContext
public boolean isEmptyMerge()
isEmptyMerge
in interface MergeResultContext
public void setEmptyMerge(boolean emptyMerge)
setEmptyMerge
in interface MergeResultContext
@NotNull public @NotNull MergeResultState getMergeState()
MergeResultContext
getMergeState
in interface MergeResultContext
public void setMergeState(@NotNull @NotNull MergeResultState mergeState)
setMergeState
in interface MergeResultContext
@NotNull public @NotNull MergeResultState getPushState()
MergeResultContext
getPushState
in interface MergeResultContext
public void setPushState(@NotNull @NotNull MergeResultState pushState)
setPushState
in interface MergeResultContext
@Nullable public @Nullable String getBranchTargetVcsKey()
MergeResultContext
getBranchTargetVcsKey
in interface MergeResultContext
public void setBranchTargetVcsKey(@Nullable @Nullable String branchTargetVcsKey)
setBranchTargetVcsKey
in interface MergeResultContext
public BranchIntegrationStrategy getIntegrationStrategy()
MergeResultContext
getIntegrationStrategy
in interface MergeResultContext
public void setIntegrationStrategy(BranchIntegrationStrategy integrationStrategy)
setIntegrationStrategy
in interface MergeResultContext
public String getIntegrationRepositoryBranchName()
MergeResultContext
getIntegrationRepositoryBranchName
in interface MergeResultContext
public void setIntegrationRepositoryBranchName(String integrationRepositoryBranchName)
setIntegrationRepositoryBranchName
in interface MergeResultContext
@Nullable public @Nullable String getBranchName()
MergeResultContext
getBranchName
in interface MergeResultContext
public void setBranchName(@Nullable @Nullable String branchName)
setBranchName
in interface MergeResultContext
public boolean hasFailed()
MergeResultContext
hasFailed
in interface MergeResultContext
public static void copy(@Nullable @Nullable MergeResultContext from, @NotNull @NotNull MergeResultContext to)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.