use of org.opencastproject.index.service.catalog.adapter.MetadataList in project opencast by opencast.
the class IndexServiceImpl method updateCommonEventMetadata.
@Override
public MetadataList updateCommonEventMetadata(String id, String metadataJSON, AbstractSearchIndex index) throws IllegalArgumentException, IndexServiceException, SearchIndexException, NotFoundException, UnauthorizedException {
MetadataList metadataList;
try {
metadataList = getMetadataListWithCommonEventCatalogUIAdapter();
metadataList.fromJSON(metadataJSON);
} catch (Exception e) {
logger.warn("Not able to parse the event metadata {}: {}", metadataJSON, getStackTrace(e));
throw new IllegalArgumentException("Not able to parse the event metadata " + metadataJSON, e);
}
return updateEventMetadata(id, metadataList, index);
}
use of org.opencastproject.index.service.catalog.adapter.MetadataList in project opencast by opencast.
the class IndexServiceImpl method getMetadataListWithCommonEventCatalogUIAdapter.
private MetadataList getMetadataListWithCommonEventCatalogUIAdapter() {
MetadataList metadataList = new MetadataList();
metadataList.add(eventCatalogUIAdapter, eventCatalogUIAdapter.getRawFields());
return metadataList;
}
Aggregations