public interface EnvironmentDao
Modifier and Type | Method and Description |
---|---|
long |
countAll() |
void |
delete(MutableEnvironment environment)
Delete a specific Deployment Environment.
|
List<MutableEnvironment> |
findAll() |
List<? extends MutableEnvironment> |
findAll(int firstResult,
int pageSize) |
List<Pair<Requirement,MutableEnvironment>> |
findEnvironmentsByRequirementKey(String requirementKey)
Get requirements to environment mapping by requirement key.
|
MutableEnvironment |
getEnvironment(DeploymentKey environmentKey)
Gets specific Environment by key
|
MutableEnvironment |
getEnvironment(long environmentId)
Gets specific Environment by ID
|
int |
getEnvironmentCount() |
int |
getEnvironmentCountForProject(long deploymentProjectId) |
List<MutableEnvironment> |
getEnvironmentsForDeploymentProject(long deploymentProjectId)
Retrieve all environments for a Deployment Project
|
int |
getLastEnvironmentPosition(long deploymentProjectId) |
boolean |
isEnvironmentNameConflicting(MutableDeploymentProject deploymentProject,
String name)
Check if there is currently an environment with the given name in the given deployment Project.
|
void |
save(MutableEnvironment environment)
Save a new or existing environment.
|
<E extends MutableEnvironment> |
saveAll(Collection<E> environments)
Save all items on the list;
|
@Nullable MutableEnvironment getEnvironment(long environmentId)
environmentId
- ID of the environment your looking for.@Nullable MutableEnvironment getEnvironment(@NotNull DeploymentKey environmentKey)
environmentKey
- ket of the environment to findvoid save(@NotNull MutableEnvironment environment)
environment
- to save.<E extends MutableEnvironment> void saveAll(@NotNull Collection<E> environments)
environments
- @NotNull List<MutableEnvironment> getEnvironmentsForDeploymentProject(long deploymentProjectId)
deploymentProjectId
- of the Deployment Projectvoid delete(@NotNull MutableEnvironment environment)
environment
- boolean isEnvironmentNameConflicting(@NotNull MutableDeploymentProject deploymentProject, @NotNull String name)
deploymentProject
- the project to check environments ofname
- to check for conflictList<MutableEnvironment> findAll()
int getLastEnvironmentPosition(long deploymentProjectId)
int getEnvironmentCount()
Environment
sint getEnvironmentCountForProject(long deploymentProjectId)
deploymentProjectId
- Environment
defined for the projectlong countAll()
List<? extends MutableEnvironment> findAll(int firstResult, int pageSize)
@NotNull List<Pair<Requirement,MutableEnvironment>> findEnvironmentsByRequirementKey(@NotNull String requirementKey)
requirementKey
- on which environments relyCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.