Package com.atlassian.bamboo.variable
Interface VariableDefinitionFactory
-
- All Known Implementing Classes:
VariableDefinitionFactoryImpl
public interface VariableDefinitionFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VariableDefinition
createGlobalVariable(@NotNull String key, @NotNull String value)
Create global variable definitionVariableDefinition
createPlanVariable(@NotNull Plan plan, @NotNull String key, @NotNull String value)
Create plan variable definitionVariableDefinition
createVariableForEnvironment(long environmentId, String variableKey, String variableValue)
Create variable for deployment environmentVariableDefinition
createVariableForProject(long projectId, String variableKey, String variableValue)
Create variable for a projectVariableDefinition
createVariableForVersion(long deploymentVersionId, String variableKey, String variableValue)
Create variable for deployment version
-
-
-
Method Detail
-
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:
-
-