|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.variable.VariableDefinitionManagerImpl
public class VariableDefinitionManagerImpl
Constructor Summary | |
---|---|
VariableDefinitionManagerImpl(VariableDefinitionDao variableDefinitionDao,
AuditLogService auditLogService)
|
Method Summary | |
---|---|
VariableContextBuilder |
createVariableContextBuilder()
|
void |
deleteVariableDefinition(long id)
Deprecated. |
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. |
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. |
java.util.Map<java.lang.String,VariableDefinitionContext> |
getVariableDefinitionMap(Plan plan,
java.util.Map<java.lang.String,java.lang.String> manualVariables)
Deprecated. |
void |
remove(VariableDefinition variableDefinition)
|
void |
save(VariableDefinition variableDefinition)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableDefinitionManagerImpl(VariableDefinitionDao variableDefinitionDao, AuditLogService auditLogService)
Method Detail |
---|
@Nullable public VariableDefinition findVariableDefinition(long id)
VariableDefinitionManager
findVariableDefinition
in interface VariableDefinitionManager
id
- id of variable definition
public void saveVariableDefinition(@NotNull VariableDefinition variableDefinition)
VariableDefinitionManager
saveVariableDefinition
in interface VariableDefinitionManager
variableDefinition
- variable definition to be savedpublic void saveVariableDefinition(@NotNull VariableDefinition variableDefinition, @NotNull java.lang.String previousValue)
VariableDefinitionManager
saveVariableDefinition
in interface VariableDefinitionManager
variableDefinition
- variable definition to be savedpreviousValue
- previous variable valuepublic void deleteVariableDefinition(@NotNull VariableDefinition variableDefinition)
VariableDefinitionManager
deleteVariableDefinition
in interface VariableDefinitionManager
variableDefinition
- variable definition to be deleted@Deprecated public void deleteVariableDefinition(long id)
VariableDefinitionManager
deleteVariableDefinition
in interface VariableDefinitionManager
id
- id of VariableDefinition
objectpublic void deleteVariablesForPlan(@NotNull Plan plan)
VariableDefinitionManager
deleteVariablesForPlan
in interface VariableDefinitionManager
@NotNull public java.util.List<VariableDefinition> getGlobalVariables()
VariableDefinitionManager
getGlobalVariables
in interface VariableDefinitionManager
@NotNull public java.util.List<VariableDefinition> getPlanVariables(@NotNull PlanIdentifier plan)
VariableDefinitionManager
getPlanVariables
in interface VariableDefinitionManager
plan
- Plan whose associated variables should be returned
@NotNull public java.util.List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull ImmutablePlan plan)
VariableDefinitionManager
getGlobalNotOverriddenVariables
in interface VariableDefinitionManager
plan
- Plan whose associated variables should be used
@Deprecated @NotNull public java.util.Map<java.lang.String,VariableDefinitionContext> getGlobalVariableDefinitionMap(@Nullable java.util.Map<java.lang.String,java.lang.String> manualVariables)
VariableDefinitionManager
getGlobalVariableDefinitionMap
in interface VariableDefinitionManager
@Deprecated @NotNull public java.util.Map<java.lang.String,VariableDefinitionContext> getVariableDefinitionMap(@NotNull Plan plan, @Nullable java.util.Map<java.lang.String,java.lang.String> manualVariables)
VariableDefinitionManager
getVariableDefinitionMap
in interface VariableDefinitionManager
@NotNull public java.util.Map<java.lang.String,java.lang.String> getSimpleVariableMapByType(@NotNull VariableContext variableContext, @NotNull VariableType variableType)
VariableDefinitionManager
getSimpleVariableMapByType
in interface VariableDefinitionManager
@Deprecated @NotNull public VariableContext getVariableContext(@Nullable java.util.Map<java.lang.String,java.lang.String> variables)
VariableDefinitionManager
getVariableContext
in interface VariableDefinitionManager
@NotNull public VariableContextBuilder createVariableContextBuilder()
createVariableContextBuilder
in interface VariableDefinitionManager
public void remove(VariableDefinition variableDefinition)
public void save(VariableDefinition variableDefinition)
public void saveVariableDefinitions(java.util.List<VariableDefinition> variableDefinitions)
VariableDefinitionManager
saveVariableDefinitions
in interface VariableDefinitionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |