/** * Deletes a deployment model from storage * * @param deploymentId The deployment ID to be used for deletion */ public void deleteDeployment(Long deploymentId) { mDeleteDeploymentUsecase.setDeploymentId(deploymentId); mDeleteFormUsecase.setDeploymentId(deploymentId); mDeleteGeoJsonUsecase.setDeploymentId(deploymentId); mDeletePostUsecase.setDeploymentId(deploymentId); mDeleteTagUsecase.setDeploymentId(deploymentId); mDeleteUserProfileUsecase.setDeploymentId(deploymentId); mDeleteDeploymentUsecase.execute(deleteDeploymentUseCaseSubscriber); }
@Override public void destroy() { mDeleteDeploymentUsecase.unsubscribe(); }