@PublicApi
public interface VariableDefinitionAccessor
Modifier and Type | Method and Description |
---|---|
int |
countDeploymentEnvironmentVariables(long environmentId)
Count list of environment variables associated with a given deployment environment
|
VariableDefinition |
findVariableDefinition(long id)
Find variable definition of specified id
|
List<VariableDefinition> |
getDeploymentEnvironmentVariables(long environmentId)
Get list of environment variables associated with a given deployment environment
|
List<VariableDefinition> |
getDeploymentVersionVariables(long deploymentVersionId)
Get list of environment variables associated with a given deployment version
|
List<VariableDefinition> |
getGlobalNotOverriddenEnvironmentVariables(long environmentId) |
List<VariableDefinition> |
getGlobalNotOverriddenVariables(long projectId)
Get list of all global variables that are not overridden by project variables for a given project
|
List<VariableDefinition> |
getGlobalNotOverriddenVariables(PlanIdentifier plan)
Deprecated.
since 7.1 use
getInheritedNotOverriddenVariables(PlanIdentifier) instead |
VariableDefinition |
getGlobalVariableByKey(String key)
Retrieves a specific global variable by key.
|
List<VariableDefinition> |
getGlobalVariables()
Get list of all global variables
|
List<VariableDefinition> |
getInheritedNotOverriddenVariables(PlanIdentifier plan)
Get list of all variables that are inherited by plan, that is all global, project and (in case of branches) default plan variables that are not overridden by a plan or plan branch.
|
List<VariableDefinition> |
getInheritedVariables(PlanIdentifier plan)
Get list of all variables that are inherited by plan, that is all global, project and (in case of branches) default plan variables.
|
VariableDefinition |
getPlanVariableByKey(PlanIdentifier plan,
String key)
Retrieves a specific variable for the plan with the given key
|
List<VariableDefinition> |
getPlanVariables(PlanIdentifier plan)
Get list of plan variables associated with a given plan
|
List<VariableDefinition> |
getProjectVariables(long projectId)
Get list of environment variables associated with a given project
|
Map<String,String> |
getSimpleVariableMapByType(VariableContext variableContext,
VariableType variableType)
Filter variable context by variable type and return as simple key/value map
|
@Nullable VariableDefinition findVariableDefinition(long id)
id
- id of variable definition@NotNull List<VariableDefinition> getGlobalVariables()
@Nullable VariableDefinition getGlobalVariableByKey(String key)
key
- of the variable@Nullable VariableDefinition getPlanVariableByKey(@NotNull PlanIdentifier plan, @NotNull String key)
plan
- variable belongs tokey
- of variable@NotNull List<VariableDefinition> getPlanVariables(@NotNull PlanIdentifier plan)
plan
- Plan whose associated variables should be returnedint countDeploymentEnvironmentVariables(long environmentId)
environmentId
- id of Deployment environment@NotNull List<VariableDefinition> getDeploymentEnvironmentVariables(long environmentId)
environmentId
- id of Deployment environment@NotNull List<VariableDefinition> getDeploymentVersionVariables(long deploymentVersionId)
deploymentVersionId
- id of Deployment environment@Deprecated @NotNull List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull PlanIdentifier plan)
getInheritedNotOverriddenVariables(PlanIdentifier)
insteadplan
- Plan whose associated variables should be used@NotNull List<VariableDefinition> getInheritedVariables(@NotNull PlanIdentifier plan)
@NotNull List<VariableDefinition> getInheritedNotOverriddenVariables(@NotNull PlanIdentifier plan)
@NotNull List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull long projectId)
projectId
- id of a project@NotNull List<VariableDefinition> getGlobalNotOverriddenEnvironmentVariables(long environmentId)
@NotNull Map<String,String> getSimpleVariableMapByType(@NotNull VariableContext variableContext, @NotNull VariableType variableType)
variableContext
- variableType
- @NotNull List<VariableDefinition> getProjectVariables(long projectId)
projectId
- id of a ProjectCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.