com.atlassian.bamboo.build
Class VariableBuilderBeanImpl

java.lang.Object
  extended by com.atlassian.bamboo.build.VariableBuilderBeanImpl
All Implemented Interfaces:
VariableBuilderBean

public class VariableBuilderBeanImpl
extends java.lang.Object
implements VariableBuilderBean

Implementation builds a Map of Bamboo variables given a BuildContext that contains Global, capability, custom build data, build number and build key values as variables.


Constructor Summary
VariableBuilderBeanImpl()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> filterVariablesByName(BuildContext buildContext, java.util.Set<java.lang.String> variableNames)
          Returns a map of Bamboo variables given the BuildContext and a Set of variableNames to filter

Note that keys are not prefixed with "bamboo."

 java.util.Map<java.lang.String,java.lang.String> getVariables()
          Retrieve all of the available variables
 java.util.Map<java.lang.String,java.lang.String> getVariables(BuildContext buildContext)
          Returns a map of Bamboo variables given the BuildContext Note that keys are not prefixed with "bamboo."
 void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
           
 void setCapabilityContext(CapabilityContext capabilityContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableBuilderBeanImpl

public VariableBuilderBeanImpl()
Method Detail

setAdministrationConfigurationManager

public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)

setCapabilityContext

public void setCapabilityContext(CapabilityContext capabilityContext)

filterVariablesByName

@NotNull
public java.util.Map<java.lang.String,java.lang.String> filterVariablesByName(@Nullable
                                                                                      BuildContext buildContext,
                                                                                      @Nullable
                                                                                      java.util.Set<java.lang.String> variableNames)
Description copied from interface: VariableBuilderBean
Returns a map of Bamboo variables given the BuildContext and a Set of variableNames to filter

Note that keys are not prefixed with "bamboo."

Specified by:
filterVariablesByName in interface VariableBuilderBean
variableNames - if null this method will return all variables available
Returns:
variables

getVariables

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getVariables()
Description copied from interface: VariableBuilderBean
Retrieve all of the available variables

Specified by:
getVariables in interface VariableBuilderBean
Returns:
variables

getVariables

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getVariables(@Nullable
                                                                             BuildContext buildContext)
Description copied from interface: VariableBuilderBean
Returns a map of Bamboo variables given the BuildContext Note that keys are not prefixed with "bamboo."

Specified by:
getVariables in interface VariableBuilderBean
Returns:
map


Copyright © 2011 Atlassian. All Rights Reserved.