Interface EnvironmentDeletionService
- All Known Implementing Classes:
EnvironmentDeletionServiceImpl
public interface EnvironmentDeletionService
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
delete
(long environmentId) Delete single Environment and related records.void
delete
(long environmentId, boolean fireEvent) Delete single Environment and related records.default int
deleteForDeploymentProject
(long deploymentProjectId) int
deleteForDeploymentProject
(long deploymentProjectId, @NotNull Set<String> affectedJiraIssues) Delete all Environments related to DeploymentProject.
-
Method Details
-
delete
default void delete(long environmentId) Delete single Environment and related records. FiresMultipleEnvironmentsDeletedEvent
- Parameters:
environmentId
- of the environment to delete.
-
delete
void delete(long environmentId, boolean fireEvent) Delete single Environment and related records. FiresMultipleEnvironmentsDeletedEvent
if requested.- Parameters:
environmentId
- of the environment to delete.fireEvent
- ifMultipleEnvironmentsDeletedEvent
should be fired.
-
deleteForDeploymentProject
default int deleteForDeploymentProject(long deploymentProjectId) -
deleteForDeploymentProject
int deleteForDeploymentProject(long deploymentProjectId, @NotNull @NotNull Set<String> affectedJiraIssues) Delete all Environments related to DeploymentProject. FiresMultipleEnvironmentsDeletedEvent
.- 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
-