Class ICal4JExporter
- java.lang.Object
-
- org.silverpeas.core.calendar.ical4j.ICal4JExporter
-
- All Implemented Interfaces:
ICalendarExporter
,Exporter<Stream<CalendarEvent>>
@Service public class ICal4JExporter extends Object implements ICalendarExporter
Implementation of theICalendarExporter
interface by using the iCal4J library to perform the serialization of the events of a calendar in text in the iCalendar format.- Author:
- mmoquillon
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.calendar.icalendar.ICalendarExporter
CALENDAR, HIDE_PRIVATE_DATA
-
-
Constructor Summary
Constructors Constructor Description ICal4JExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exports(ExportDescriptor descriptor, Supplier<Stream<CalendarEvent>> supplier)
Exports a the supplied stream of events of a given calendar into the output stream provided by the specified descriptor.
-
-
-
Method Detail
-
exports
public void exports(ExportDescriptor descriptor, Supplier<Stream<CalendarEvent>> supplier) throws ExportException
Description copied from interface:ICalendarExporter
Exports a the supplied stream of events of a given calendar into the output stream provided by the specified descriptor. The calendar instance must be provided by the descriptor.- Specified by:
exports
in interfaceExporter<Stream<CalendarEvent>>
- Specified by:
exports
in interfaceICalendarExporter
- Parameters:
descriptor
- the export descriptor that describes how the export has to be done.supplier
- the supplier that provides what resource to export. It starts the export process by, for example, getting the resource from the Silverpeas data source.- Throws:
ExportException
- when an unexpected error occurs while exporting the resource.
-
-