public interface DeploymentVersionDao
Modifier and Type | Method and Description |
---|---|
@NotNull MutableDeploymentVersionStatus |
createNewVersionStatus(long deploymentVersionId,
DeploymentVersionState state,
@NotNull String userName)
Creates a new vesion status for the given deployment version.
|
void |
delete(MutableDeploymentVersion deploymentVersion)
Delete MutableDeploymentVersion
|
int |
deleteForDeploymentProject(long deploymentProjectId)
Delete DeploymentVersion records related to given DeploymentProject.
|
int |
deleteVersionItems(long deploymentVersionId)
Delete DeploymentVersionItem records related to given DeploymentVersion.
|
int |
deleteVersionStatus(long deploymentVersionId)
Delete DeploymentVersionStatus records related to a given version
|
int |
deleteVersionStatuses(@NotNull DeploymentVersionDeletionAdapter deletionAdapter)
Delete DeploymentVersionStatus records related to a given versions
|
List<MutableDeploymentVersion> |
findLatestKnownVersionsForEnvironmentsOfDeploymentProject(long deploymentProjectId)
Find all the versions that are currently deployed on environments of a deployment projects.
|
@Nullable MutableDeploymentVersion |
findLatestVersionForProject(long deploymentProjectId)
Find the latest version for a deployment project.
|
@Nullable MutableDeploymentVersion |
findLatestVersionForProject(long deploymentProjectId,
@NotNull PlanKey branchKey)
Find the latest version for a deployment project.
|
@Nullable MutableDeploymentVersion |
findNextVersionContainingResult(long deploymentProjectId,
@NotNull PlanResultKey planResultKey)
Find the first version that is created from a result which is later than current result (not taking custom revision into account)
|
@Nullable MutableDeploymentVersion |
findPreviousVersion(long deploymentProjectId,
@NotNull MutableDeploymentVersion deploymentVersion)
Find the last version created before this one.
|
@NotNull List<DeploymentVersionDto> |
findVersionDtos(DeploymentVersionSearchCriteria searchCriteria) |
@NotNull Iterable<DeploymentVersionDto> |
findVersionDtosBetween(long deploymentProjectId,
long version1Id,
long version2Id) |
@NotNull List<MutableDeploymentVersion> |
findVersions(@NotNull DeploymentVersionSearchCriteria searchCriteria)
Search for versions using search criteria
|
@NotNull List<MutableDeploymentVersion> |
findVersionsAssociatedWithJiraIssue(long deploymentProjectId,
@NotNull String issueKey)
Find all the versions of a
DeploymentProject that are associated with a JIRA issue |
@NotNull List<MutableDeploymentVersion> |
findVersionsAssociatedWithJiraIssue(@NotNull String issueKey)
Find all the versions that are associated with a JIRA issue
|
Iterable<MutableDeploymentVersion> |
findVersionsBetween(long deploymentVersionId,
long version1Id,
long version2Id)
Find versions created between version1 and version2.
|
@Nullable MutableDeploymentVersion |
getDeploymentVersion(long deploymentVersionId)
Get MutableDeploymentVersion by id
|
@Nullable MutableDeploymentVersion |
getDeploymentVersionByName(@NotNull String existingVersionName,
long deploymentProjectId)
Retrieve a specific version by name for a project
|
@NotNull List<DeploymentVersionDto> |
getDeploymentVersionDtosForDeploymentProject(long deploymentProjectId,
int offset,
int maxResults) |
@NotNull List<MutableDeploymentVersion> |
getDeploymentVersionsForDeploymentProject(long deploymentProjectId)
Get MutableDeploymentVersion by DeploymentProject id
|
MutableDeploymentVersionStatus |
getLatestVersionStatus(long deploymentVersionId)
Retrieves deployment version status.
|
DeploymentVersionStatusDto |
getLatestVersionStatusDto(long deploymentVersionId)
Retrieves deployment version status.
|
@NotNull Map<Long,DeploymentVersionStatusDto> |
getLatestVersionStatusDtos(@NotNull List<Long> deploymentVersionIds) |
@NotNull Set<PlanResultKey> |
getRelatedPlanResultKeys(long deploymentVersionId) |
@Nullable MutableDeploymentVersion |
getRelatedVersion(long deploymentProjectId,
@NotNull PlanResultKey planResultKey)
Find latest version of a deployment project that is related to specific plan result.
|
@NotNull List<MutableDeploymentVersion> |
getRelatedVersions(@NotNull PlanResultKey planResultKey)
All versions project that are related to specific plan result.
|
List<String> |
getResultPlanKeysHavingDeploymentProjectVersions(long deploymentProjectId)
Returns keys of result plans (branch) that have at least one deployment project version (release)
|
int |
getVersionsCount()
Count all versions
|
int |
getVersionsCountForProject(long deploymentProjectId)
Count versions related to deployment project
|
int |
getVersionsCountForProjectAndBranch(long deploymentProjectId,
@NotNull PlanKey branchKey)
Count versions related to deployment project and a specific plan branch
|
@NotNull List<MutableDeploymentVersionStatus> |
getVersionStatuses(long deploymentVersionId)
Get
MutableDeploymentVersionStatus es by DeploymentVersion id |
boolean |
hasVersions(@NotNull DeploymentVersionSearchCriteria searchCriteria)
Test if versions that match criteria do exist
|
boolean |
isVersionNameConflicting(@NotNull String name,
long deploymentProjectId)
Check whether the version name is already being used by another version within this project
|
void |
save(@NotNull MutableDeploymentVersion deploymentVersion)
Save MutableDeploymentVersion
|
void |
updatePlanKey(@NotNull PlanKey originalPlanKey,
@NotNull PlanKey newPlanKey)
Update planKey in DeploymentVersion's related entities when plan key has changed (ie after moving plan)
|
@Nullable @Nullable MutableDeploymentVersion getDeploymentVersion(long deploymentVersionId)
List<String> getResultPlanKeysHavingDeploymentProjectVersions(long deploymentProjectId)
deploymentProjectId
- id of the deployment project@NotNull @NotNull List<MutableDeploymentVersion> getDeploymentVersionsForDeploymentProject(long deploymentProjectId)
void save(@NotNull @NotNull MutableDeploymentVersion deploymentVersion)
void delete(MutableDeploymentVersion deploymentVersion)
int deleteForDeploymentProject(long deploymentProjectId)
DeploymentVersionDeletionService
.deploymentProjectId
- id of DeploymentProjectint deleteVersionItems(long deploymentVersionId)
DeploymentVersionDeletionService
.deploymentVersionId
- id of DeploymentVersion@NotNull @NotNull List<MutableDeploymentVersion> findVersions(@NotNull @NotNull DeploymentVersionSearchCriteria searchCriteria)
searchCriteria
- search criteriaboolean hasVersions(@NotNull @NotNull DeploymentVersionSearchCriteria searchCriteria)
searchCriteria
- search criteriaboolean isVersionNameConflicting(@NotNull @NotNull String name, long deploymentProjectId)
name
- to checkdeploymentProjectId
- project to filter by@Nullable @Nullable MutableDeploymentVersion getDeploymentVersionByName(@NotNull @NotNull String existingVersionName, long deploymentProjectId)
existingVersionName
- name of version to finddeploymentProjectId
- of project to look in@Nullable @Nullable MutableDeploymentVersion findPreviousVersion(long deploymentProjectId, @NotNull @NotNull MutableDeploymentVersion deploymentVersion)
@Nullable @Nullable MutableDeploymentVersion findLatestVersionForProject(long deploymentProjectId)
deploymentProjectId
- id of the deployment project@Nullable @Nullable MutableDeploymentVersion findLatestVersionForProject(long deploymentProjectId, @NotNull @NotNull PlanKey branchKey)
deploymentProjectId
- id of the deployment projectbranchKey
- key of the PlanBranch@NotNull @NotNull Set<PlanResultKey> getRelatedPlanResultKeys(long deploymentVersionId)
MutableDeploymentVersionStatus getLatestVersionStatus(long deploymentVersionId)
getLatestVersionStatusDto(long)
instead.DeploymentVersionStatusDto getLatestVersionStatusDto(long deploymentVersionId)
@NotNull @NotNull MutableDeploymentVersionStatus createNewVersionStatus(long deploymentVersionId, DeploymentVersionState state, @NotNull @NotNull String userName)
@NotNull @NotNull List<MutableDeploymentVersionStatus> getVersionStatuses(long deploymentVersionId)
MutableDeploymentVersionStatus
es by DeploymentVersion idIterable<MutableDeploymentVersion> findVersionsBetween(long deploymentVersionId, long version1Id, long version2Id)
deploymentVersionId
- version1Id
- version2Id
- IllegalArgumentException
- if any of the version doesn't existint deleteVersionStatus(long deploymentVersionId)
deploymentVersionId
- id of the DeploymentVersionint deleteVersionStatuses(@NotNull @NotNull DeploymentVersionDeletionAdapter deletionAdapter)
deletionAdapter
- DeletionSQLAdapter.getInClause()
should provide range of DeploymentVersions to removeint getVersionsCount()
int getVersionsCountForProject(long deploymentProjectId)
deploymentProjectId
- id of deployment projectint getVersionsCountForProjectAndBranch(long deploymentProjectId, @NotNull @NotNull PlanKey branchKey)
deploymentProjectId
- id of deployment projectbranchKey
- plan branch key@Nullable @Nullable MutableDeploymentVersion getRelatedVersion(long deploymentProjectId, @NotNull @NotNull PlanResultKey planResultKey)
deploymentProjectId
- planResultKey
- @NotNull @NotNull List<MutableDeploymentVersion> getRelatedVersions(@NotNull @NotNull PlanResultKey planResultKey)
@Nullable @Nullable MutableDeploymentVersion findNextVersionContainingResult(long deploymentProjectId, @NotNull @NotNull PlanResultKey planResultKey)
deploymentProjectId
- planResultKey
- void updatePlanKey(@NotNull @NotNull PlanKey originalPlanKey, @NotNull @NotNull PlanKey newPlanKey)
originalPlanKey
- original PlanKeynewPlanKey
- new PlanKey@NotNull @NotNull List<MutableDeploymentVersion> findVersionsAssociatedWithJiraIssue(long deploymentProjectId, @NotNull @NotNull String issueKey)
DeploymentProject
that are associated with a JIRA issuedeploymentProjectId
- issueKey
- @NotNull @NotNull List<MutableDeploymentVersion> findVersionsAssociatedWithJiraIssue(@NotNull @NotNull String issueKey)
issueKey
- List<MutableDeploymentVersion> findLatestKnownVersionsForEnvironmentsOfDeploymentProject(long deploymentProjectId)
deploymentProjectId
- @NotNull @NotNull List<DeploymentVersionDto> getDeploymentVersionDtosForDeploymentProject(long deploymentProjectId, int offset, int maxResults)
@NotNull @NotNull List<DeploymentVersionDto> findVersionDtos(DeploymentVersionSearchCriteria searchCriteria)
@NotNull @NotNull Map<Long,DeploymentVersionStatusDto> getLatestVersionStatusDtos(@NotNull @NotNull List<Long> deploymentVersionIds)
@NotNull @NotNull Iterable<DeploymentVersionDto> findVersionDtosBetween(long deploymentProjectId, long version1Id, long version2Id)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.