Class EventUtils
java.lang.Object
org.opencastproject.index.service.impl.util.EventUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final com.entwinemedia.fn.Fn<Publication, Boolean> A filter to remove all internal channel publications. -
Method Summary
Modifier and TypeMethodDescriptionstatic DublinCoreMetadataCollectiongetEventMetadata(Event event, EventCatalogUIAdapter eventCatalogUIAdapter) Loads the metadata for the given eventstatic DublinCoreMetadataCollectiongetEventMetadata(Event event, EventCatalogUIAdapter eventCatalogUIAdapter, ResourceListQuery collectionQueryOverride) Loads the metadata for the given eventstatic voidsetEventMetadataValues(Event event, 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 DublinCoreMetadataCollection getEventMetadata(Event event, 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 DublinCoreMetadataCollection getEventMetadata(Event event, EventCatalogUIAdapter eventCatalogUIAdapter, 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(Event event, DublinCoreMetadataCollection eventMetadata) throws ParseException Set values of metadata fields from event.- Parameters:
event- theEventfrom the indexeventMetadata- aDublinCoreMetadataCollectionto be modified- Throws:
ParseException
-