com.atlassian.bamboo.chains.branches
Class MergeResultSummaryImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.chains.branches.MergeResultSummaryImpl
All Implemented Interfaces:
MergeResultSummary, BambooIdProvider, BambooObject, java.lang.Cloneable

public class MergeResultSummaryImpl
extends BambooEntityObject
implements MergeResultSummary


Field Summary
protected  java.lang.String branchName
           
protected  java.lang.String branchTargetVcsKey
           
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
MergeResultSummaryImpl()
           
MergeResultSummaryImpl(BranchIntegrationStrategy integrationStrategy)
           
MergeResultSummaryImpl(MergeResultSummary other)
           
 
Method Summary
static void copy(MergeResultSummary from, MergeResultSummary to)
           
 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 integrationBranchVcsKey)
           
 void setIntegrationRepositoryBranchName(java.lang.String integrationRepositoryBranchName)
           
 void setIntegrationRepositoryId(long integrationRepositoryId)
           
 void setIntegrationStrategy(BranchIntegrationStrategy integrationStrategy)
           
 void setMergeResultVcsKey(java.lang.String pushRevisionKey)
           
 void setMergeState(MergeResultState mergeState)
           
 void setPushState(MergeResultState pushState)
           
 java.lang.String toString()
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
equals, getId, hashCode, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Field Detail

branchTargetVcsKey

protected java.lang.String branchTargetVcsKey

branchName

protected java.lang.String branchName
Constructor Detail

MergeResultSummaryImpl

public MergeResultSummaryImpl()

MergeResultSummaryImpl

public MergeResultSummaryImpl(BranchIntegrationStrategy integrationStrategy)

MergeResultSummaryImpl

public MergeResultSummaryImpl(@NotNull
                              MergeResultSummary other)
Method Detail

getIntegrationRepositoryId

public long getIntegrationRepositoryId()
Specified by:
getIntegrationRepositoryId in interface MergeResultSummary
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 interface MergeResultSummary

getFailureReason

@Nullable
public java.lang.String getFailureReason()
Specified by:
getFailureReason in interface MergeResultSummary
Returns:
reason of failure of merge or push operation

setFailureReason

public void setFailureReason(@Nullable
                             java.lang.String failureReason)
Specified by:
setFailureReason in interface MergeResultSummary

getIntegrationBranchVcsKey

@NotNull
public java.lang.String getIntegrationBranchVcsKey()
Description copied from interface: MergeResultSummary
Depensing on the integration strategy this could be the checked out revision or the merged revision

Specified by:
getIntegrationBranchVcsKey in interface MergeResultSummary
Returns:
revision key integrated into the branch

setIntegrationBranchVcsKey

public void setIntegrationBranchVcsKey(@NotNull
                                       java.lang.String integrationBranchVcsKey)
Specified by:
setIntegrationBranchVcsKey in interface MergeResultSummary

getMergeResultVcsKey

@Nullable
public java.lang.String getMergeResultVcsKey()
Specified by:
getMergeResultVcsKey in interface MergeResultSummary
Returns:
revision created by the merge process

setMergeResultVcsKey

public void setMergeResultVcsKey(@Nullable
                                 java.lang.String pushRevisionKey)
Specified by:
setMergeResultVcsKey in interface MergeResultSummary

isEmptyMerge

public boolean isEmptyMerge()
Specified by:
isEmptyMerge in interface MergeResultSummary
Returns:
true iff merge doesn't produce any changes that need to be committed

setEmptyMerge

public void setEmptyMerge(boolean emptyMerge)
Specified by:
setEmptyMerge in interface MergeResultSummary

getMergeState

@NotNull
public MergeResultState getMergeState()
Description copied from interface: MergeResultSummary
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist

Specified by:
getMergeState in interface MergeResultSummary
Returns:
MergeResultState representing the state of the merge

setMergeState

public void setMergeState(@NotNull
                          MergeResultState mergeState)
Specified by:
setMergeState in interface MergeResultSummary

getPushState

@NotNull
public MergeResultState getPushState()
Description copied from interface: MergeResultSummary
The state of the push part of the integration strategy Should be NotNull but legacy data may exist

Specified by:
getPushState in interface MergeResultSummary
Returns:
MergeResultState representing the state of the push

setPushState

public void setPushState(@NotNull
                         MergeResultState pushState)
Specified by:
setPushState in interface MergeResultSummary

getBranchTargetVcsKey

@Nullable
public java.lang.String getBranchTargetVcsKey()
Description copied from interface: MergeResultSummary
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 interface MergeResultSummary
Returns:
The revision key used of the branch

setBranchTargetVcsKey

public void setBranchTargetVcsKey(@Nullable
                                  java.lang.String branchTargetVcsKey)
Specified by:
setBranchTargetVcsKey in interface MergeResultSummary

getIntegrationStrategy

public BranchIntegrationStrategy getIntegrationStrategy()
Description copied from interface: MergeResultSummary
Should not be null, however legacy data may exist that doesn't have this value.

Specified by:
getIntegrationStrategy in interface MergeResultSummary
Returns:
The integration strategy used for his merge.

setIntegrationStrategy

public void setIntegrationStrategy(BranchIntegrationStrategy integrationStrategy)
Specified by:
setIntegrationStrategy in interface MergeResultSummary

getIntegrationRepositoryBranchName

public java.lang.String getIntegrationRepositoryBranchName()
Description copied from interface: MergeResultSummary
The branch name associated with the integration repository

Specified by:
getIntegrationRepositoryBranchName in interface MergeResultSummary
Returns:
A string representation of the branch at the time of integration.

setIntegrationRepositoryBranchName

public void setIntegrationRepositoryBranchName(java.lang.String integrationRepositoryBranchName)
Specified by:
setIntegrationRepositoryBranchName in interface MergeResultSummary

getBranchName

@Nullable
public java.lang.String getBranchName()
Description copied from interface: MergeResultSummary
Branch name associated with this Plan Branch.

Specified by:
getBranchName in interface MergeResultSummary
Returns:
a string representation of the branch at the time of integration

setBranchName

public void setBranchName(@Nullable
                          java.lang.String branchName)
Specified by:
setBranchName in interface MergeResultSummary

hasFailed

public boolean hasFailed()
Description copied from interface: MergeResultSummary
Has the branch integration failed at any point in the integration process

Specified by:
hasFailed in interface MergeResultSummary
Returns:
true if the integration has failed.

copy

public static void copy(@Nullable
                        MergeResultSummary from,
                        @NotNull
                        MergeResultSummary to)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.