@Internal
public interface DeploymentProjectDao
Modifier and Type | Method and Description |
---|---|
long |
countAllDeploymentProjects() |
@NotNull MutableDeploymentProject |
createNewDeploymentProjectInstance() |
@NotNull 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
|
List<MutableDeploymentProject> |
findAllByIds(Collection<Long> deploymentsIds)
Returns a list of Deployment Projects which id values are in the deploymentsIds collection
|
@Nullable MutableDeploymentProject |
findDeploymentProjectByName(String name) |
@Nullable MutableDeploymentProject |
findDeploymentProjectByOid(BambooEntityOid oid) |
@NotNull Collection<Long> |
findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState) |
@NotNull List<MutableDeploymentProject> |
findDeploymentProjectsRelatedToArtifact(long artifactId) |
@NotNull Set<Long> |
findSpecsStateIdsReferencedByDeployments() |
@NotNull List<MutableDeploymentProject> |
getAllDeploymentProjects() |
@NotNull List<MutableDeploymentProject> |
getAllDeploymentProjects(int firstResult,
int maxResults) |
@Nullable MutableDeploymentProjectItem |
getArtifactProjectItem(long deploymentProjectId,
long artifactId)
Get DeploymentProjectItem by DB id of the DeploymentProject and ArtifactDefinition
|
@Nullable MutableDeploymentProject |
getDeploymentProject(@NotNull DeploymentKey key)
Get DeploymentProject by key
|
@Nullable MutableDeploymentProject |
getDeploymentProject(long deploymentProjectId)
Get DeploymentProject by DB id
|
int |
getDeploymentProjectCount() |
@Nullable MutableDeploymentProject |
getDeploymentProjectForEnvironment(long environmentId)
Get DeploymentProject associated with Environment
|
@Nullable 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
|
@NotNull List<MutableDeploymentProject> |
getDeploymentProjectsRelatedToPlan(@NotNull PlanKey planKey)
Get DeploymentProjects linked to Plan with planKey.
|
@NotNull List<MutableDeploymentProject> |
getDeploymentProjectsRelatedToPlans(@NotNull Set<PlanKey> planKeyFamily)
Get DeploymentProjects linked to Plan identified with any of plan keys.
|
@NotNull BambooEntityOid |
getMaxDeploymentProjectOid(int serverKey) |
List<Pair<MutableDeploymentProject,MutableEnvironment>> |
getPaginatedDeploymentsWithEnvironments(int start,
int limit,
String filter)
Deprecated.
|
List<Pair<Long,Long>> |
getPaginatedDeploymentsWithEnvironmentsOnlyIds(int start,
int limit,
String filter)
Retrieves paginated list of pairs of MutableDeploymentProject.id and MutableEnvironment.id ordered by
InternalDeploymentProject.getName() and InternalEnvironment.getPosition() . |
@Nullable MutableDeploymentProjectItem |
getProjectItem(long deploymentProjectItemId)
Get DeploymentProjectItem by DB id
|
@NotNull List<MutableDeploymentProjectItem> |
getProjectItems(long deploymentProjectId)
Get list of DeploymentProject items
|
@Nullable MutableVersionNamingScheme |
getVersionNamingSchemeForProject(long projectId)
Get the version naming configuration for a specific project
|
boolean |
isDeploymentProjectNameConflicting(@NotNull 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 @NotNull List<MutableDeploymentProject> getAllDeploymentProjects()
@NotNull @NotNull List<MutableDeploymentProject> getAllDeploymentProjects(int firstResult, int maxResults)
firstResult
starts from 0@NotNull @NotNull List<MutableDeploymentProject> getDeploymentProjectsRelatedToPlan(@NotNull @NotNull PlanKey planKey)
planKey
- of the linked Plan@NotNull @NotNull List<MutableDeploymentProject> getDeploymentProjectsRelatedToPlans(@NotNull @NotNull Set<PlanKey> planKeyFamily)
planKeyFamily
- set of plan keys, usually it is set of all branch keys + master plan key@NotNull @NotNull List<MutableDeploymentProject> findDeploymentProjectsRelatedToArtifact(long artifactId)
@Nullable @Nullable MutableDeploymentProject getDeploymentProject(long deploymentProjectId)
@Nullable @Nullable MutableDeploymentProject getDeploymentProject(@NotNull @NotNull DeploymentKey key)
void save(MutableDeploymentProject deploymentProject)
void delete(MutableDeploymentProject deploymentProject)
@NotNull @NotNull List<MutableDeploymentProjectItem> getProjectItems(long deploymentProjectId)
@Nullable @Nullable MutableDeploymentProjectItem getProjectItem(long deploymentProjectItemId)
@Nullable @Nullable MutableDeploymentProjectItem getArtifactProjectItem(long deploymentProjectId, long artifactId)
boolean doesArtifactProjectItemExist(long deploymentProjectId, long artifactId)
void save(MutableDeploymentProjectItem deploymentProjectItem)
void delete(MutableDeploymentProjectItem deploymentProjectItem)
boolean isDeploymentProjectNameConflicting(@NotNull @NotNull String name)
name
- to check@Nullable @Nullable MutableDeploymentProject getDeploymentProjectForEnvironment(long environmentId)
environmentId
- Environment id@Nullable @Nullable MutableDeploymentProject getDeploymentProjectForVersion(long versionId)
versionId
- Version id@Nullable @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 @NotNull BambooEntityOid getMaxDeploymentProjectOid(int serverKey)
@Nullable @Nullable MutableDeploymentProject findDeploymentProjectByOid(BambooEntityOid oid)
@Nullable @Nullable MutableDeploymentProject findDeploymentProjectByName(String name)
@NotNull @NotNull MutableDeploymentProject createNewDeploymentProjectInstance()
@NotNull @NotNull MutableVersionNamingScheme createNewVersionNamingSchemeInstance()
@NotNull @NotNull Collection<Long> findDeploymentProjectsInOtherStates(VcsLocationBambooSpecsState specsState)
@NotNull @NotNull Set<Long> findSpecsStateIdsReferencedByDeployments()
void removeAbstractProjectItems()
@Deprecated List<Pair<MutableDeploymentProject,MutableEnvironment>> getPaginatedDeploymentsWithEnvironments(int start, int limit, String filter)
getPaginatedDeploymentsWithEnvironmentsOnlyIds(int, int, String)
InternalDeploymentProject.getName()
and InternalEnvironment.getPosition()
start
- limit
- filter
- List<Pair<Long,Long>> getPaginatedDeploymentsWithEnvironmentsOnlyIds(int start, int limit, String filter)
InternalDeploymentProject.getName()
and InternalEnvironment.getPosition()
.
If DeploymentProject has 0 Environments then there will be one pair with DeploymentProject id and second value as a null.start
- limit
- filter
- List<MutableDeploymentProject> findAllByIds(Collection<Long> deploymentsIds)
deploymentsIds
- list of id valuesCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.