Class ExportableCalendar
- java.lang.Object
-
- org.silverpeas.core.importexport.ical.ExportableCalendar
-
- All Implemented Interfaces:
Serializable
public class ExportableCalendar extends Object implements Serializable
An exportable calendar is a collection of events that can be exported in an iCal calendar.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CalendarEvent>
getEvents()
Gets the events to export.boolean
isEmpty()
Is this exportable calendar is empty?static ExportableCalendar
with(Collection<CalendarEvent> events)
Creates a new calendar ready to be exported with the specified calendar events.static ExportableCalendar
with(CalendarEvent... events)
Creates a new calendar ready to be exported with the specified calendar events.
-
-
-
Method Detail
-
with
public static ExportableCalendar with(Collection<CalendarEvent> events)
Creates a new calendar ready to be exported with the specified calendar events.- Parameters:
events
- the events to export.- Returns:
- an exportable calendar.
-
with
public static ExportableCalendar with(CalendarEvent... events)
Creates a new calendar ready to be exported with the specified calendar events.- Parameters:
events
- the events to export.- Returns:
- an exportable calendar.
-
getEvents
public List<CalendarEvent> getEvents()
Gets the events to export.- Returns:
- a list of events to export.
-
isEmpty
public boolean isEmpty()
Is this exportable calendar is empty?- Returns:
- true if contains no events.
-
-