@Override void executeOnSuccess() { try { projectComponentManager.delete(componentId); } catch (EntityNotFoundException e) { if (componentId != null) { addErrorKey(KEY_NO_SUCH_COMPONENT_WITH_ID, componentId.toString(), ErrorCollection.Reason.SERVER_ERROR); } else { addErrorKey(KEY_NO_SUCH_COMPONENT, null, ErrorCollection.Reason.SERVER_ERROR); } } }
for (final ProjectComponent component : components) projectComponentManager.delete(component.getId());