Class CalendarGenerator

java.lang.Object
org.opencastproject.scheduler.impl.CalendarGenerator

public class CalendarGenerator extends Object
Create an iCalendar from the provided scheduled events.
  • Field Details

    • cal

      protected net.fortuna.ical4j.model.Calendar cal
      iCalendar
    • seriesService

      protected SeriesService seriesService
      Series service for Series DC retrieval
  • Constructor Details

    • CalendarGenerator

      public CalendarGenerator(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(MediaPackage mp, DublinCoreCatalog catalog, String agentId, Date start, Date end, Date lastModified, String captureAgentMetadata)
      Adds an SchedulerEvent as a new entry to this iCalendar
      Parameters:
      mp - MediaPackage of event
      agentId - the agent identifier
      start - the start date
      end - the end date
      captureAgentMetadata - properties for capture agent metadata
      Returns:
      true if the event could be added.