com.atlassian.bamboo.chains.branches
Interface MergeResultSummary

All Known Implementing Classes:
MergeResultSummaryImpl

public interface MergeResultSummary

Represents results of branch integration.


Method Summary
 java.lang.String getBranchName()
          Branch name associated with this Plan Branch.
 java.lang.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.
 java.lang.String getFailureReason()
           
 java.lang.String getIntegrationBranchVcsKey()
          Depensing on the integration strategy this could be the checked out revision or the merged revision
 java.lang.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.
 java.lang.String getMergeResultVcsKey()
           
 MergeResultState getMergeState()
          The state of the merge part of the integration strategy Should be NotNull but legacy data may exist
 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(java.lang.String branchName)
           
 void setBranchTargetVcsKey(java.lang.String branchTargetVcsKey)
           
 void setEmptyMerge(boolean emptyMerge)
           
 void setFailureReason(java.lang.String failureReason)
           
 void setIntegrationBranchVcsKey(java.lang.String mergedRevisionKey)
           
 void setIntegrationRepositoryBranchName(java.lang.String integrationRepositoryBranchName)
           
 void setIntegrationRepositoryId(long integrationRepositoryId)
           
 void setIntegrationStrategy(BranchIntegrationStrategy elemEnumValue)
           
 void setMergeResultVcsKey(java.lang.String mergeResultVcsKey)
           
 void setMergeState(MergeResultState mergeState)
           
 void setPushState(MergeResultState pushState)
           
 

Method Detail

getFailureReason

@Nullable
java.lang.String getFailureReason()
Returns:
reason of failure of merge or push operation

setFailureReason

void setFailureReason(java.lang.String failureReason)

getBranchTargetVcsKey

@Nullable
java.lang.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(java.lang.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
java.lang.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(java.lang.String integrationRepositoryBranchName)

getIntegrationBranchVcsKey

@NotNull
java.lang.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(java.lang.String mergedRevisionKey)

getMergeResultVcsKey

@Nullable
java.lang.String getMergeResultVcsKey()
Returns:
revision created by the merge process

setMergeResultVcsKey

void setMergeResultVcsKey(java.lang.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
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
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
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
java.lang.String getBranchName()
Branch name associated with this Plan Branch.

Returns:
a string representation of the branch at the time of integration

setBranchName

void setBranchName(java.lang.String branchName)


Copyright © 2012 Atlassian. All Rights Reserved.