public interface DeploymentVersionDao
Modifier and Type | Method and Description |
---|---|
MutableDeploymentVersionStatus |
createNewVersionStatus(long deploymentVersionId,
DeploymentVersionState state,
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(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.
|
MutableDeploymentVersion |
findLatestVersionForProject(long deploymentProjectId)
Find the latest version for a deployment project.
|
MutableDeploymentVersion |
findLatestVersionForProject(long deploymentProjectId,
PlanKey branchKey)
Find the latest version for a deployment project.
|
MutableDeploymentVersion |
findNextVersionContainingResult(long deploymentProjectId,
PlanResultKey planResultKey)
Find the first version that is created from a result which is later than current result (not taking custom revision into account)
|
MutableDeploymentVersion |
findPreviousVersion(long deploymentProjectId,
MutableDeploymentVersion deploymentVersion)
Find the last version created before this one.
|
List<MutableDeploymentVersion> |
findVersions(DeploymentVersionSearchCriteria searchCriteria)
Search for versions using search criteria
|
List<MutableDeploymentVersion> |
findVersionsAssociatedWithJiraIssue(long deploymentProjectId,
String issueKey)
Find all the versions of a
DeploymentProject that are associated with a JIRA issue |
List<MutableDeploymentVersion> |
findVersionsAssociatedWithJiraIssue(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.
|
MutableDeploymentVersion |
getDeploymentVersion(long deploymentVersionId)
Get MutableDeploymentVersion by id
|
MutableDeploymentVersion |
getDeploymentVersionByName(String existingVersionName,
long deploymentProjectId)
Retrieve a specific version by name for a project
|
List<MutableDeploymentVersion> |
getDeploymentVersionsForDeploymentProject(long deploymentProjectId)
Get MutableDeploymentVersion by DeploymentProject id
|
MutableDeploymentVersionStatus |
getLatestVersionStatus(long deploymentVersionId) |
Set<PlanResultKey> |
getRelatedPlanResultKeys(long deploymentVersionId) |
MutableDeploymentVersion |
getRelatedVersion(long deploymentProjectId,
PlanResultKey planResultKey)
Find latest version of a deployment project that is 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
|
List<MutableDeploymentVersionStatus> |
getVersionStatuses(long deploymentVersionId)
Get
MutableDeploymentVersionStatus es by DeploymentVersion id |
boolean |
hasVersions(DeploymentVersionSearchCriteria searchCriteria)
Test if versions that match criteria do exist
|
boolean |
isVersionNameConflicting(String name,
long deploymentProjectId)
Check whether the version name is already being used by another version within this project
|
void |
save(MutableDeploymentVersion deploymentVersion)
Save MutableDeploymentVersion
|
void |
updatePlanKey(PlanKey originalPlanKey,
PlanKey newPlanKey)
Update planKey in DeploymentVersion's related entities when plan key has changed (ie after moving plan)
|
@Nullable MutableDeploymentVersion getDeploymentVersion(long deploymentVersionId)
List<String> getResultPlanKeysHavingDeploymentProjectVersions(long deploymentProjectId)
deploymentProjectId
- id of the deployment project@NotNull List<MutableDeploymentVersion> getDeploymentVersionsForDeploymentProject(long deploymentProjectId)
void save(@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 List<MutableDeploymentVersion> findVersions(@NotNull DeploymentVersionSearchCriteria searchCriteria)
searchCriteria
- search criteriaboolean hasVersions(@NotNull DeploymentVersionSearchCriteria searchCriteria)
searchCriteria
- search criteriaboolean isVersionNameConflicting(@NotNull String name, long deploymentProjectId)
name
- to checkdeploymentProjectId
- project to filter by@Nullable MutableDeploymentVersion getDeploymentVersionByName(@NotNull String existingVersionName, long deploymentProjectId)
existingVersionName
- name of version to finddeploymentProjectId
- of project to look in@Nullable MutableDeploymentVersion findPreviousVersion(long deploymentProjectId, @NotNull MutableDeploymentVersion deploymentVersion)
@Nullable MutableDeploymentVersion findLatestVersionForProject(long deploymentProjectId)
deploymentProjectId
- id of the deployment project@Nullable MutableDeploymentVersion findLatestVersionForProject(long deploymentProjectId, @NotNull PlanKey branchKey)
deploymentProjectId
- id of the deployment projectbranchKey
- key of the PlanBranch@NotNull Set<PlanResultKey> getRelatedPlanResultKeys(long deploymentVersionId)
MutableDeploymentVersionStatus getLatestVersionStatus(long deploymentVersionId)
@NotNull MutableDeploymentVersionStatus createNewVersionStatus(long deploymentVersionId, DeploymentVersionState state, @NotNull String userName)
@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 DeploymentVersionDeletionAdapter deletionAdapter)
deletionAdapter
- DeletionSQLAdapter.getInClause()
should provide range of DeploymentVersions to removeint getVersionsCount()
int getVersionsCountForProject(long deploymentProjectId)
deploymentProjectId
- id of deployment project@Nullable MutableDeploymentVersion getRelatedVersion(long deploymentProjectId, @NotNull PlanResultKey planResultKey)
deploymentProjectId
- planResultKey
- @Nullable MutableDeploymentVersion findNextVersionContainingResult(long deploymentProjectId, @NotNull PlanResultKey planResultKey)
deploymentProjectId
- planResultKey
- void updatePlanKey(@NotNull PlanKey originalPlanKey, @NotNull PlanKey newPlanKey)
originalPlanKey
- original PlanKeynewPlanKey
- new PlanKey@NotNull List<MutableDeploymentVersion> findVersionsAssociatedWithJiraIssue(long deploymentProjectId, @NotNull String issueKey)
DeploymentProject
that are associated with a JIRA issuedeploymentProjectId
- issueKey
- @NotNull List<MutableDeploymentVersion> findVersionsAssociatedWithJiraIssue(@NotNull String issueKey)
issueKey
- List<MutableDeploymentVersion> findLatestKnownVersionsForEnvironmentsOfDeploymentProject(long deploymentProjectId)
deploymentProjectId
- Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.