@Component @Scope(value="request") public class DataSetsResource extends Object
| Constructor and Description |
|---|
DataSetsResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createDataSet(javax.ws.rs.core.UriInfo uriInfo,
String providerId,
String dataSetId,
String description)
Creates a new data set.
|
eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataSet> |
getDataSets(String providerId,
String startFrom)
Returns all data sets for a provider.
|
public eu.europeana.cloud.common.response.ResultSlice<eu.europeana.cloud.common.model.DataSet> getDataSets(String providerId, String startFrom)
providerId - provider id for which returned data sets will belong to (required)startFrom - reference to next slice of result. If not provided,
first slice of result will be returned.@PreAuthorize(value="isAuthenticated()")
public javax.ws.rs.core.Response createDataSet(@Context
javax.ws.rs.core.UriInfo uriInfo,
String providerId,
String dataSetId,
String description)
throws eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException,
eu.europeana.cloud.service.mcs.exception.DataSetAlreadyExistsException
providerId - the provider for the created data setdataSetId - identifier of the data set (required).description - description of the data set.eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException - data provider does not exist.eu.europeana.cloud.service.mcs.exception.DataSetAlreadyExistsException - data set with this id already existsCopyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.