@Component @Scope(value="request") public class DataSetAssignmentsResource extends Object
| Constructor and Description |
|---|
DataSetAssignmentsResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAssignment(String providerId,
String dataSetId,
String recordId,
String schema,
String representationVersion)
Assigns representation into a data set.
|
void |
removeAssignment(String providerId,
String dataSetId,
String recordId,
String schema)
Unassigns representation from a data set.
|
@PreAuthorize(value="hasPermission(#dataSetId.concat(\'/\').concat(#providerId), \'eu.europeana.cloud.common.model.DataSet\', write)") public void addAssignment(String providerId, String dataSetId, String recordId, String schema, String representationVersion) throws eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
providerId - identifier of provider(required)dataSetId - identifier of data set (required)recordId - cloud id of record (required)schema - schema of representation (required)representationVersion - version of representation. If not provided,
latest persistent version will be assigned to data set.eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException - no such data set existseu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - no such representation exists.@PreAuthorize(value="hasPermission(#dataSetId.concat(\'/\').concat(#providerId), \'eu.europeana.cloud.common.model.DataSet\', write)") public void removeAssignment(String providerId, String dataSetId, String recordId, String schema) throws eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException
providerId - identifier of provider(required)dataSetId - identifier of data set (required)recordId - cloud id of record (required)schema - schema of representation (required)eu.europeana.cloud.service.mcs.exception.DataSetNotExistsException - no such data set existsCopyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.