public class VariableDefinitionFactoryImpl extends Object implements VariableDefinitionFactory
Constructor and Description |
---|
VariableDefinitionFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
VariableDefinition |
createGlobalVariable(String key,
String value)
Create global variable definition
|
VariableDefinition |
createPlanVariable(Plan plan,
String key,
String value)
Create plan variable definition
|
VariableDefinition |
createVariableForEnvironment(long environmentId,
String variableKey,
String variableValue)
Create variable for deployment environment
|
VariableDefinition |
createVariableForVersion(long versionId,
String variableKey,
String variableValue)
Create variable for deployment version
|
public VariableDefinition createGlobalVariable(@NotNull String key, @NotNull String value)
VariableDefinitionFactory
createGlobalVariable
in interface VariableDefinitionFactory
key
- variable keyvalue
- variable valuepublic VariableDefinition createPlanVariable(@NotNull Plan plan, @NotNull String key, @NotNull String value)
VariableDefinitionFactory
createPlanVariable
in interface VariableDefinitionFactory
plan
- plan associated with variablekey
- variable keyvalue
- variable valuepublic VariableDefinition createVariableForEnvironment(long environmentId, String variableKey, String variableValue)
VariableDefinitionFactory
createVariableForEnvironment
in interface VariableDefinitionFactory
public VariableDefinition createVariableForVersion(long versionId, String variableKey, String variableValue)
VariableDefinitionFactory
createVariableForVersion
in interface VariableDefinitionFactory
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.