|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VariableDefinitionManager
Method Summary | |
---|---|
void |
deleteVariableDefinition(long id)
Delete variable definition |
void |
deleteVariableDefinition(VariableDefinition variableDefinition)
Delete variable definition |
void |
deleteVariablesForPlan(Plan plan)
Removes variable definitions form specified plan |
VariableDefinition |
findVariableDefinition(long id)
Find variable definition of specified id |
java.util.List<VariableDefinition> |
getGlobalNotOverriddenVariables(Plan plan)
Get list of all global variables that are not overridden by plan variables for a given plan |
java.util.Map<java.lang.String,VariableDefinitionContext> |
getGlobalVariableDefinitionMap(java.util.Map<java.lang.String,java.lang.String> manualVariables)
Prepare effective variables map - variables are set and optionally overridden (if set in later stage) in following order global manual |
java.util.List<VariableDefinition> |
getGlobalVariables()
Get list of all global variables |
java.util.List<VariableDefinition> |
getPlanVariables(Plan plan)
Get list of plan variables associated with a given plan |
java.util.Map<java.lang.String,java.lang.String> |
getSimpleVariableMapByType(VariableContext variableContext,
VariableType variableType)
Filter variable context by variable type and return as simple key/value map |
VariableContext |
getVariableContext(java.util.Map<java.lang.String,java.lang.String> variables)
Create variable context for manual variables based on simple key/value map This context contains *ONLY* manually overridden variables (used for passing manual changes set on chain level to job level contexts) |
java.util.Map<java.lang.String,VariableDefinitionContext> |
getVariableDefinitionMap(Plan plan,
java.util.Map<java.lang.String,java.lang.String> manualVariables)
Prepare effective variables map - variables are set and optionally overridden (if set in later stage) in following order global plan job (if will be supported) manual |
void |
saveVariableDefinition(VariableDefinition variableDefinition)
Save variable definition |
Method Detail |
---|
@Nullable VariableDefinition findVariableDefinition(long id)
id
- id of variable definition
void saveVariableDefinition(@NotNull VariableDefinition variableDefinition)
variableDefinition
- variable definition to be savedvoid deleteVariableDefinition(@NotNull VariableDefinition variableDefinition)
variableDefinition
- variable definition to be deletedvoid deleteVariableDefinition(long id)
id
- id of VariableDefinition
object@NotNull java.util.List<VariableDefinition> getGlobalVariables()
@NotNull java.util.List<VariableDefinition> getPlanVariables(@NotNull Plan plan)
plan
- Plan whose associated variables should be returned
@NotNull java.util.Map<java.lang.String,java.lang.String> getSimpleVariableMapByType(@NotNull VariableContext variableContext, @NotNull VariableType variableType)
variableContext
- variableType
-
@NotNull VariableContext getVariableContext(@Nullable java.util.Map<java.lang.String,java.lang.String> variables)
variables
-
@NotNull java.util.Map<java.lang.String,VariableDefinitionContext> getGlobalVariableDefinitionMap(@Nullable java.util.Map<java.lang.String,java.lang.String> manualVariables)
manualVariables
-
@NotNull java.util.Map<java.lang.String,VariableDefinitionContext> getVariableDefinitionMap(@NotNull Plan plan, @Nullable java.util.Map<java.lang.String,java.lang.String> manualVariables)
plan
- manualVariables
-
void deleteVariablesForPlan(@NotNull Plan plan)
plan
- @NotNull java.util.List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull Plan plan)
plan
- Plan whose associated variables should be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |