Package com.atlassian.bamboo.variable
Interface VariableDefinitionFactory
- All Known Implementing Classes:
VariableDefinitionFactoryImpl
public interface VariableDefinitionFactory
-
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 deploymentVersionId, String variableKey, String variableValue) Create variable for deployment version
-
Method Details
-
createGlobalVariable
VariableDefinition createGlobalVariable(@NotNull @NotNull String key, @NotNull @NotNull String value) Create global variable definition- Parameters:
key
- variable keyvalue
- variable value- Returns:
- VariableDefinition object
-
createPlanVariable
VariableDefinition createPlanVariable(@NotNull @NotNull Plan plan, @NotNull @NotNull String key, @NotNull @NotNull String value) Create plan variable definition- Parameters:
plan
- plan associated with variablekey
- variable keyvalue
- variable value- Returns:
- VariableDefinition object
-
createVariableForEnvironment
VariableDefinition createVariableForEnvironment(long environmentId, String variableKey, String variableValue) Create variable for deployment environment- Parameters:
environmentId
-variableKey
-variableValue
-- Returns:
-
createVariableForVersion
VariableDefinition createVariableForVersion(long deploymentVersionId, String variableKey, String variableValue) Create variable for deployment version- Parameters:
deploymentVersionId
-variableKey
-variableValue
-- Returns:
-
createVariableForProject
VariableDefinition createVariableForProject(long projectId, String variableKey, String variableValue) Create variable for a project- Parameters:
projectId
-variableKey
-variableValue
-- Returns:
-