public class DeploymentVersionDeletionServiceImpl extends Object implements DeploymentVersionDeletionService
Constructor and Description |
---|
DeploymentVersionDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate,
DeploymentResultDeletionService deploymentResultDeletionService,
DeploymentResultService deploymentResultService,
DeploymentVersionDao deploymentVersionDao,
DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService,
DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao,
DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao,
VariableDefinitionDao variableDefinitionDao,
CommentDao commentDao,
ArtifactManager artifactManager,
com.atlassian.event.api.EventPublisher eventPublisher,
EnvironmentService environmentService) |
Modifier and Type | Method and Description |
---|---|
void |
delete(long deploymentVersionId)
Affected tables:
- DEPLOYMENT_VERSION (manual, Hibernate)
- DEPLOYMENT_VERSION_ITEM, DEPLOYMENT_VERSION_ITEM_BA, DEPLOYMENT_PLANRESULTKEYS (cascade)
- DEPLOYMENT_VERSION_CHANGESET (manual, JDBC)
- DEPLOYMENT_VERSION_COMMIT (manual, JDBC)
- DEPLOYMENT_RESULT (manual unlink, JDBC)
- DEPLOYMENT_VERSION_STATUS (manual, JDBC)
- DEPLOYMENT_VERSION_JIRA_ISSUE (manual, JDBC)
- VARIABLE_DEFINITION (manual, JDBC)
- ARTIFACT (through ArtifactManager)
|
int |
deleteForDeploymentProject(long deploymentProjectId)
Affected tables:
- DEPLOYMENT_VERSION (manual, JDBC)
- DEPLOYMENT_VERSION_ITEM (manual, JDBC)
- DEPLOYMENT_VERSION_ITEM_BA (manual, JDBC)
- DEPLOYMENT_PLANRESULTKEYS (manual, JDBC)
- DEPLOYMENT_VERSION_STATUS (manual, JDBC)
- DEPLOYMENT_VERSION_JIRA_ISSUE (manual, JDBC)
- DEPLOYMENT_VERSION_CHANGESET (manual, JDBC)
- DEPLOYMENT_VERSION_COMMIT (manual, JDBC)
- DEPLOYMENT_RESULT (manual unlink, JDBC)
- VARIABLE_DEFINITION (manual, JDBC)
- ARTIFACT (through ArtifactManager)
|
boolean |
removeArtifacts(long deploymentVersionId)
Remove artifacts of Deployment Version and mark this version as unreleasable
|
public DeploymentVersionDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDeletionService deploymentResultDeletionService, DeploymentResultService deploymentResultService, DeploymentVersionDao deploymentVersionDao, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, VariableDefinitionDao variableDefinitionDao, CommentDao commentDao, ArtifactManager artifactManager, com.atlassian.event.api.EventPublisher eventPublisher, EnvironmentService environmentService)
public void delete(long deploymentVersionId)
delete
in interface DeploymentVersionDeletionService
public boolean removeArtifacts(long deploymentVersionId)
DeploymentVersionDeletionService
removeArtifacts
in interface DeploymentVersionDeletionService
deploymentVersionId
- id of Deployment Version which artifacts should be deletedpublic int deleteForDeploymentProject(long deploymentProjectId)
deleteForDeploymentProject
in interface DeploymentVersionDeletionService
deploymentProjectId
- id of Deployment Project which versions have to be removedCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.