|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CalendarImportExport
Created by The eXo Platform SARL Author : Hung Nguyen hung.nguyen@exoplatform.com Jul 2, 2007
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
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 calendar
Exception
OutputStream 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 event
Exception
OutputStream 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 id
Exception
List<CalendarEvent> getEventObjects(InputStream icalInputStream)
throws Exception
icalInputStream - the input stream
Exception
boolean isValidate(InputStream icalInputStream)
throws Exception
icalInputStream - the input stream
Exception
ByteArrayOutputStream exportEventCalendar(CalendarEvent event)
throws Exception
event - : event object
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||