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
ConstructorDescriptionMergeResultSummaryImpl
(@NotNull MergeResultContext other) MergeResultSummaryImpl
(BranchIntegrationStrategy integrationStrategy) -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Branch name associated with this Plan Branch.@Nullable String
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
@NotNull String
Depensing on the integration strategy this could be the checked out revision or the merged revisionThe branch name associated with the integration repositorylong
Should not be null, however legacy data may exist that doesn't have this value.@Nullable String
@NotNull MergeResultState
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist@NotNull MergeResultState
The state of the push part of the integration strategy Should be NotNull but legacy data may existboolean
Has the branch integration failed at any point in the integration processboolean
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) toString()
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 Details
-
MergeResultSummaryImpl
public MergeResultSummaryImpl() -
MergeResultSummaryImpl
-
MergeResultSummaryImpl
-
-
Method Details
-
getIntegrationRepositoryId
public long getIntegrationRepositoryId()- Specified by:
getIntegrationRepositoryId
in 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:
setIntegrationRepositoryId
in interfaceMergeResultContext
-
getFailureReason
- Specified by:
getFailureReason
in interfaceMergeResultContext
- Returns:
- reason of failure of merge or push operation
-
setFailureReason
- Specified by:
setFailureReason
in interfaceMergeResultContext
-
getIntegrationBranchVcsKey
Description copied from interface:MergeResultContext
Depensing on the integration strategy this could be the checked out revision or the merged revision- Specified by:
getIntegrationBranchVcsKey
in interfaceMergeResultContext
- Returns:
- revision key integrated into the branch
-
setIntegrationBranchVcsKey
- Specified by:
setIntegrationBranchVcsKey
in interfaceMergeResultContext
-
getMergeResultVcsKey
- Specified by:
getMergeResultVcsKey
in interfaceMergeResultContext
- Returns:
- revision created by the merge process
-
setMergeResultVcsKey
- Specified by:
setMergeResultVcsKey
in interfaceMergeResultContext
-
isEmptyMerge
public boolean isEmptyMerge()- Specified by:
isEmptyMerge
in interfaceMergeResultContext
- Returns:
- true iff merge doesn't produce any changes that need to be committed
-
setEmptyMerge
public void setEmptyMerge(boolean emptyMerge) - Specified by:
setEmptyMerge
in interfaceMergeResultContext
-
getMergeState
Description copied from interface:MergeResultContext
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist- Specified by:
getMergeState
in interfaceMergeResultContext
- Returns:
- MergeResultState representing the state of the merge
-
setMergeState
- Specified by:
setMergeState
in interfaceMergeResultContext
-
getPushState
Description copied from interface:MergeResultContext
The state of the push part of the integration strategy Should be NotNull but legacy data may exist- Specified by:
getPushState
in interfaceMergeResultContext
- Returns:
- MergeResultState representing the state of the push
-
setPushState
- Specified by:
setPushState
in interfaceMergeResultContext
-
getBranchTargetVcsKey
Description copied from interface:MergeResultContext
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.- Specified by:
getBranchTargetVcsKey
in interfaceMergeResultContext
- Returns:
- The revision key used of the branch
-
setBranchTargetVcsKey
- Specified by:
setBranchTargetVcsKey
in interfaceMergeResultContext
-
getIntegrationStrategy
Description copied from interface:MergeResultContext
Should not be null, however legacy data may exist that doesn't have this value.- Specified by:
getIntegrationStrategy
in interfaceMergeResultContext
- Returns:
- The integration strategy used for his merge.
-
setIntegrationStrategy
- Specified by:
setIntegrationStrategy
in interfaceMergeResultContext
-
getIntegrationRepositoryBranchName
Description copied from interface:MergeResultContext
The branch name associated with the integration repository- Specified by:
getIntegrationRepositoryBranchName
in interfaceMergeResultContext
- Returns:
- A string representation of the branch at the time of integration.
-
setIntegrationRepositoryBranchName
- Specified by:
setIntegrationRepositoryBranchName
in interfaceMergeResultContext
-
getBranchName
Description copied from interface:MergeResultContext
Branch name associated with this Plan Branch.- Specified by:
getBranchName
in interfaceMergeResultContext
- Returns:
- a string representation of the branch at the time of integration
-
setBranchName
- Specified by:
setBranchName
in interfaceMergeResultContext
-
hasFailed
public boolean hasFailed()Description copied from interface:MergeResultContext
Has the branch integration failed at any point in the integration process- Specified by:
hasFailed
in interfaceMergeResultContext
- Returns:
- true if the integration has failed.
-
toString
-