com.atlassian.bamboo.plan.branch
Class BranchSpecificConfiguration

java.lang.Object
  extended by com.atlassian.bamboo.plan.branch.BranchSpecificConfiguration
All Implemented Interfaces:
ConvertibleFromConfig, OptionallyConvertibleFromConfig

public class BranchSpecificConfiguration
extends java.lang.Object
implements OptionallyConvertibleFromConfig

Dumping ground for any configuration specific to a branch.


Field Summary
static java.lang.String BRANCH_CLEANUP_DISABLED
           
static java.lang.String BRANCH_NOTIFICATION_STRATEGY
           
static java.lang.String BRANCH_OVERRIDE_BUILD_STRATEGY
          Deprecated. 
static java.lang.String BRANCH_TRIGGER_REPOSITORIES
          Deprecated. 
 
Constructor Summary
BranchSpecificConfiguration()
           
 
Method Summary
 BranchNotificationStrategy getNotificationStrategy()
           
 boolean isBranchCleanupDisabled()
           
 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
 void setBranchCleanupDisabled(boolean branchCleanupDisabled)
           
 void setNotificationStrategy(BranchNotificationStrategy notificationStrategy)
           
 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
 

Field Detail

BRANCH_CLEANUP_DISABLED

public static final java.lang.String BRANCH_CLEANUP_DISABLED
See Also:
Constant Field Values

BRANCH_OVERRIDE_BUILD_STRATEGY

@Deprecated
public static final java.lang.String BRANCH_OVERRIDE_BUILD_STRATEGY
Deprecated. 
See Also:
Constant Field Values

BRANCH_TRIGGER_REPOSITORIES

@Deprecated
public static final java.lang.String BRANCH_TRIGGER_REPOSITORIES
Deprecated. 
See Also:
Constant Field Values

BRANCH_NOTIFICATION_STRATEGY

public static final java.lang.String BRANCH_NOTIFICATION_STRATEGY
See Also:
Constant Field Values
Constructor Detail

BranchSpecificConfiguration

public BranchSpecificConfiguration()
Method Detail

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:

isBranchCleanupDisabled

public boolean isBranchCleanupDisabled()

setBranchCleanupDisabled

public void setBranchCleanupDisabled(boolean branchCleanupDisabled)

getNotificationStrategy

public BranchNotificationStrategy getNotificationStrategy()

setNotificationStrategy

public void setNotificationStrategy(BranchNotificationStrategy notificationStrategy)


Copyright © 2012 Atlassian. All Rights Reserved.