Package com.atlassian.bamboo.plan.branch
Class BranchSpecificConfiguration
java.lang.Object
com.atlassian.bamboo.plan.branch.BranchSpecificConfiguration
- All Implemented Interfaces:
ConvertibleFromConfig
,OptionallyConvertibleFromConfig
Dumping ground for any configuration specific to a branch.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
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
Generate aHierarchicalConfiguration
from the current state of the object
-
Field Details
-
PREFIX
- See Also:
-
BRANCH_CLEANUP_DISABLED
- See Also:
-
BRANCH_NOTIFICATION_STRATEGY
- See Also:
-
BRANCH_AWAITING_SPECS_EXECUTION
- See Also:
-
IGNORE_SPECS
- See Also:
-
PLAN_BRANCH_WORKFLOW_CFG_KEY
Config key for storing info whichPlanBranchWorkflow
led to creation of this plan branch.- See Also:
-
-
Constructor Details
-
BranchSpecificConfiguration
public BranchSpecificConfiguration()
-
-
Method Details
-
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
-
setNotificationStrategy
-
getPlanBranchWorkflow
- Returns:
- which
PlanBranchWorkflow
led to creation of this plan branch.
-
setPlanBranchWorkflow
-