Exemplo n.º 1
0
  private void removePrivateData() throws Exception {
    try {
      log.info(
          String.format(
              "removing private datas..... \n  removing %s calendars.....",
              privateCalendar.size()));
      for (String calId : privateCalendar) {
        if (!isEmpty(calId)) {
          calService.removeUserCalendar(currentUser, calId);
        }
      }
      log.info(String.format("removing %s event catetories.....", eventCategorys.size()));
      for (String evCatId : eventCategorys) {
        if (!isEmpty(evCatId)) {
          calService.removeEventCategory(currentUser, evCatId);
        }
      }

    } catch (Exception e) {
      log.debug("Failed to remove private injecter datas", e);
    }
  }