com.atlassian.bamboo.deployments.environments.service
Class EnvironmentDeletionServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.environments.service.EnvironmentDeletionServiceImpl
All Implemented Interfaces:
EnvironmentDeletionService

public class EnvironmentDeletionServiceImpl
extends java.lang.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)
           
 
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
 

Constructor Detail

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)
Method Detail

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 Environments will be deleted
Returns:
number of deleted Environment records


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.