com.atlassian.bamboo.deployments.environments.service
Class EnvironmentDeletionServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.service.EnvironmentDeletionServiceImpl
- All Implemented Interfaces:
- EnvironmentDeletionService
public class EnvironmentDeletionServiceImpl
- extends Object
- implements EnvironmentDeletionService
Constructor Summary |
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)
|
Method Summary |
void |
delete(long environmentId)
Delete single Environment and related records. |
int |
deleteForDeploymentProject(long deploymentProjectId)
Delete all Environments related to DeploymentProject. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentDeletionServiceImpl
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)
delete
public void delete(long environmentId)
- Description copied from interface:
EnvironmentDeletionService
- Delete single Environment and related records.
- Specified by:
delete
in interface EnvironmentDeletionService
- Parameters:
environmentId
- of the environment to delete.
deleteForDeploymentProject
public int deleteForDeploymentProject(long deploymentProjectId)
- Description copied from interface:
EnvironmentDeletionService
- Delete all Environments related to DeploymentProject.
- Specified by:
deleteForDeploymentProject
in interface EnvironmentDeletionService
- Parameters:
deploymentProjectId
- id of DeploymentProject
which Environment
s will be deleted
- Returns:
- number of deleted Environment records
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.