Search in sources :

Example 1 with DatasetIndexRemoveException

use of eu.europeana.metis.sandbox.common.exception.DatasetIndexRemoveException in project metis-sandbox by europeana.

the class IndexingServiceImpl method remove.

@Override
public void remove(String datasetId) {
    requireNonNull(datasetId, "Dataset id must not be null");
    try {
        previewIndexer.removeAll(datasetId, null);
        publishIndexer.removeAll(datasetId, null);
    } catch (IndexingException e) {
        throw new DatasetIndexRemoveException(datasetId, e);
    }
}
Also used : IndexingException(eu.europeana.indexing.exception.IndexingException) DatasetIndexRemoveException(eu.europeana.metis.sandbox.common.exception.DatasetIndexRemoveException)

Aggregations

IndexingException (eu.europeana.indexing.exception.IndexingException)1 DatasetIndexRemoveException (eu.europeana.metis.sandbox.common.exception.DatasetIndexRemoveException)1