private void deleteVersionAndContent(final DocumentVersion documentVersion) throws DocumentNotFoundException { documentStorageService.deleteContent(documentVersion.getContentStorageId()); getDbSession().delete(documentVersion); }
private void deleteVersionAndContent(final DocumentVersion documentVersion) throws DocumentNotFoundException { documentStorageService.deleteContent(documentVersion.getContentStorageId()); getDbSession().delete(documentVersion); }