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
Constructors Constructor Description EnvironmentDeletionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(long environmentId, boolean fireEvent)Delete single Environment and related records.intdeleteForDeploymentProject(long deploymentProjectId, Set<String> affectedJiraIssues)Delete all Environments related to DeploymentProject.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.deployments.environments.service.EnvironmentDeletionService
delete, deleteForDeploymentProject
-
-
-
-
Method Detail
-
delete
public void delete(long environmentId, boolean fireEvent)Description copied from interface:EnvironmentDeletionServiceDelete single Environment and related records. FiresMultipleEnvironmentsDeletedEventif requested.- Specified by:
deletein interfaceEnvironmentDeletionService- Parameters:
environmentId- of the environment to delete.fireEvent- ifMultipleEnvironmentsDeletedEventshould be fired.
-
deleteForDeploymentProject
public int deleteForDeploymentProject(long deploymentProjectId, Set<String> affectedJiraIssues)Description copied from interface:EnvironmentDeletionServiceDelete all Environments related to DeploymentProject. FiresMultipleEnvironmentsDeletedEvent.- Specified by:
deleteForDeploymentProjectin interfaceEnvironmentDeletionService- Parameters:
deploymentProjectId- id ofDeploymentProjectwhichEnvironments will be deletedaffectedJiraIssues- keys of jira issues affected by the removal of project- Returns:
- number of deleted Environment records
-
-