Beispiel #1
1
 private String getAllEvents(AccessToken at, Request request, XmlResponder responder)
     throws ServerFault {
   List<Event> e =
       binding.getAllEvents(
           at, getCalendar(request), EventType.valueOf(request.getParameter("eventType")));
   return responder.sendListEvent(e);
 }
Beispiel #2
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);
  }
Beispiel #3
0
 private String parseICS(AccessToken at, Request request, XmlResponder responder)
     throws ServerFault, Exception {
   String ics = request.getParameter("ics");
   List<Event> events = binding.parseICS(at, ics);
   return responder.sendListEvent(events);
 }