Exemplo n.º 1
0
  private void doDeleteContent(
      UserEntity importer, ContentKey contentKey, ImportResult importResult) {
    final ContentEntity content = contentDao.findByKey(contentKey);

    if (content == null) {
      // content must have been removed by another process during the import
    } else {
      contentStorer.deleteContent(importer, content);
      importResult.addDeleted(content);
    }
  }