public interface VariableDefinitionDao extends BambooObjectDao<VariableDefinition>
Modifier and Type | Method and Description |
---|---|
long |
countAll() |
@NotNull Long |
countAllProjectVariables()
Count all project variables.
|
int |
countVariablesByEnvironmentId(long environmentId)
Count variables associated with deployment environment
|
int |
deleteByDeploymentVersion(@NotNull DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to DeploymentVersions.
|
int |
deleteByEnvironment(@NotNull DeletionSQLAdapter deletionAdapter)
Delete VariableDefinitions related to Environments.
|
int |
deleteByPlan(long planId)
Delete VariableDefinitions related to a plan.
|
int |
deleteByProjectId(long projectId)
Delete VariableDefinitions related to a project.
|
@NotNull Collection<? extends VariableDefinition> |
findAll()
Find all variable definitions
|
@NotNull List<Long> |
findAllProjectIdsUsingProjectVariables() |
@Nullable VariableDefinition |
findById(long id)
Find variable definition of specified id
|
@Nullable VariableDefinition |
findGlobalVariableByKey(@NotNull String key)
Find global variable by its key
|
@NotNull List<VariableDefinition> |
findGlobalVariables()
Find global variable definitions.
|
@Nullable VariableDefinition |
findPlanVariableByKey(@NotNull PlanIdentifier plan,
@NotNull String key)
Find plan variable by its key
|
@NotNull Iterable<VariableDefinition> |
findVariablesByEnvironmentId(long environmentId)
Find variables associated with deployment environment
|
@NotNull List<VariableDefinition> |
findVariablesByPlan(@NotNull long planId) |
@NotNull List<VariableDefinition> |
findVariablesByPlan(@NotNull PlanIdentifier plan)
Find plan variable definitions for a given plan
|
@NotNull List<VariableDefinition> |
findVariablesByProjectId(long projectId)
Find variables associated with a project
|
@NotNull Iterable<VariableDefinition> |
findVariablesByVersionId(long deploymentVersionId)
Find variables associated with deployment version
|
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
@Nullable @Nullable VariableDefinition findById(long id)
id
- id of variable definition@NotNull @NotNull List<VariableDefinition> findGlobalVariables()
@NotNull @NotNull List<Long> findAllProjectIdsUsingProjectVariables()
@NotNull @NotNull Long countAllProjectVariables()
@Nullable @Nullable VariableDefinition findGlobalVariableByKey(@NotNull @NotNull String key)
key
- key which identifies global variable definition@NotNull @NotNull List<VariableDefinition> findVariablesByPlan(@NotNull @NotNull PlanIdentifier plan)
plan
- plan which associated variable definition should be retrieved@Nullable @Nullable VariableDefinition findPlanVariableByKey(@NotNull @NotNull PlanIdentifier plan, @NotNull @NotNull String key)
plan
- plan used to filter variableskey
- key which identifies plan variable definition@NotNull @NotNull Collection<? extends VariableDefinition> findAll()
@NotNull @NotNull List<VariableDefinition> findVariablesByPlan(@NotNull @NotNull long planId)
int countVariablesByEnvironmentId(long environmentId)
environmentId
- id of a deployment environment@NotNull @NotNull Iterable<VariableDefinition> findVariablesByEnvironmentId(long environmentId)
environmentId
- id of a deployment environment@NotNull @NotNull Iterable<VariableDefinition> findVariablesByVersionId(long deploymentVersionId)
deploymentVersionId
- id of a deployment versionint deleteByEnvironment(@NotNull @NotNull DeletionSQLAdapter deletionAdapter)
deletionAdapter
- DeletionSQLAdapter.getInClause()
int deleteByDeploymentVersion(@NotNull @NotNull DeletionSQLAdapter deletionAdapter)
deletionAdapter
- int deleteByPlan(long planId)
planId
- long countAll()
@NotNull @NotNull List<VariableDefinition> findVariablesByProjectId(long projectId)
projectId
- id of a projectint deleteByProjectId(long projectId)
projectId
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.