public class VariableDefinitionAccessorImpl extends Object implements EncryptedVariableDefinitionAccessor
| Constructor and Description |
|---|
VariableDefinitionAccessorImpl(VariableDefinitionDao variableDefinitionDao) |
| Modifier and Type | Method and Description |
|---|---|
Long |
countAllProjectsVariables()
Count all project variables.
|
int |
countDeploymentEnvironmentVariables(long environmentId)
Count list of environment variables associated with a given deployment environment
|
List<Long> |
findAllProjectsIdsUsingProjectVariables()
Get list of all project variables
|
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)
Get list of all global variables that are not overridden by plan or project variables for a given plan
|
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
|
public VariableDefinitionAccessorImpl(VariableDefinitionDao variableDefinitionDao)
@Nullable public VariableDefinition findVariableDefinition(long id)
VariableDefinitionAccessorfindVariableDefinition in interface VariableDefinitionAccessorid - id of variable definition@NotNull public List<VariableDefinition> getGlobalVariables()
VariableDefinitionAccessorgetGlobalVariables in interface VariableDefinitionAccessor@NotNull public List<Long> findAllProjectsIdsUsingProjectVariables()
VariableDefinitionAccessorfindAllProjectsIdsUsingProjectVariables in interface VariableDefinitionAccessor@NotNull public Long countAllProjectsVariables()
VariableDefinitionAccessorcountAllProjectsVariables in interface VariableDefinitionAccessor@Nullable public VariableDefinition getGlobalVariableByKey(String key)
VariableDefinitionAccessorgetGlobalVariableByKey in interface VariableDefinitionAccessorkey - of the variable@Nullable public VariableDefinition getPlanVariableByKey(@NotNull PlanIdentifier plan, @NotNull String key)
VariableDefinitionAccessorgetPlanVariableByKey in interface VariableDefinitionAccessorplan - variable belongs tokey - of variable@NotNull public List<VariableDefinition> getPlanVariables(@NotNull PlanIdentifier plan)
VariableDefinitionAccessorgetPlanVariables in interface VariableDefinitionAccessorplan - Plan whose associated variables should be returnedpublic int countDeploymentEnvironmentVariables(long environmentId)
VariableDefinitionAccessorcountDeploymentEnvironmentVariables in interface VariableDefinitionAccessorenvironmentId - id of Deployment environment@NotNull public List<VariableDefinition> getDeploymentEnvironmentVariables(long environmentId)
VariableDefinitionAccessorgetDeploymentEnvironmentVariables in interface VariableDefinitionAccessorenvironmentId - id of Deployment environment@NotNull public List<VariableDefinition> getDeploymentVersionVariables(long deploymentVersionId)
VariableDefinitionAccessorgetDeploymentVersionVariables in interface VariableDefinitionAccessordeploymentVersionId - id of Deployment environment@NotNull public List<VariableDefinition> getProjectVariables(long projectId)
VariableDefinitionAccessorgetProjectVariables in interface VariableDefinitionAccessorprojectId - id of a Project@NotNull public List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull long projectId)
VariableDefinitionAccessorgetGlobalNotOverriddenVariables in interface VariableDefinitionAccessorprojectId - id of a project@NotNull public List<VariableDefinition> getGlobalNotOverriddenVariables(@NotNull PlanIdentifier plan)
VariableDefinitionAccessorgetGlobalNotOverriddenVariables in interface VariableDefinitionAccessorplan - Plan whose associated variables should be used@NotNull public List<VariableDefinition> getInheritedVariables(@NotNull PlanIdentifier plan)
VariableDefinitionAccessorgetInheritedVariables in interface VariableDefinitionAccessor@NotNull public List<VariableDefinition> getInheritedNotOverriddenVariables(@NotNull PlanIdentifier plan)
VariableDefinitionAccessorgetInheritedNotOverriddenVariables in interface VariableDefinitionAccessor@NotNull public List<VariableDefinition> getGlobalNotOverriddenEnvironmentVariables(long environmentId)
getGlobalNotOverriddenEnvironmentVariables in interface VariableDefinitionAccessor@NotNull public Map<String,String> getSimpleVariableMapByType(@NotNull VariableContext variableContext, @NotNull VariableType variableType)
VariableDefinitionAccessorgetSimpleVariableMapByType in interface VariableDefinitionAccessorCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.