Package com.atlassian.bamboo.variable
Class VariableDefinitionFactoryImpl
- java.lang.Object
-
- com.atlassian.bamboo.variable.VariableDefinitionFactoryImpl
-
- All Implemented Interfaces:
VariableDefinitionFactory
public class VariableDefinitionFactoryImpl extends Object implements VariableDefinitionFactory
-
-
Constructor Summary
Constructors Constructor Description VariableDefinitionFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete 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 versionId, String variableKey, String variableValue)
Create variable for deployment version
-
-
-
Method Detail
-
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:
-
-