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
Constructors Constructor Description MergeResultSummaryImpl()MergeResultSummaryImpl(@NotNull MergeResultContext other)MergeResultSummaryImpl(BranchIntegrationStrategy integrationStrategy)
-
Method Summary
All Methods Instance Methods Concrete 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 revisionStringgetIntegrationRepositoryBranchName()The branch name associated with the integration repositorylonggetIntegrationRepositoryId()BranchIntegrationStrategygetIntegrationStrategy()Should not be null, however legacy data may exist that doesn't have this value.@Nullable StringgetMergeResultVcsKey()@NotNull MergeResultStategetMergeState()The state of the merge part of the integration strategy Should be NotNull but legacy data may exist@NotNull 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(@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)StringtoString()-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
MergeResultSummaryImpl
public MergeResultSummaryImpl()
-
MergeResultSummaryImpl
public MergeResultSummaryImpl(BranchIntegrationStrategy integrationStrategy)
-
MergeResultSummaryImpl
public MergeResultSummaryImpl(@NotNull @NotNull MergeResultContext other)
-
-
Method Detail
-
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
@Nullable public @Nullable String getFailureReason()
- Specified by:
getFailureReasonin interfaceMergeResultContext- Returns:
- reason of failure of merge or push operation
-
setFailureReason
public void setFailureReason(@Nullable @Nullable String failureReason)- Specified by:
setFailureReasonin interfaceMergeResultContext
-
getIntegrationBranchVcsKey
@NotNull public @NotNull String 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
public void setIntegrationBranchVcsKey(@NotNull @NotNull String integrationBranchVcsKey)- Specified by:
setIntegrationBranchVcsKeyin interfaceMergeResultContext
-
getMergeResultVcsKey
@Nullable public @Nullable String getMergeResultVcsKey()
- Specified by:
getMergeResultVcsKeyin interfaceMergeResultContext- Returns:
- revision created by the merge process
-
setMergeResultVcsKey
public void setMergeResultVcsKey(@Nullable @Nullable String pushRevisionKey)- 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
@NotNull public @NotNull MergeResultState 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
public void setMergeState(@NotNull @NotNull MergeResultState mergeState)- Specified by:
setMergeStatein interfaceMergeResultContext
-
getPushState
@NotNull public @NotNull MergeResultState 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
public void setPushState(@NotNull @NotNull MergeResultState pushState)- Specified by:
setPushStatein interfaceMergeResultContext
-
getBranchTargetVcsKey
@Nullable public @Nullable String 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
public void setBranchTargetVcsKey(@Nullable @Nullable String branchTargetVcsKey)- Specified by:
setBranchTargetVcsKeyin interfaceMergeResultContext
-
getIntegrationStrategy
public BranchIntegrationStrategy 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
public void setIntegrationStrategy(BranchIntegrationStrategy integrationStrategy)
- Specified by:
setIntegrationStrategyin interfaceMergeResultContext
-
getIntegrationRepositoryBranchName
public String 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
public void setIntegrationRepositoryBranchName(String integrationRepositoryBranchName)
- Specified by:
setIntegrationRepositoryBranchNamein interfaceMergeResultContext
-
getBranchName
@Nullable public @Nullable String 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
public void setBranchName(@Nullable @Nullable String branchName)- 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.
-
-