@Override public ResponseEntity<Void> deleteSoftwareModule(@PathVariable("softwareModuleId") final Long softwareModuleId) { final SoftwareModule module = findSoftwareModuleWithExceptionIfNotFound(softwareModuleId, null); softwareModuleManagement.delete(module.getId()); return ResponseEntity.ok().build(); }
@Override protected void handleOkDelete(final List<Long> entitiesToDelete) { softwareModuleManagement.delete(entitiesToDelete); getEventBus().publish(this, new SoftwareModuleEvent(BaseEntityEventType.REMOVE_ENTITY, entitiesToDelete)); getNotification().displaySuccess(getI18n().getMessage("message.delete.success", entitiesToDelete.size() + " " + getI18n().getMessage("caption.software.module") + "(s)")); manageDistUIState.getSelectedSoftwareModules().clear(); }
@Override protected void handleOkDelete(final List<Long> entitiesToDelete) { softwareModuleManagement.delete(entitiesToDelete); getEventBus().publish(this, new SoftwareModuleEvent(BaseEntityEventType.REMOVE_ENTITY, entitiesToDelete)); getNotification().displaySuccess(getI18n().getMessage("message.delete.success", entitiesToDelete.size() + " " + getI18n().getMessage("caption.software.module") + "(s)")); manageDistUIState.getSelectedSoftwareModules().clear(); }
@Override protected void handleOkDelete(final List<Long> entitiesToDelete) { if (isUploadInProgressForSoftwareModule(entitiesToDelete)) { getNotification().displayValidationError(getI18n().getMessage("message.error.swModule.notDeleted")); return; } softwareModuleManagement.delete(entitiesToDelete); getEventBus().publish(this, new SoftwareModuleEvent(BaseEntityEventType.REMOVE_ENTITY, entitiesToDelete)); getNotification().displaySuccess(getI18n().getMessage("message.delete.success", entitiesToDelete.size() + " " + getI18n().getMessage("caption.software.module") + "(s)")); artifactUploadState.getSelectedSoftwareModules().clear(); getEventBus().publish(this, UploadArtifactUIEvent.DELETED_ALL_SOFTWARE); }
@Override protected void handleOkDelete(final List<Long> entitiesToDelete) { if (isUploadInProgressForSoftwareModule(entitiesToDelete)) { getNotification().displayValidationError(getI18n().getMessage("message.error.swModule.notDeleted")); return; } softwareModuleManagement.delete(entitiesToDelete); getEventBus().publish(this, new SoftwareModuleEvent(BaseEntityEventType.REMOVE_ENTITY, entitiesToDelete)); getNotification().displaySuccess(getI18n().getMessage("message.delete.success", entitiesToDelete.size() + " " + getI18n().getMessage("caption.software.module") + "(s)")); artifactUploadState.getSelectedSoftwareModules().clear(); getEventBus().publish(this, UploadArtifactUIEvent.DELETED_ALL_SOFTWARE); }