com.atlassian.bamboo.variable
Class VariableDefinitionFactoryImpl

java.lang.Object
  extended by com.atlassian.bamboo.variable.VariableDefinitionFactoryImpl
All Implemented Interfaces:
VariableDefinitionFactory

public class VariableDefinitionFactoryImpl
extends java.lang.Object
implements VariableDefinitionFactory


Constructor Summary
VariableDefinitionFactoryImpl()
           
 
Method Summary
 VariableDefinition createGlobalVariable(java.lang.String key, java.lang.String value)
          Create global variable definition
 VariableDefinition createPlanVariable(Plan plan, java.lang.String key, java.lang.String value)
          Create plan variable definition
 VariableDefinition createVariableForEnvironment(long environmentId, java.lang.String variableKey, java.lang.String variableValue)
          Create variable for deployment environment
 VariableDefinition createVariableForVersion(long versionId, java.lang.String variableKey, java.lang.String variableValue)
          Create variable for deployment version
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableDefinitionFactoryImpl

public VariableDefinitionFactoryImpl()
Method Detail

createGlobalVariable

public VariableDefinition createGlobalVariable(@NotNull
                                               java.lang.String key,
                                               @NotNull
                                               java.lang.String value)
Description copied from interface: VariableDefinitionFactory
Create global variable definition

Specified by:
createGlobalVariable in interface VariableDefinitionFactory
Parameters:
key - variable key
value - variable value
Returns:
VariableDefinition object

createPlanVariable

public VariableDefinition createPlanVariable(@NotNull
                                             Plan plan,
                                             @NotNull
                                             java.lang.String key,
                                             @NotNull
                                             java.lang.String value)
Description copied from interface: VariableDefinitionFactory
Create plan variable definition

Specified by:
createPlanVariable in interface VariableDefinitionFactory
Parameters:
plan - plan associated with variable
key - variable key
value - variable value
Returns:
VariableDefinition object

createVariableForEnvironment

public VariableDefinition createVariableForEnvironment(long environmentId,
                                                       java.lang.String variableKey,
                                                       java.lang.String variableValue)
Description copied from interface: VariableDefinitionFactory
Create variable for deployment environment

Specified by:
createVariableForEnvironment in interface VariableDefinitionFactory
Returns:

createVariableForVersion

public VariableDefinition createVariableForVersion(long versionId,
                                                   java.lang.String variableKey,
                                                   java.lang.String variableValue)
Description copied from interface: VariableDefinitionFactory
Create variable for deployment version

Specified by:
createVariableForVersion in interface VariableDefinitionFactory
Returns:


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.