public class ICalendarImportExport extends Object implements CalendarImportExport
PRIVATE_TYPE, PUBLIC_TYPE, SHARED_TYPE| Constructor and Description |
|---|
ICalendarImportExport(JCRDataStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
exportCalendar(String username,
List<String> calendarIds,
String type,
int limited)
The method exports events from eXo Calendar to icalendar file (.ics) or .csv file
|
ByteArrayOutputStream |
exportEventCalendar(CalendarEvent exoEvent)
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
|
org.quartz.JobDetail |
findImportJob(org.exoplatform.services.scheduler.JobSchedulerService schedulerService,
String calendarId) |
net.fortuna.ical4j.model.Calendar |
getCalendarComponent(net.fortuna.ical4j.model.Calendar calendar,
CalendarEvent exoEvent,
String componentType) |
List<CalendarEvent> |
getEventObjects(InputStream icalInputStream)
The method maps the input stream to event object
|
void |
importCalendar(String username,
InputStream icalInputStream,
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
|
void |
importCalendarByJob(String username,
InputStream icalInputStream,
String calendarId,
String calendarName,
Calendar from,
Calendar to,
boolean isNew) |
boolean |
isValidate(InputStream icalInputStream)
The method return true if the input stream is correct format
|
static void |
setPriorityCalEvent(net.fortuna.ical4j.model.PropertyList propertyList,
CalendarEvent exoEvent) |
static void |
setPriorityExoEvent(net.fortuna.ical4j.model.property.Priority priority,
CalendarEvent exoEvent) |
public ICalendarImportExport(JCRDataStorage storage) throws Exception
Exceptionpublic net.fortuna.ical4j.model.Calendar getCalendarComponent(net.fortuna.ical4j.model.Calendar calendar,
CalendarEvent exoEvent,
String componentType)
throws Exception
Exceptionpublic OutputStream exportCalendar(String username, List<String> calendarIds, String type, int limited) throws Exception
CalendarImportExportexportCalendar in interface CalendarImportExportusername - current user name or idcalendarIds - the group calendar ids, if you want to export events from public calendarstype - The type of calendar will be exportedlimited - the limitation number of eventExceptionpublic OutputStream exportEventCalendar(String username, String calendarId, String type, String eventId) throws Exception
CalendarImportExportexportEventCalendar in interface CalendarImportExportusername - current user name or idcalendarId - given calendar id, the calendar event belong totype - The type of calendar will be exportedeventId - given event idExceptionpublic List<CalendarEvent> getEventObjects(InputStream icalInputStream) throws Exception
CalendarImportExportgetEventObjects in interface CalendarImportExporticalInputStream - the input streamExceptionpublic boolean isValidate(InputStream icalInputStream)
CalendarImportExportisValidate in interface CalendarImportExporticalInputStream - the input streampublic void importCalendar(String username, InputStream icalInputStream, String calendarId, String calendarName, Calendar from, Calendar to, boolean isNew) throws Exception
CalendarImportExportimportCalendar in interface CalendarImportExportusername - current user name or idicalInputStream - 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 calendarExceptionpublic ByteArrayOutputStream exportEventCalendar(CalendarEvent exoEvent) throws Exception
CalendarImportExportexportEventCalendar in interface CalendarImportExportexoEvent - : event objectExceptionpublic static void setPriorityCalEvent(net.fortuna.ical4j.model.PropertyList propertyList,
CalendarEvent exoEvent)
public static void setPriorityExoEvent(net.fortuna.ical4j.model.property.Priority priority,
CalendarEvent exoEvent)
public void importCalendarByJob(String username, InputStream icalInputStream, String calendarId, String calendarName, Calendar from, Calendar to, boolean isNew) throws Exception
ExceptionCopyright © 2003–2017 eXo Platform SAS. All rights reserved.