Class CalendarGenerator
java.lang.Object
org.opencastproject.scheduler.impl.CalendarGenerator
Create an iCalendar from the provided scheduled events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.fortuna.ical4j.model.CalendariCalendarprotected org.opencastproject.series.api.SeriesServiceSeries service for Series DC retrieval -
Constructor Summary
ConstructorsConstructorDescriptionCalendarGenerator(org.opencastproject.series.api.SeriesService seriesService) Default constructor that creates a CalendarGenerator object -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEvent(org.opencastproject.mediapackage.MediaPackage mp, org.opencastproject.metadata.dublincore.DublinCoreCatalog catalog, String agentId, Date start, Date end, Date lastModified, String captureAgentMetadata) Adds an SchedulerEvent as a new entry to this iCalendarnet.fortuna.ical4j.model.Calendargets the iCalendar creates by this object.voidsetCalendar(net.fortuna.ical4j.model.Calendar cal) Sets an iCalender to work with
-
Field Details
-
cal
protected net.fortuna.ical4j.model.Calendar caliCalendar -
seriesService
protected org.opencastproject.series.api.SeriesService seriesServiceSeries service for Series DC retrieval
-
-
Constructor Details
-
CalendarGenerator
public CalendarGenerator(org.opencastproject.series.api.SeriesService seriesService) Default constructor that creates a CalendarGenerator object- Parameters:
seriesService- the series service
-
-
Method Details
-
getCalendar
public net.fortuna.ical4j.model.Calendar getCalendar()gets the iCalendar creates by this object.- Returns:
- the iCalendar
-
setCalendar
public void setCalendar(net.fortuna.ical4j.model.Calendar cal) Sets an iCalender to work with- Parameters:
cal- the iCalendar to set
-
addEvent
public boolean addEvent(org.opencastproject.mediapackage.MediaPackage mp, org.opencastproject.metadata.dublincore.DublinCoreCatalog catalog, String agentId, Date start, Date end, Date lastModified, String captureAgentMetadata) Adds an SchedulerEvent as a new entry to this iCalendar- Parameters:
mp-MediaPackageof eventagentId- the agent identifierstart- the start dateend- the end datecaptureAgentMetadata- properties for capture agent metadata- Returns:
- true if the event could be added.
-