Class EventUtils
java.lang.Object
org.opencastproject.index.service.impl.util.EventUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.opencastproject.metadata.dublincore.DublinCoreMetadataCollectiongetEventMetadata(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.EventCatalogUIAdapter eventCatalogUIAdapter) Loads the metadata for the given eventstatic org.opencastproject.metadata.dublincore.DublinCoreMetadataCollectiongetEventMetadata(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 eventstatic voidsetEventMetadataValues(org.opencastproject.elasticsearch.index.objects.event.Event event, org.opencastproject.metadata.dublincore.DublinCoreMetadataCollection eventMetadata) Set values of metadata fields from event.
-
Field Details
-
PUBLICATION_CHANNELS
-
ENGAGE_LIVE_CHANNEL_ID
- See Also:
-
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 sourceEventeventCatalogUIAdapter- the catalog definition- Returns:
- a
DublinCoreMetadataCollectioninstance 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 sourceEventeventCatalogUIAdapter- the catalog definitioncollectionQueryOverride- a custom list provider query mapped to every metadata field.- Returns:
- a
DublinCoreMetadataCollectioninstance 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- theEventfrom the indexeventMetadata- aDublinCoreMetadataCollectionto be modified- Throws:
ParseException
-