Class ConfigurableDCCatalogUIAdapter
java.lang.Object
org.opencastproject.index.service.catalog.adapter.ConfigurableDCCatalogUIAdapter
- All Implemented Interfaces:
CatalogUIAdapter
- Direct Known Subclasses:
ConfigurableEventDCCatalogUIAdapter,ConfigurableSeriesDCCatalogUIAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CatalogUIAdapterConfigurationThe catalog UI adapter configurationprotected Map<String, MetadataField> The metadata fields for all properties of the underlying DublinCoreprotected MediaPackageElementFlavorThe flavor of this catalogprotected ListProvidersServiceReference to the list providers serviceprotected StringThe organization nameprotected StringThe title of this catalogFields inherited from interface org.opencastproject.metadata.dublincore.CatalogUIAdapter
ORGANIZATION_WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DublinCoreMetadataCollectiongetFieldsFromCatalogs(List<DublinCoreCatalog> dcCatalogs) Returns the media type of catalogs managed by this catalog UI adapter.protected ListProvidersServiceReturns the name of the organization (tenant) this catalog UI adapter belongs to or "*" if this is a tenant-agnostic adapter.Returns all fields of this catalog in a raw data format.getRawFields(Map<String, ResourceListQuery> collectionQueryOverrides) Returns all fields of this catalog in a raw data format.getRawFields(ResourceListQuery collectionQueryOverride) Returns all fields of this catalog in a raw data format.booleanhandlesOrganization(String organization) Check if the catalog UI adapter belongs to a tenant.voidsetListProvidersService(ListProvidersService listProvidersService) voidupdated(Dictionary<String, ?> properties) Reconfigures theSeriesCatalogUIAdapterinstance with an updated set of configuration properties;
-
Field Details
-
config
The catalog UI adapter configuration -
organization
The organization name -
flavor
The flavor of this catalog -
title
The title of this catalog -
dublinCoreProperties
The metadata fields for all properties of the underlying DublinCore -
listProvidersService
Reference to the list providers service
-
-
Constructor Details
-
ConfigurableDCCatalogUIAdapter
public ConfigurableDCCatalogUIAdapter()
-
-
Method Details
-
updated
public void updated(Dictionary<String, ?> properties) throws org.osgi.service.cm.ConfigurationExceptionReconfigures theSeriesCatalogUIAdapterinstance with an updated set of configuration properties;- Parameters:
properties- the configuration properties- Throws:
org.osgi.service.cm.ConfigurationException- if there is a configuration error
-
getRawFields
Description copied from interface:CatalogUIAdapterReturns all fields of this catalog in a raw data format. This is a good starting point to create a new instance of this catalog.- Specified by:
getRawFieldsin interfaceCatalogUIAdapter- Returns:
- The fields with raw data
-
getRawFields
public DublinCoreMetadataCollection getRawFields(Map<String, ResourceListQuery> collectionQueryOverrides) Description copied from interface:CatalogUIAdapterReturns all fields of this catalog in a raw data format. Allows to hand over custom queries to fill the collection of a metadata field (defined by its output id) from a list provider.- Specified by:
getRawFieldsin interfaceCatalogUIAdapter- Parameters:
collectionQueryOverrides- A map of custom list provider queries mapped to metadata fields by the output id. Can be empty.- Returns:
- The fields with raw data
-
getRawFields
Description copied from interface:CatalogUIAdapterReturns all fields of this catalog in a raw data format. Allows to hand over custom queries to fill the collection of a metadata field (defined by its output id) from a list provider.- Specified by:
getRawFieldsin interfaceCatalogUIAdapter- Parameters:
collectionQueryOverride- A custom list provider query mapped to every metadata field.- Returns:
- The fields with raw data
-
getFieldsFromCatalogs
-
getOrganization
Description copied from interface:CatalogUIAdapterReturns the name of the organization (tenant) this catalog UI adapter belongs to or "*" if this is a tenant-agnostic adapter.- Specified by:
getOrganizationin interfaceCatalogUIAdapter- Returns:
- The organization name or "*"
-
handlesOrganization
Description copied from interface:CatalogUIAdapterCheck if the catalog UI adapter belongs to a tenant.- Specified by:
handlesOrganizationin interfaceCatalogUIAdapter- Returns:
- true if adapter belongs to tenant.
-
getFlavor
Description copied from interface:CatalogUIAdapterReturns the media type of catalogs managed by this catalog UI adapter.- Specified by:
getFlavorin interfaceCatalogUIAdapter- Returns:
- The media type of the catalog
-
getUITitle
- Specified by:
getUITitlein interfaceCatalogUIAdapter- Returns:
- Get the human readable title for this catalog ui adapter for various languages.
-
setListProvidersService
-
getListProvidersService
-