Package com.atlassian.bamboo.plan.branch
Class BranchSpecificConfiguration
- java.lang.Object
-
- com.atlassian.bamboo.plan.branch.BranchSpecificConfiguration
-
- All Implemented Interfaces:
ConvertibleFromConfig
,OptionallyConvertibleFromConfig
public class BranchSpecificConfiguration extends Object implements OptionallyConvertibleFromConfig
Dumping ground for any configuration specific to a branch.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BRANCH_AWAITING_SPECS_EXECUTION
static String
BRANCH_CLEANUP_DISABLED
static String
BRANCH_NOTIFICATION_STRATEGY
static String
IGNORE_SPECS
static String
PLAN_BRANCH_WORKFLOW_CFG_KEY
Config key for storing info whichPlanBranchWorkflow
led to creation of this plan branch.static String
PREFIX
-
Constructor Summary
Constructors Constructor Description BranchSpecificConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchNotificationStrategy
getNotificationStrategy()
PlanBranchWorkflow
getPlanBranchWorkflow()
boolean
isAwaitingSpecsExecution()
boolean
isBranchCleanupDisabled()
boolean
isIgnoreSpecs()
boolean
isValid()
Is the object state valid after it has been initialised from properties.void
populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in theHierarchicalConfiguration
void
setAwaitingSpecsExecution(boolean awaitingSpecsExecution)
void
setBranchCleanupDisabled(boolean branchCleanupDisabled)
void
setIgnoreSpecs(boolean ignoreSpecs)
void
setNotificationStrategy(BranchNotificationStrategy notificationStrategy)
void
setPlanBranchWorkflow(PlanBranchWorkflow creationWorkflow)
@NotNull org.apache.commons.configuration.HierarchicalConfiguration
toConfiguration()
Generate aHierarchicalConfiguration
from the current state of the object
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
BRANCH_CLEANUP_DISABLED
public static final String BRANCH_CLEANUP_DISABLED
- See Also:
- Constant Field Values
-
BRANCH_NOTIFICATION_STRATEGY
public static final String BRANCH_NOTIFICATION_STRATEGY
- See Also:
- Constant Field Values
-
BRANCH_AWAITING_SPECS_EXECUTION
public static final String BRANCH_AWAITING_SPECS_EXECUTION
- See Also:
- Constant Field Values
-
IGNORE_SPECS
public static final String IGNORE_SPECS
- See Also:
- Constant Field Values
-
PLAN_BRANCH_WORKFLOW_CFG_KEY
public static final String PLAN_BRANCH_WORKFLOW_CFG_KEY
Config key for storing info whichPlanBranchWorkflow
led to creation of this plan branch.- See Also:
- Constant Field Values
-
-
Method Detail
-
populateFromConfig
public void populateFromConfig(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
Description copied from interface:ConvertibleFromConfig
Update the current object with data in theHierarchicalConfiguration
- Specified by:
populateFromConfig
in interfaceConvertibleFromConfig
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Description copied from interface:ConvertibleFromConfig
Generate aHierarchicalConfiguration
from the current state of the object- Specified by:
toConfiguration
in interfaceConvertibleFromConfig
- 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 interfaceOptionallyConvertibleFromConfig
- Returns:
-
isBranchCleanupDisabled
public boolean isBranchCleanupDisabled()
-
isIgnoreSpecs
public boolean isIgnoreSpecs()
-
isAwaitingSpecsExecution
public boolean isAwaitingSpecsExecution()
-
setAwaitingSpecsExecution
public void setAwaitingSpecsExecution(boolean awaitingSpecsExecution)
-
setIgnoreSpecs
public void setIgnoreSpecs(boolean ignoreSpecs)
-
setBranchCleanupDisabled
public void setBranchCleanupDisabled(boolean branchCleanupDisabled)
-
getNotificationStrategy
public BranchNotificationStrategy getNotificationStrategy()
-
setNotificationStrategy
public void setNotificationStrategy(BranchNotificationStrategy notificationStrategy)
-
getPlanBranchWorkflow
public PlanBranchWorkflow getPlanBranchWorkflow()
- Returns:
- which
PlanBranchWorkflow
led to creation of this plan branch.
-
setPlanBranchWorkflow
public void setPlanBranchWorkflow(PlanBranchWorkflow creationWorkflow)
-
-