com.silverpeas.export.ical
Class ExportableCalendar

java.lang.Object
  extended by com.silverpeas.export.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
 List<CalendarEvent> getEvents()
          Gets the events to export.
 boolean isEmpty()
          Is this exportable calendar is empty?
static ExportableCalendar with(CalendarEvent... event)
          Creates a new calendar ready to be exported with the specified calendar events.
static ExportableCalendar with(Collection<CalendarEvent> events)
          Creates a new calendar ready to be exported with the specified calendar events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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... event)
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.


Copyright © 2016 Silverpeas. All Rights Reserved.