@Override public void removeUserProfile(String userId) { try { storage.deleteObject(new YaddaObjectID(userId)); } catch (NotFoundException e) { // it is OK, profile not found so not removed } catch (ServiceException e) { String message = "Removing user profile for user " + userId + " not successfull."; logger.error(message, e); throw new RuntimeException(message, e); } }
public void removeDump(String dumpId) throws Exception { ArchiveObject2Meta dumpMeta = archiveFacade.queryUniqueObject(dumpId, false); if (dumpMeta == null) return; storageFacade.deleteObject(dumpMeta.getId()); }