Exemplo n.º 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);
    }
  }
Exemplo n.º 2
0
 private List<ItemChange> getCalendarChanges(BackendSession bs)
     throws DaoException, CollectionNotFoundException, UnknownObmSyncServerException {
   return calendarExporter.getHierarchyChanges(bs);
 }
Exemplo n.º 3
0
 private List<ItemChange> getTasksChanges(BackendSession bs) throws DaoException {
   return calendarExporter.getHierarchyTaskChanges(bs);
 }