Esempio n. 1
1
 private String getRefusedKeys(AccessToken at, Request request, XmlResponder responder)
     throws ServerFault, NotAllowedException {
   KeyList ret =
       binding.getRefusedKeys(
           at, getCalendar(request), DateHelper.asDate(request.getParameter("since")));
   return responder.sendKeyList(ret);
 }
Esempio n. 2
1
 private String getFirstSync(AccessToken at, Request request, XmlResponder responder)
     throws ServerFault, NotAllowedException {
   EventChanges ret =
       binding.getFirstSync(
           at, getCalendar(request), DateHelper.asDate(request.getParameter("lastSync")));
   return responder.sendCalendarChanges(ret);
 }
Esempio n. 3
0
  private String getListEventsFromIntervalDate(
      AccessToken at, Request request, XmlResponder responder)
      throws ServerFault, NotAllowedException {
    List<Event> e =
        binding.getListEventsFromIntervalDate(
            at,
            getCalendar(request),
            DateHelper.asDate(request.getParameter("start")),
            DateHelper.asDate(request.getParameter("end")));

    return responder.sendListEvent(e);
  }
Esempio n. 4
0
 private String getSyncInRange(AccessToken at, Request request, XmlResponder responder)
     throws ServerFault, NotAllowedException {
   final Date after = DateHelper.asDate(request.getParameter("syncRangeAfter"));
   final Date before = DateHelper.asDate(request.getParameter("syncRangeBefore"));
   SyncRange syncRange = null;
   if (after != null || before != null) {
     syncRange = new SyncRange(before, after);
   }
   EventChanges ret =
       binding.getSyncInRange(
           at,
           getCalendar(request),
           DateHelper.asDate(request.getParameter("lastSync")),
           syncRange);
   return responder.sendCalendarChanges(ret);
 }