Package com.atlassian.bamboo.variable
Class VariableContextBuilderImpl
- java.lang.Object
-
- com.atlassian.bamboo.variable.VariableContextBuilderImpl
-
- All Implemented Interfaces:
VariableContextBuilder
public class VariableContextBuilderImpl extends Object implements VariableContextBuilder
-
-
Constructor Summary
Constructors Constructor Description VariableContextBuilderImpl(VariableDefinitionManager variableDefinitionManager)
-
Method Summary
-
-
-
Constructor Detail
-
VariableContextBuilderImpl
public VariableContextBuilderImpl(VariableDefinitionManager variableDefinitionManager)
-
-
Method Detail
-
enforcePasswordMasking
public VariableContextBuilder enforcePasswordMasking()
- Specified by:
enforcePasswordMasking
in interfaceVariableContextBuilder
-
excludePasswordVariables
public VariableContextBuilder excludePasswordVariables()
- Specified by:
excludePasswordVariables
in interfaceVariableContextBuilder
-
addManualVariables
public VariableContextBuilder addManualVariables(@Nullable @Nullable Map<String,String> input)
- Specified by:
addManualVariables
in interfaceVariableContextBuilder
-
add
public VariableContextBuilder add(Iterable<VariableDefinition> input)
- Specified by:
add
in interfaceVariableContextBuilder
-
add
public VariableContextBuilder add(Map<String,VariableDefinitionContext> input)
- Specified by:
add
in interfaceVariableContextBuilder
-
addFromSubstitutionContext
public VariableContextBuilder addFromSubstitutionContext(Iterable<? extends VariableSubstitutionContext> input)
- Specified by:
addFromSubstitutionContext
in interfaceVariableContextBuilder
-
addFromVariableContext
public VariableContextBuilder addFromVariableContext(@Nullable @Nullable VariableContext context)
- Specified by:
addFromVariableContext
in interfaceVariableContextBuilder
-
addGlobalVariables
public VariableContextBuilder addGlobalVariables()
- Specified by:
addGlobalVariables
in interfaceVariableContextBuilder
-
addProjectVariables
public VariableContextBuilder addProjectVariables(long projectId)
- Specified by:
addProjectVariables
in interfaceVariableContextBuilder
-
addPlanAndProjectVariables
public VariableContextBuilder addPlanAndProjectVariables(@Nullable @Nullable ImmutablePlan plan)
- Specified by:
addPlanAndProjectVariables
in interfaceVariableContextBuilder
-
addPlanVariables
public VariableContextBuilder addPlanVariables(@Nullable @Nullable ImmutablePlan plan)
- Specified by:
addPlanVariables
in interfaceVariableContextBuilder
-
addVariablesForEnvironment
public VariableContextBuilder addVariablesForEnvironment(@Nullable @Nullable Long environmentId)
- Specified by:
addVariablesForEnvironment
in interfaceVariableContextBuilder
-
addVariablesForVersion
public VariableContextBuilder addVariablesForVersion(@Nullable @Nullable Long deploymentVersionId)
- Specified by:
addVariablesForVersion
in interfaceVariableContextBuilder
-
addParentPlanVariablesIfRequired
public VariableContextBuilder addParentPlanVariablesIfRequired(@Nullable @Nullable ImmutablePlan plan)
- Specified by:
addParentPlanVariablesIfRequired
in interfaceVariableContextBuilder
-
addManualAndResultVariablesFromContext
public VariableContextBuilder addManualAndResultVariablesFromContext(@NotNull @NotNull VariableContext variableContext)
- Specified by:
addManualAndResultVariablesFromContext
in interfaceVariableContextBuilder
-
parentContext
public VariableContextBuilder parentContext(@Nullable @Nullable VariableContext variableContext)
Description copied from interface:VariableContextBuilder
Construct job's variable context by referencing plan's variable context- Specified by:
parentContext
in interfaceVariableContextBuilder
- Parameters:
variableContext
- parent context
-
buildContext
public VariableContext buildContext()
- Specified by:
buildContext
in interfaceVariableContextBuilder
-
buildMap
public Map<String,VariableDefinitionContext> buildMap()
- Specified by:
buildMap
in interfaceVariableContextBuilder
-
-