|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VariableDefinitionManager
Method Summary | |
---|---|
VariableContextBuilder |
createVariableContextBuilder()
|
void |
deleteVariableDefinition(long id)
Deprecated. since 4.0 use deleteVariableDefinition(VariableDefinition) |
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(ImmutablePlan 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)
Deprecated. since 4.0 use createVariableContextBuilder() instead |
java.util.List<VariableDefinition> |
getGlobalVariables()
Get list of all global variables |
java.util.List<VariableDefinition> |
getPlanVariables(PlanIdentifier 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)
Deprecated. since 4.0 use createVariableContextBuilder() instead |
java.util.Map<java.lang.String,VariableDefinitionContext> |
getVariableDefinitionMap(Plan plan,
java.util.Map<java.lang.String,java.lang.String> manualVariables)
Deprecated. since 4.0 use createVariableContextBuilder() instead |
void |
saveVariableDefinition(VariableDefinition variableDefinition)
Save variable definition |
void |
saveVariableDefinition(VariableDefinition variableDefinition,
java.lang.String previousValue)
Save variable definition |
void |
saveVariableDefinitions(java.util.List<VariableDefinition> variableDefinitions)
Save all variable definitions on the list |
Method Detail |
---|
@Nullable VariableDefinition findVariableDefinition(long id)
id
- id of variable definition
void saveVariableDefinition(@NotNull VariableDefinition variableDefinition)
variableDefinition
- variable definition to be savedvoid saveVariableDefinition(@NotNull VariableDefinition variableDefinition, @NotNull java.lang.String previousValue)
variableDefinition
- variable definition to be savedpreviousValue
- previous variable valuevoid deleteVariableDefinition(@NotNull VariableDefinition variableDefinition)
variableDefinition
- variable definition to be deleted@Deprecated void deleteVariableDefinition(long id)
deleteVariableDefinition(VariableDefinition)
id
- id of VariableDefinition
object@NotNull java.util.List<VariableDefinition> getGlobalVariables()
@NotNull java.util.List<VariableDefinition> getPlanVariables(@NotNull PlanIdentifier 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
-
@Deprecated @NotNull VariableContext getVariableContext(@Nullable java.util.Map<java.lang.String,java.lang.String> variables)
createVariableContextBuilder()
instead
variables
-
@Deprecated @NotNull java.util.Map<java.lang.String,VariableDefinitionContext> getGlobalVariableDefinitionMap(@Nullable java.util.Map<java.lang.String,java.lang.String> manualVariables)
createVariableContextBuilder()
instead
manualVariables
-
@Deprecated @NotNull java.util.Map<java.lang.String,VariableDefinitionContext> getVariableDefinitionMap(@NotNull Plan plan, @Nullable java.util.Map<java.lang.String,java.lang.String> manualVariables)
createVariableContextBuilder()
instead
plan
- manualVariables
-
void deleteVariablesForPlan(@NotNull Plan plan)
plan
- @NotNull java.util.List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull ImmutablePlan plan)
plan
- Plan whose associated variables should be used
void saveVariableDefinitions(java.util.List<VariableDefinition> variableDefinitions)
@NotNull VariableContextBuilder createVariableContextBuilder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |