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); }
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); }
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); }
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); }