Class DeploymentVersionDeletionServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.versions.service.DeploymentVersionDeletionServiceImpl
- All Implemented Interfaces:
DeploymentVersionDeletionService
public class DeploymentVersionDeletionServiceImpl
extends Object
implements DeploymentVersionDeletionService
-
Constructor Summary
ConstructorDescriptionDeploymentVersionDeletionServiceImpl
(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDeletionService deploymentResultDeletionService, DeploymentResultService deploymentResultService, DeploymentVersionDao deploymentVersionDao, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, VariableDefinitionDao variableDefinitionDao, EnvironmentDao environmentDao, DeploymentProjectDao deploymentProjectDao, CommentDao commentDao, ArtifactManager artifactManager, com.atlassian.event.api.EventPublisher eventPublisher, AuditLogService auditLogService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(long deploymentVersionId) Affected tables: - DEPLOYMENT_VERSION (manual, Hibernate) - DEPLOYMENT_VERSION_ARTIFACT, 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_ARTIFACT (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
-
Constructor Details
-
DeploymentVersionDeletionServiceImpl
public DeploymentVersionDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDeletionService deploymentResultDeletionService, DeploymentResultService deploymentResultService, DeploymentVersionDao deploymentVersionDao, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService, DeploymentVersionLinkedJiraIssueDao deploymentVersionLinkedJiraIssueDao, DeploymentVersionVcsChangesetDao deploymentVersionVcsChangesetDao, VariableDefinitionDao variableDefinitionDao, EnvironmentDao environmentDao, DeploymentProjectDao deploymentProjectDao, CommentDao commentDao, ArtifactManager artifactManager, com.atlassian.event.api.EventPublisher eventPublisher, AuditLogService auditLogService)
-
-
Method Details
-
delete
public void delete(long deploymentVersionId) Affected tables: - DEPLOYMENT_VERSION (manual, Hibernate) - DEPLOYMENT_VERSION_ARTIFACT, 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)- Specified by:
delete
in interfaceDeploymentVersionDeletionService
-
removeArtifacts
public boolean removeArtifacts(long deploymentVersionId) Description copied from interface:DeploymentVersionDeletionService
Remove artifacts of Deployment Version and mark this version as unreleasable- Specified by:
removeArtifacts
in interfaceDeploymentVersionDeletionService
- Parameters:
deploymentVersionId
- id of Deployment Version which artifacts should be deleted- Returns:
- true if something was removed
-
deleteForDeploymentProject
public int deleteForDeploymentProject(long deploymentProjectId) Affected tables: - DEPLOYMENT_VERSION (manual, JDBC) - DEPLOYMENT_VERSION_ARTIFACT (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)- Specified by:
deleteForDeploymentProject
in interfaceDeploymentVersionDeletionService
- Parameters:
deploymentProjectId
- id of Deployment Project which versions have to be removed- Returns:
- number of deleted DeploymentVersion records
-