public interface CalendarImportExport
| Modifier and Type | Field and Description |
|---|---|
static String |
PRIVATE_TYPE |
static String |
PUBLIC_TYPE |
static String |
SHARED_TYPE |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
exportCalendar(String username,
List<String> calendarIds,
String type,
int number)
The method exports events from eXo Calendar to icalendar file (.ics) or .csv file
|
ByteArrayOutputStream |
exportEventCalendar(CalendarEvent event)
The method export binary from event object
|
OutputStream |
exportEventCalendar(String username,
String calendarId,
String type,
String eventId)
The method export calendar event to output stream by given event id
|
List<CalendarEvent> |
getEventObjects(InputStream icalInputStream)
The method maps the input stream to event object
|
void |
importCalendar(String username,
InputStream inputStream,
String calendarId,
String calendarName,
Calendar from,
Calendar to,
boolean isNew)
The method imports events form icalendar(.ics) or outlook calendar exported .csv file to the system
|
boolean |
isValidate(InputStream icalInputStream)
The method return true if the input stream is correct format
|
static final String PRIVATE_TYPE
static final String SHARED_TYPE
static final String PUBLIC_TYPE
void importCalendar(String username, InputStream inputStream, String calendarId, String calendarName, Calendar from, Calendar to, boolean isNew) throws Exception
username - current user name or idinputStream - data input streamcalendarId - given existed calendar idcalendarName - name of the new calendar, if create newfrom - the first date of current time-range to import eventto - to the last date of current time-range to import eventisNew - import to new calendar or existed calendarExceptionOutputStream exportCalendar(String username, List<String> calendarIds, String type, int number) throws Exception
username - current user name or idcalendarIds - the group calendar ids, if you want to export events from public calendarstype - The type of calendar will be exportednumber - the limitation number of eventExceptionOutputStream exportEventCalendar(String username, String calendarId, String type, String eventId) throws Exception
username - current user name or idcalendarId - given calendar id, the calendar event belong totype - The type of calendar will be exportedeventId - given event idExceptionList<CalendarEvent> getEventObjects(InputStream icalInputStream) throws Exception
icalInputStream - the input streamExceptionboolean isValidate(InputStream icalInputStream) throws Exception
icalInputStream - the input streamExceptionByteArrayOutputStream exportEventCalendar(CalendarEvent event) throws Exception
event - : event objectExceptionCopyright © 2003–2016 eXo Platform SAS. All rights reserved.