public class BranchSpecificConfiguration extends Object implements OptionallyConvertibleFromConfig
Modifier and Type | Field and 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 which
PlanBranchWorkflow led to creation of this plan branch. |
static String |
PREFIX |
Constructor and Description |
---|
BranchSpecificConfiguration() |
Modifier and Type | Method and 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(org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the
HierarchicalConfiguration |
void |
setAwaitingSpecsExecution(boolean awaitingSpecsExecution) |
void |
setBranchCleanupDisabled(boolean branchCleanupDisabled) |
void |
setIgnoreSpecs(boolean ignoreSpecs) |
void |
setNotificationStrategy(BranchNotificationStrategy notificationStrategy) |
void |
setPlanBranchWorkflow(PlanBranchWorkflow creationWorkflow) |
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a
HierarchicalConfiguration from the current state of the object |
public static final String PREFIX
public static final String BRANCH_CLEANUP_DISABLED
public static final String BRANCH_NOTIFICATION_STRATEGY
public static final String BRANCH_AWAITING_SPECS_EXECUTION
public static final String IGNORE_SPECS
public static final String PLAN_BRANCH_WORKFLOW_CFG_KEY
PlanBranchWorkflow
led to creation of this plan branch.public void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the objecttoConfiguration
in interface ConvertibleFromConfig
HierarchicalConfiguration
. Never nullpublic boolean isValid()
OptionallyConvertibleFromConfig
isValid
in interface OptionallyConvertibleFromConfig
public boolean isBranchCleanupDisabled()
public boolean isIgnoreSpecs()
public boolean isAwaitingSpecsExecution()
public void setAwaitingSpecsExecution(boolean awaitingSpecsExecution)
public void setIgnoreSpecs(boolean ignoreSpecs)
public void setBranchCleanupDisabled(boolean branchCleanupDisabled)
public BranchNotificationStrategy getNotificationStrategy()
public void setNotificationStrategy(BranchNotificationStrategy notificationStrategy)
public PlanBranchWorkflow getPlanBranchWorkflow()
PlanBranchWorkflow
led to creation of this plan branch.public void setPlanBranchWorkflow(PlanBranchWorkflow creationWorkflow)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.