Class CalendarGenerator

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

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

    Fields
    Modifier and Type
    Field
    Description
    protected net.fortuna.ical4j.model.Calendar
    iCalendar
    protected org.opencastproject.series.api.SeriesService
    Series service for Series DC retrieval
  • Constructor Summary

    Constructors
    Constructor
    Description
    CalendarGenerator(org.opencastproject.series.api.SeriesService seriesService)
    Default constructor that creates a CalendarGenerator object
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    net.fortuna.ical4j.model.Calendar
    gets the iCalendar creates by this object.
    void
    setCalendar(net.fortuna.ical4j.model.Calendar cal)
    Sets an iCalender to work with

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • cal

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

      protected org.opencastproject.series.api.SeriesService seriesService
      Series 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 - 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.