Class MergeResultSummaryImpl
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.chains.branches.MergeResultSummaryImpl
- All Implemented Interfaces:
MergeResultContext,MergeResultSummary,BambooIdProvider,BambooObject,Cloneable
@Entity
public class MergeResultSummaryImpl
extends BambooEntityObject
implements MergeResultSummary
-
Constructor Summary
ConstructorsConstructorDescriptionMergeResultSummaryImpl(@NotNull MergeResultContext other) MergeResultSummaryImpl(BranchIntegrationStrategy integrationStrategy) -
Method Summary
Modifier and TypeMethodDescription@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()Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
MergeResultSummaryImpl
public MergeResultSummaryImpl() -
MergeResultSummaryImpl
-
MergeResultSummaryImpl
-
-
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.
-
toString
-