@Component @Scope(value="request") public class DataSetResource extends Object
| Constructor and Description |
|---|
DataSetResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteDataSet(String dataSetId,
String providerId)
Deletes data set.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.Representation> |
getDataSetContents(String dataSetId,
String providerId,
String startFrom)
Lists representation versions from data set.
|
void |
updateDataSet(String dataSetId,
String providerId,
String description)
Updates description of a data set.
|
@PreAuthorize(value="hasPermission(#dataSetId.concat(\'/\').concat(#providerId), \'eu.europeana.cloud.common.model.DataSet\', delete)") public javax.ws.rs.core.Response deleteDataSet(String dataSetId, String providerId) throws eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException
providerId - identifier of the dataset's provider(required).dataSetId - identifier of the deleted data set(required).eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException - data set not exists.public eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.Representation> getDataSetContents(String dataSetId, String providerId, String startFrom) throws eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException
providerId - identifier of the dataset's provider (required).dataSetId - identifier of a data set (required).startFrom - reference to next slice of result. If not provided,
first slice of result will be returned.eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException - no such data set exists.@PreAuthorize(value="hasPermission(#dataSetId.concat(\'/\').concat(#providerId), \'eu.europeana.cloud.common.model.DataSet\', write)") public void updateDataSet(String dataSetId, String providerId, String description) throws eu.europeana.cloud.service.mcs.exception.AccessDeniedOrObjectDoesNotExistException, eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException
providerId - identifier of the dataset's provider (required).dataSetId - identifier of a data set (required).description - description of data seteu.europeana.cloud.service.mcs.exception.DataSetNotExistsException - no such data set exists.eu.europeana.cloud.service.mcs.exception.AccessDeniedOrObjectDoesNotExistException - there is an attempt to access a resource without the proper permissions.
or the resource does not exist at allCopyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.