public interface DataSetService
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignment(String providerId,
String dataSetId,
String recordId,
String schema,
String version)
Assigns a representation in predefined or latest version to a data set.
|
eu.europeana.cloud.common.model.DataSet |
createDataSet(String providerId,
String dataSetId,
String description)
Creates a new data set for specified provider.
|
void |
deleteDataSet(String providerId,
String dataSetId)
Deletes data set.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataSet> |
getDataSets(String providerId,
String thresholdDatasetId,
int limit)
Returns all data sets for particular data provider (in slices).
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.Representation> |
listDataSet(String providerId,
String dataSetId,
String thresholdParam,
int limit)
Returns all representations from particular data set (in slices).
|
void |
removeAssignment(String providerId,
String dataSetId,
String recordId,
String schema)
Removes representation assignment from data set.
|
eu.europeana.cloud.common.model.DataSet |
updateDataSet(String providerId,
String dataSetId,
String description)
Updates description of data set.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.Representation> listDataSet(String providerId, String dataSetId, String thresholdParam, int limit) throws DataSetNotExistsException
providerId - provider's (owner of data set) id.dataSetId - data set idthresholdParam - if null - will return first result slice. Result slices contain token for next pages, which should be
provided in this parameter.limit - max number of results in one slice.DataSetNotExistsException - dataset not exists.void addAssignment(String providerId, String dataSetId, String recordId, String schema, String version) throws DataSetNotExistsException, RepresentationNotExistsException
providerId - owner of data setdataSetId - data set idrecordId - id of recordschema - schema name of representationversion - version of representatnion (if null, the latest persistent version is assigned to a data set)DataSetNotExistsException - if such data set not existsRepresentationNotExistsException - if such representation does not exist. May be also thrown if version is not provided and no
persistent representation version exist for specified schema and record.void removeAssignment(String providerId, String dataSetId, String recordId, String schema) throws DataSetNotExistsException
providerId - owner of data setdataSetId - data set idrecordId - id of recordschema - schema name of representationDataSetNotExistsException - if such data set not existseu.europeana.cloud.common.model.DataSet createDataSet(String providerId, String dataSetId, String description) throws ProviderNotExistsException, DataSetAlreadyExistsException
providerId - owner of data setdataSetId - identifier of newly created data setdescription - description of newly created data set (may be any text)ProviderNotExistsException - no such data provider existsDataSetAlreadyExistsException - data set with this identifer has already been created for this providereu.europeana.cloud.common.model.DataSet updateDataSet(String providerId, String dataSetId, String description) throws DataSetNotExistsException
providerId - owner of data setdataSetId - identifier of newly created data setdescription - new description of data set (may be any text)DataSetNotExistsExceptioneu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataSet> getDataSets(String providerId, String thresholdDatasetId, int limit)
providerId - provider id.thresholdDatasetId - if null - will return first result slice. Result slices contain token for next pages, which should be
provided in this parameter.limit - max number of results in one slice.void deleteDataSet(String providerId, String dataSetId) throws DataSetNotExistsException
providerId - provider iddataSetId - data set id.DataSetNotExistsException - no such data set exists (data provider does not have one or data provider not exist)Copyright © 2013–2016 Europeana Cloud Development Team. All rights reserved.