@Internal
public interface DeploymentProjectDao
Modifier and Type | Method and Description |
---|---|
long |
countAllDeploymentProjects() |
MutableDeploymentProject |
createNewDeploymentProjectInstance() |
MutableVersionNamingScheme |
createNewVersionNamingSchemeInstance() |
void |
delete(MutableDeploymentProject deploymentProject)
Delete DeploymentProject and related DeploymentProjectItems
|
void |
delete(MutableDeploymentProjectItem deploymentProjectItem)
Delete DeploymentProjectItem
|
void |
delete(MutableVersionNamingScheme versionNamingScheme)
Delete the version naming Scheme
|
boolean |
doesArtifactProjectItemExist(long deploymentProjectId,
long artifactId)
Check for existence of DeploymentProjectItem by DB id of the DeploymentProject and ArtifactDefinition
|
MutableDeploymentProject |
findDeploymentProjectByName(String name) |
MutableDeploymentProject |
findDeploymentProjectByOid(BambooEntityOid oid) |
Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState) |
List<MutableDeploymentProject> |
findDeploymentProjectsRelatedToArtifact(long artifactId) |
List<MutableDeploymentProject> |
getAllDeploymentProjects() |
List<MutableDeploymentProject> |
getAllDeploymentProjects(int firstResult,
int maxResults) |
MutableDeploymentProjectItem |
getArtifactProjectItem(long deploymentProjectId,
long artifactId)
Get DeploymentProjectItem by DB id of the DeploymentProject and ArtifactDefinition
|
MutableDeploymentProject |
getDeploymentProject(DeploymentKey key)
Get DeploymentProject by key
|
MutableDeploymentProject |
getDeploymentProject(long deploymentProjectId)
Get DeploymentProject by DB id
|
int |
getDeploymentProjectCount() |
MutableDeploymentProject |
getDeploymentProjectForEnvironment(long environmentId)
Get DeploymentProject associated with Environment
|
MutableDeploymentProject |
getDeploymentProjectForVersion(long versionId)
Get DeploymentProject associated with Version
|
List<MutableDeploymentProject> |
getDeploymentProjectsReferencingArtifact(long artifactId)
Get all deployment projects that contain a version that uses specified artifact
|
List<MutableDeploymentProject> |
getDeploymentProjectsRelatedToPlan(PlanKey planKey)
Get DeploymentProjects linked to Plan with planKey.
|
List<MutableDeploymentProject> |
getDeploymentProjectsRelatedToPlans(Set<PlanKey> planKeyFamily)
Get DeploymentProjects linked to Plan identified with any of plan keys.
|
BambooEntityOid |
getMaxDeploymentProjectOid(int serverKey) |
MutableDeploymentProjectItem |
getProjectItem(long deploymentProjectItemId)
Get DeploymentProjectItem by DB id
|
List<MutableDeploymentProjectItem> |
getProjectItems(long deploymentProjectId)
Get list of DeploymentProject items
|
MutableVersionNamingScheme |
getVersionNamingSchemeForProject(long projectId)
Get the version naming configuration for a specific project
|
boolean |
isDeploymentProjectNameConflicting(String name)
Deployment Project Names need to be unique within the system.
|
void |
removeAbstractProjectItems() |
void |
save(MutableDeploymentProject deploymentProject)
Save DeploymentProject
|
void |
save(MutableDeploymentProjectItem deploymentProjectItem)
Save DeploymentProjectItem
|
void |
save(MutableVersionNamingScheme versionNamingScheme)
Save the version naming Scheme
|
long countAllDeploymentProjects()
@NotNull List<MutableDeploymentProject> getAllDeploymentProjects()
@NotNull List<MutableDeploymentProject> getAllDeploymentProjects(int firstResult, int maxResults)
firstResult
starts from 0@NotNull List<MutableDeploymentProject> getDeploymentProjectsRelatedToPlan(@NotNull PlanKey planKey)
planKey
- of the linked Plan@NotNull List<MutableDeploymentProject> getDeploymentProjectsRelatedToPlans(@NotNull Set<PlanKey> planKeyFamily)
planKeyFamily
- set of plan keys, usually it is set of all branch keys + master plan key@NotNull List<MutableDeploymentProject> findDeploymentProjectsRelatedToArtifact(long artifactId)
@Nullable MutableDeploymentProject getDeploymentProject(long deploymentProjectId)
@Nullable MutableDeploymentProject getDeploymentProject(@NotNull DeploymentKey key)
void save(MutableDeploymentProject deploymentProject)
void delete(MutableDeploymentProject deploymentProject)
@NotNull List<MutableDeploymentProjectItem> getProjectItems(long deploymentProjectId)
@Nullable MutableDeploymentProjectItem getProjectItem(long deploymentProjectItemId)
@Nullable MutableDeploymentProjectItem getArtifactProjectItem(long deploymentProjectId, long artifactId)
boolean doesArtifactProjectItemExist(long deploymentProjectId, long artifactId)
void save(MutableDeploymentProjectItem deploymentProjectItem)
void delete(MutableDeploymentProjectItem deploymentProjectItem)
boolean isDeploymentProjectNameConflicting(@NotNull String name)
name
- to check@Nullable MutableDeploymentProject getDeploymentProjectForEnvironment(long environmentId)
environmentId
- Environment id@Nullable MutableDeploymentProject getDeploymentProjectForVersion(long versionId)
versionId
- Version id@Nullable MutableVersionNamingScheme getVersionNamingSchemeForProject(long projectId)
projectId
- of the projectvoid save(MutableVersionNamingScheme versionNamingScheme)
versionNamingScheme
- to savevoid delete(MutableVersionNamingScheme versionNamingScheme)
versionNamingScheme
- to deleteList<MutableDeploymentProject> getDeploymentProjectsReferencingArtifact(long artifactId)
artifactId
- int getDeploymentProjectCount()
@NotNull BambooEntityOid getMaxDeploymentProjectOid(int serverKey)
@Nullable MutableDeploymentProject findDeploymentProjectByOid(BambooEntityOid oid)
@Nullable MutableDeploymentProject findDeploymentProjectByName(String name)
@NotNull MutableDeploymentProject createNewDeploymentProjectInstance()
@NotNull MutableVersionNamingScheme createNewVersionNamingSchemeInstance()
@NotNull Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
void removeAbstractProjectItems()
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.