public class VariableConfigurationServiceImpl extends Object implements VariableConfigurationService
Constructor and Description |
---|
VariableConfigurationServiceImpl(ScopedExclusionService scopedExclusionService,
VariableDefinitionManager variableDefinitionManager,
VariableDefinitionFactory variableDefinitionFactory) |
Modifier and Type | Method and Description |
---|---|
VariableDefinition |
createGlobalVariable(String variableKey,
String variableValue)
Creates new Global variable.
|
VariableDefinition |
createPlanVariable(Plan plan,
String variableKey,
String variableValue)
Creates new Plan variable.
|
VariableDefinition |
createUniqueGlobalVariable(String variableKey,
String variableValue)
Creates new global variable.
|
VariableDefinition |
createUniquePlanVariable(Plan plan,
String variableKey,
String variableValue)
Creates new Plan variable.
|
VariableDefinition |
createVariableForEnvironment(long environmentId,
String variableKey,
String variableValue)
Creates new variable for Deployment Environment
|
void |
deleteVariableDefinition(VariableDefinition variableDefinition)
Removes
VariableDefinition |
void |
setPlanVariables(Chain plan,
List<com.atlassian.bamboo.specs.api.model.VariableProperties> variables)
Creates complete plan variables list.
|
VariableDefinition |
updateVariableDefinition(VariableDefinition variableDefinition,
String previousValue)
Updates
VariableDefinition |
public VariableConfigurationServiceImpl(@NotNull ScopedExclusionService scopedExclusionService, @NotNull VariableDefinitionManager variableDefinitionManager, @NotNull VariableDefinitionFactory variableDefinitionFactory)
@NotNull public VariableDefinition createUniquePlanVariable(@NotNull Plan plan, @NotNull String variableKey, @NotNull String variableValue)
VariableConfigurationService
createUniquePlanVariable
in interface VariableConfigurationService
plan
- plan the variable belongs tovariableKey
- variable key.variableValue
- variable valueVariableDefinition
@NotNull public VariableDefinition createUniqueGlobalVariable(@NotNull String variableKey, @NotNull String variableValue)
VariableConfigurationService
createUniqueGlobalVariable
in interface VariableConfigurationService
variableKey
- variable key.variableValue
- variable valueVariableDefinition
@NotNull public VariableDefinition createPlanVariable(@NotNull Plan plan, @NotNull String variableKey, @NotNull String variableValue)
VariableConfigurationService
createPlanVariable
in interface VariableConfigurationService
plan
- plan the variable belongs tovariableKey
- variable key.variableValue
- variable valueVariableDefinition
@NotNull public VariableDefinition createVariableForEnvironment(long environmentId, @NotNull String variableKey, @NotNull String variableValue)
VariableConfigurationService
createVariableForEnvironment
in interface VariableConfigurationService
variableKey
- variable key.variableValue
- variable valueVariableDefinition
@NotNull public VariableDefinition createGlobalVariable(@NotNull String variableKey, @NotNull String variableValue)
VariableConfigurationService
createGlobalVariable
in interface VariableConfigurationService
variableValue
- variable valueVariableDefinition
@NotNull public VariableDefinition updateVariableDefinition(@NotNull VariableDefinition variableDefinition, String previousValue)
VariableConfigurationService
VariableDefinition
updateVariableDefinition
in interface VariableConfigurationService
public void deleteVariableDefinition(@NotNull VariableDefinition variableDefinition)
VariableConfigurationService
VariableDefinition
deleteVariableDefinition
in interface VariableConfigurationService
public void setPlanVariables(@NotNull Chain plan, @NotNull List<com.atlassian.bamboo.specs.api.model.VariableProperties> variables)
VariableConfigurationService
setPlanVariables
in interface VariableConfigurationService
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.