Interface MoccaCalendarResource
-
@Unstable public interface MoccaCalendarResourceProvides the APIs needed by the Mocca Calendar server in order to import an ical file.- Since:
- 2.14
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.ResponseimportCalendarFile(String parentCalendar, byte[] file)Import a given ical file and create a job that handles the event processing.
-
-
-
Method Detail
-
importCalendarFile
javax.ws.rs.core.Response importCalendarFile(String parentCalendar, byte[] file) throws org.xwiki.rest.XWikiRestException
Import a given ical file and create a job that handles the event processing.- Parameters:
parentCalendar- the calendar for which the events are created.file- the file to be processed.- Returns:
- HTML status code 202 to hint that the file had been accepted and the job started.
- Throws:
org.xwiki.rest.XWikiRestException- if an error occurred while creating the job.
-
-