Пример #1
0
  private void handle(
      ItemChangeMeetingResponse meetingResponse,
      UserDataRequest udr,
      MSEmail email,
      AttendeeStatus userResponse)
      throws ConversionException {

    meetingResponse.setStatus(MeetingResponseStatus.SUCCESS);
    try {
      String calId = calendarBackend.handleMeetingResponse(udr, email, userResponse);
      if (!AttendeeStatus.DECLINE.equals(userResponse)) {
        meetingResponse.setCalId(calId);
      }
    } catch (ItemNotFoundException e) {
      logger.error(e.getMessage(), e);
      meetingResponse.setStatus(MeetingResponseStatus.SERVER_ERROR);
    } catch (UnexpectedObmSyncServerException e) {
      logger.error(e.getMessage(), e);
      meetingResponse.setStatus(MeetingResponseStatus.SERVER_ERROR);
    } catch (DaoException e) {
      logger.error(e.getMessage(), e);
      meetingResponse.setStatus(MeetingResponseStatus.SERVER_ERROR);
    } catch (CollectionNotFoundException e) {
      logger.error(e.getMessage(), e);
      meetingResponse.setStatus(MeetingResponseStatus.INVALID_MEETING_RREQUEST);
    }
  }
Пример #2
0
  private void deleteInvitationEmail(UserDataRequest udr, MeetingResponse item) {

    try {
      contentsImporter.importMessageDeletion(
          udr, PIMDataType.EMAIL, item.getCollectionId(), item.getReqId(), false);
    } catch (ItemNotFoundException e) {
      logger.warn(e.getMessage(), e);
    } catch (UnexpectedObmSyncServerException e) {
      logger.warn(e.getMessage(), e);
    } catch (ProcessingEmailException e) {
      logger.warn(e.getMessage(), e);
    } catch (DaoException e) {
      logger.warn(e.getMessage(), e);
    } catch (CollectionNotFoundException e) {
      logger.warn(e.getMessage(), e);
    } catch (UnsupportedBackendFunctionException e) {
      logger.warn(e.getMessage(), e);
    }
  }