|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnvironmentDao
Dao for interacting with Environments in DB.
Method Summary | ||
---|---|---|
void |
delete(MutableEnvironment environment)
Delete a specific Deployment Environment. |
|
java.util.List<MutableEnvironment> |
findAll()
|
|
MutableEnvironment |
getEnvironment(DeploymentKey environmentKey)
Gets specific Environment by key |
|
MutableEnvironment |
getEnvironment(long environmentId)
Gets specific Environment by ID |
|
int |
getEnvironmentCount()
|
|
int |
getEnvironmentCountForProject(long deploymentProjectId)
|
|
java.util.List<MutableEnvironment> |
getEnvironmentsForDeploymentProject(long deploymentProjectId)
Retrieve all environments for a Deployment Project |
|
int |
getLastEnvironmentPosition(long deploymentProjectId)
|
|
boolean |
isEnvironmentNameConflicting(MutableDeploymentProject deploymentProject,
java.lang.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. |
|
|
saveAll(java.util.Collection<E> environments)
Save all items on the list; |
Method Detail |
---|
@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 find
void save(@NotNull MutableEnvironment environment)
environment
- to save.<E extends MutableEnvironment> void saveAll(@NotNull java.util.Collection<E> environments)
environments
- @NotNull java.util.List<MutableEnvironment> getEnvironmentsForDeploymentProject(long deploymentProjectId)
deploymentProjectId
- of the Deployment Project
void delete(@NotNull MutableEnvironment environment)
environment
- boolean isEnvironmentNameConflicting(@NotNull MutableDeploymentProject deploymentProject, @NotNull java.lang.String name)
deploymentProject
- the project to check environments ofname
- to check for conflict
java.util.List<MutableEnvironment> findAll()
int getLastEnvironmentPosition(long deploymentProjectId)
int getEnvironmentCount()
Environment
sint getEnvironmentCountForProject(long deploymentProjectId)
deploymentProjectId
-
Environment
defined for the project
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |