java.lang.Object
org.opencastproject.index.service.impl.util.EventUtils

public final class EventUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final com.entwinemedia.fn.Fn<org.opencastproject.mediapackage.Publication,Boolean>
    A filter to remove all internal channel publications.
    static final Map<String,String>
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection
    getEventMetadata(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.EventCatalogUIAdapter eventCatalogUIAdapter)
    Loads the metadata for the given event
    static org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection
    getEventMetadata(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.EventCatalogUIAdapter eventCatalogUIAdapter, org.opencastproject.list.api.ResourceListQuery collectionQueryOverride)
    Loads the metadata for the given event
    static void
    setEventMetadataValues(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection eventMetadata)
    Set values of metadata fields from event.

    Methods inherited from class java.lang.Object

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

    • PUBLICATION_CHANNELS

      public static final Map<String,String> PUBLICATION_CHANNELS
    • ENGAGE_LIVE_CHANNEL_ID

      public static final String ENGAGE_LIVE_CHANNEL_ID
      See Also:
    • internalChannelFilter

      public static final com.entwinemedia.fn.Fn<org.opencastproject.mediapackage.Publication,Boolean> internalChannelFilter
      A filter to remove all internal channel publications.
  • Method Details

    • getEventMetadata

      public static org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection getEventMetadata(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.EventCatalogUIAdapter eventCatalogUIAdapter) throws ParseException
      Loads the metadata for the given event
      Parameters:
      event - the source Event
      eventCatalogUIAdapter - the catalog definition
      Returns:
      a DublinCoreMetadataCollection instance with all the event metadata
      Throws:
      ParseException
    • getEventMetadata

      public static org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection getEventMetadata(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.EventCatalogUIAdapter eventCatalogUIAdapter, org.opencastproject.list.api.ResourceListQuery collectionQueryOverride) throws ParseException
      Loads the metadata for the given event
      Parameters:
      event - the source Event
      eventCatalogUIAdapter - the catalog definition
      collectionQueryOverride - a custom list provider query mapped to every metadata field.
      Returns:
      a DublinCoreMetadataCollection instance with all the event metadata
      Throws:
      ParseException
    • setEventMetadataValues

      public static void setEventMetadataValues(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection eventMetadata) throws ParseException
      Set values of metadata fields from event.
      Parameters:
      event - the Event from the index
      eventMetadata - a DublinCoreMetadataCollection to be modified
      Throws:
      ParseException