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 StringBRANCH_AWAITING_SPECS_EXECUTIONstatic StringBRANCH_CLEANUP_DISABLEDstatic StringBRANCH_NOTIFICATION_STRATEGYstatic StringIGNORE_SPECSstatic StringPLAN_BRANCH_WORKFLOW_CFG_KEYConfig key for storing info whichPlanBranchWorkflowled to creation of this plan branch.static StringPREFIX
-
Constructor Summary
Constructors Constructor Description BranchSpecificConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BranchNotificationStrategygetNotificationStrategy()PlanBranchWorkflowgetPlanBranchWorkflow()booleanisAwaitingSpecsExecution()booleanisBranchCleanupDisabled()booleanisIgnoreSpecs()booleanisValid()Is the object state valid after it has been initialised from properties.voidpopulateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)Update the current object with data in theHierarchicalConfigurationvoidsetAwaitingSpecsExecution(boolean awaitingSpecsExecution)voidsetBranchCleanupDisabled(boolean branchCleanupDisabled)voidsetIgnoreSpecs(boolean ignoreSpecs)voidsetNotificationStrategy(BranchNotificationStrategy notificationStrategy)voidsetPlanBranchWorkflow(PlanBranchWorkflow creationWorkflow)@NotNull org.apache.commons.configuration.HierarchicalConfigurationtoConfiguration()Generate aHierarchicalConfigurationfrom 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 whichPlanBranchWorkflowled 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:ConvertibleFromConfigUpdate the current object with data in theHierarchicalConfiguration- Specified by:
populateFromConfigin interfaceConvertibleFromConfig
-
toConfiguration
@NotNull public @NotNull org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
Description copied from interface:ConvertibleFromConfigGenerate aHierarchicalConfigurationfrom the current state of the object- Specified by:
toConfigurationin interfaceConvertibleFromConfig- Returns:
- Always returns an
HierarchicalConfiguration. Never null
-
isValid
public boolean isValid()
Description copied from interface:OptionallyConvertibleFromConfigIs the object state valid after it has been initialised from properties.- Specified by:
isValidin 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
PlanBranchWorkflowled to creation of this plan branch.
-
setPlanBranchWorkflow
public void setPlanBranchWorkflow(PlanBranchWorkflow creationWorkflow)
-
-