|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.calendar.service.impl.ICalendarImportExport
public class ICalendarImportExport
Created by The eXo Platform SARL Author : Hung Nguyen hung.nguyen@exoplatform.com Jul 2, 2007
| Constructor Summary | |
|---|---|
ICalendarImportExport(JCRDataStorage storage)
|
|
| Method Summary | |
|---|---|
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 |
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 |
boolean |
isValidate(InputStream icalInputStream)
The method return true if the input stream is correct format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ICalendarImportExport(JCRDataStorage storage)
throws Exception
Exception| Method Detail |
|---|
public net.fortuna.ical4j.model.Calendar getCalendarComponent(net.fortuna.ical4j.model.Calendar calendar,
CalendarEvent exoEvent,
String componentType)
throws Exception
Exception
public OutputStream exportCalendar(String username,
List<String> calendarIds,
String type,
int limited)
throws Exception
CalendarImportExport
exportCalendar 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 event
Exception
public OutputStream exportEventCalendar(String username,
String calendarId,
String type,
String eventId)
throws Exception
CalendarImportExport
exportEventCalendar 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 id
Exception
public List<CalendarEvent> getEventObjects(InputStream icalInputStream)
throws Exception
CalendarImportExport
getEventObjects in interface CalendarImportExporticalInputStream - the input stream
Exceptionpublic boolean isValidate(InputStream icalInputStream)
CalendarImportExport
isValidate in interface CalendarImportExporticalInputStream - the input stream
public void importCalendar(String username,
InputStream icalInputStream,
String calendarId,
String calendarName,
Calendar from,
Calendar to,
boolean isNew)
throws Exception
CalendarImportExport
importCalendar 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 calendar
Exception
public ByteArrayOutputStream exportEventCalendar(CalendarEvent exoEvent)
throws Exception
CalendarImportExport
exportEventCalendar in interface CalendarImportExportexoEvent - : event object
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||