Class EnvironmentDeletionServiceImpl
java.lang.Object
com.atlassian.bamboo.deployments.environments.service.EnvironmentDeletionServiceImpl
- All Implemented Interfaces:
EnvironmentDeletionService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(long environmentId, boolean fireEvent) Delete single Environment and related records.int
deleteForDeploymentProject
(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
-
Constructor Details
-
EnvironmentDeletionServiceImpl
public EnvironmentDeletionServiceImpl()
-
-
Method Details
-
delete
public void delete(long environmentId, boolean fireEvent) Description copied from interface:EnvironmentDeletionService
Delete single Environment and related records. FiresMultipleEnvironmentsDeletedEvent
if requested.- Specified by:
delete
in interfaceEnvironmentDeletionService
- Parameters:
environmentId
- of the environment to delete.fireEvent
- ifMultipleEnvironmentsDeletedEvent
should be fired.
-
deleteForDeploymentProject
Description copied from interface:EnvironmentDeletionService
Delete all Environments related to DeploymentProject. FiresMultipleEnvironmentsDeletedEvent
.- Specified by:
deleteForDeploymentProject
in interfaceEnvironmentDeletionService
- Parameters:
deploymentProjectId
- id ofDeploymentProject
whichEnvironment
s will be deletedaffectedJiraIssues
- keys of jira issues affected by the removal of project- Returns:
- number of deleted Environment records
-