Class ICal4JImporter
- java.lang.Object
-
- org.silverpeas.core.calendar.ical4j.ICal4JImporter
-
- All Implemented Interfaces:
ICalendarImporter
,Importer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>>
@Service public class ICal4JImporter extends Object implements ICalendarImporter
Implementation of theICalendarImporter
interface by using the iCal4J library to perform the deserialization of calendar events in the iCalendar format.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description ICal4JImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
imports(ImportDescriptor descriptor, Consumer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>> consumer)
Imports the events serialized in the iCal format from the input stream provided by the descriptor and passes the import stream to the specified consumer.
-
-
-
Method Detail
-
imports
public void imports(ImportDescriptor descriptor, Consumer<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>> consumer) throws ImportException
Description copied from interface:ICalendarImporter
Imports the events serialized in the iCal format from the input stream provided by the descriptor and passes the import stream to the specified consumer.- Specified by:
imports
in interfaceICalendarImporter
- Specified by:
imports
in interfaceImporter<Stream<org.apache.commons.lang3.tuple.Pair<CalendarEvent,List<CalendarEventOccurrence>>>>
- Parameters:
descriptor
- the import descriptor that describes how the import has to be done.consumer
- the consumer that takes the resource that was decoded. It ends the import process by, for example, saving it into Silverpeas.- Throws:
ImportException
- when an unexpected error occurs while importing the resource.
-
-