Package com.atlassian.bamboo.variable
Class VariableDefinitionFactoryImpl
java.lang.Object
com.atlassian.bamboo.variable.VariableDefinitionFactoryImpl
- All Implemented Interfaces:
VariableDefinitionFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateGlobalVariable
(@NotNull String key, @NotNull String value) Create global variable definitioncreatePlanVariable
(@NotNull Plan plan, @NotNull String key, @NotNull String value) Create plan variable definitioncreateVariableForEnvironment
(long environmentId, String variableKey, String variableValue) Create variable for deployment environmentcreateVariableForProject
(long projectId, String variableKey, String variableValue) Create variable for a projectcreateVariableForVersion
(long versionId, String variableKey, String variableValue) Create variable for deployment version
-
Constructor Details
-
VariableDefinitionFactoryImpl
public VariableDefinitionFactoryImpl()
-
-
Method Details
-
createGlobalVariable
public VariableDefinition createGlobalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value) Description copied from interface:VariableDefinitionFactory
Create global variable definition- Specified by:
createGlobalVariable
in interfaceVariableDefinitionFactory
- Parameters:
key
- variable keyvalue
- variable value- Returns:
- VariableDefinition object
-
createPlanVariable
public VariableDefinition createPlanVariable(@NotNull @NotNull Plan plan, @NotNull @NotNull String key, @NotNull @NotNull String value) Description copied from interface:VariableDefinitionFactory
Create plan variable definition- Specified by:
createPlanVariable
in interfaceVariableDefinitionFactory
- Parameters:
plan
- plan associated with variablekey
- variable keyvalue
- variable value- Returns:
- VariableDefinition object
-
createVariableForEnvironment
public VariableDefinition createVariableForEnvironment(long environmentId, String variableKey, String variableValue) Description copied from interface:VariableDefinitionFactory
Create variable for deployment environment- Specified by:
createVariableForEnvironment
in interfaceVariableDefinitionFactory
- Returns:
-
createVariableForVersion
public VariableDefinition createVariableForVersion(long versionId, String variableKey, String variableValue) Description copied from interface:VariableDefinitionFactory
Create variable for deployment version- Specified by:
createVariableForVersion
in interfaceVariableDefinitionFactory
- Returns:
-
createVariableForProject
public VariableDefinition createVariableForProject(long projectId, String variableKey, String variableValue) Description copied from interface:VariableDefinitionFactory
Create variable for a project- Specified by:
createVariableForProject
in interfaceVariableDefinitionFactory
- Returns:
-