public class EnvironmentDeletionServiceImpl extends Object implements EnvironmentDeletionService
Constructor and Description |
---|
EnvironmentDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate,
DeploymentResultDeletionService deploymentResultDeletionService,
EnvironmentDao environmentDao,
EnvironmentRepositoryLinkDao environmentRepositoryLinkDao,
HibernateMutableAclService aclService,
VariableDefinitionDao variableDefinitionDao,
AgentAssignmentService agentAssignmentService,
EnvironmentService environmentService,
com.atlassian.event.api.EventPublisher eventPublisher,
ScopedExclusionService scopedExclusionService,
DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService) |
Modifier and Type | Method and Description |
---|---|
void |
delete(long environmentId)
Delete single Environment and related records.
|
int |
deleteForDeploymentProject(long deploymentProjectId)
Delete all Environments related to DeploymentProject.
|
public EnvironmentDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDeletionService deploymentResultDeletionService, EnvironmentDao environmentDao, EnvironmentRepositoryLinkDao environmentRepositoryLinkDao, HibernateMutableAclService aclService, VariableDefinitionDao variableDefinitionDao, AgentAssignmentService agentAssignmentService, EnvironmentService environmentService, com.atlassian.event.api.EventPublisher eventPublisher, ScopedExclusionService scopedExclusionService, DeploymentVersionLinkedJiraIssuesService deploymentVersionLinkedJiraIssuesService)
public void delete(long environmentId)
EnvironmentDeletionService
delete
in interface EnvironmentDeletionService
environmentId
- of the environment to delete.public int deleteForDeploymentProject(long deploymentProjectId)
EnvironmentDeletionService
deleteForDeploymentProject
in interface EnvironmentDeletionService
deploymentProjectId
- id of DeploymentProject
which Environment
s will be deletedCopyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.