@Component @Scope(value="request") public class RecordsResource extends Object
| Constructor and Description |
|---|
RecordsResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRecord(String globalId)
Deletes record with all its representations in all versions.
|
eu.europeana.cloud.common.model.Record |
getRecord(javax.ws.rs.core.UriInfo uriInfo,
String globalId)
Returns record with all its latest persistent representations.
|
public eu.europeana.cloud.common.model.Record getRecord(@Context
javax.ws.rs.core.UriInfo uriInfo,
String globalId)
throws eu.europeana.cloud.service.mcs.exception.RecordNotExistsException
globalId - cloud id of the record (required).eu.europeana.cloud.service.mcs.exception.RecordNotExistsException - provided id is not known to Unique
Identifier Service.@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void deleteRecord(String globalId) throws eu.europeana.cloud.service.mcs.exception.RecordNotExistsException, eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
globalId - cloud id of the record (required).eu.europeana.cloud.service.mcs.exception.RecordNotExistsException - provided id is not known to Unique
Identifier Service.eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - thrown if no representation can
be found for requested record. Service cannot delete such record.Copyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.