com.atlassian.bamboo.plan.branch
Class BranchIntegrationConfigurationImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.branch.BranchIntegrationConfigurationImpl
All Implemented Interfaces:
ConvertibleFromConfig, OptionallyConvertibleFromConfig, BranchIntegrationConfiguration, java.io.Serializable

public class BranchIntegrationConfigurationImpl
extends java.lang.Object
implements BranchIntegrationConfiguration

See Also:
Serialized Form

Constructor Summary
BranchIntegrationConfigurationImpl()
           
BranchIntegrationConfigurationImpl(boolean aDefaultConfiguration)
           
BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other, boolean isDefaultConfiguration)
           
BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other, boolean isDefaultConfiguration, boolean pushEnabled)
           
 
Method Summary
 PlanKey getBranchToMergeWith(PlanKey featureBranch)
          Returns the PlanKey of the relevant vcs branch we want to merge with.
 PlanKey getIntegrationPlanBranchKey()
           
 PlanKey getMergeResultDestinationBranch(PlanKey planBranch)
          Returns the PlanKey of the relevant VCS branch we want to perform the merge on.
 BranchIntegrationStrategy getStrategy()
           
 boolean isEnabled()
           
 boolean isPushEnabled()
          Tells whether Bamboo should push back the merged commit back into upstream repository if the build finishes successfully.
 boolean isValid()
          Is the object state valid after it has been initialised from properties.
 void populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
          Update the current object with data in the HierarchicalConfiguration
 org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
          Generate a HierarchicalConfiguration from the current state of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BranchIntegrationConfigurationImpl

public BranchIntegrationConfigurationImpl()

BranchIntegrationConfigurationImpl

public BranchIntegrationConfigurationImpl(boolean aDefaultConfiguration)

BranchIntegrationConfigurationImpl

public BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other,
                                          boolean isDefaultConfiguration,
                                          boolean pushEnabled)

BranchIntegrationConfigurationImpl

public BranchIntegrationConfigurationImpl(BranchIntegrationConfiguration other,
                                          boolean isDefaultConfiguration)
Method Detail

getIntegrationPlanBranchKey

@NotNull
public PlanKey getIntegrationPlanBranchKey()
Specified by:
getIntegrationPlanBranchKey in interface BranchIntegrationConfiguration

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface BranchIntegrationConfiguration

getStrategy

public BranchIntegrationStrategy getStrategy()
Specified by:
getStrategy in interface BranchIntegrationConfiguration

isPushEnabled

public boolean isPushEnabled()
Description copied from interface: BranchIntegrationConfiguration
Tells whether Bamboo should push back the merged commit back into upstream repository if the build finishes successfully.

Specified by:
isPushEnabled in interface BranchIntegrationConfiguration

getMergeResultDestinationBranch

@NotNull
public PlanKey getMergeResultDestinationBranch(@NotNull
                                                       PlanKey planBranch)
Description copied from interface: BranchIntegrationConfiguration
Returns the PlanKey of the relevant VCS branch we want to perform the merge on. In Hg/Git/SVN terms, this will be the VCS branch we checkout prior to merge.

Specified by:
getMergeResultDestinationBranch in interface BranchIntegrationConfiguration

getBranchToMergeWith

@NotNull
public PlanKey getBranchToMergeWith(@NotNull
                                            PlanKey featureBranch)
Description copied from interface: BranchIntegrationConfiguration
Returns the PlanKey of the relevant vcs branch we want to merge with. In Hg/Git/SVN terms, this will be the VCS branch we merge with after checkout.

Specified by:
getBranchToMergeWith in interface BranchIntegrationConfiguration

populateFromConfig

public void populateFromConfig(@NotNull
                               org.apache.commons.configuration.HierarchicalConfiguration config)
Description copied from interface: ConvertibleFromConfig
Update the current object with data in the HierarchicalConfiguration

Specified by:
populateFromConfig in interface ConvertibleFromConfig

toConfiguration

@NotNull
public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Description copied from interface: ConvertibleFromConfig
Generate a HierarchicalConfiguration from the current state of the object

Specified by:
toConfiguration in interface ConvertibleFromConfig
Returns:
Always returns an HierarchicalConfiguration. Never null

isValid

public boolean isValid()
Description copied from interface: OptionallyConvertibleFromConfig
Is the object state valid after it has been initialised from properties.

Specified by:
isValid in interface OptionallyConvertibleFromConfig
Returns:


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