@Component @Scope(value="request") public class RepresentationResource extends Object
| Constructor and Description |
|---|
RepresentationResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createRepresentation(javax.ws.rs.core.UriInfo uriInfo,
String globalId,
String schema,
String providerId)
Creates a new representation version.
|
void |
deleteRepresentation(String globalId,
String schema)
Deletes representation with all of its versions for a given cloudId.
|
eu.europeana.cloud.common.model.Representation |
getRepresentation(javax.ws.rs.core.UriInfo uriInfo,
String globalId,
String schema)
Returns the latest persistent version of a given representation .
|
@PostAuthorize(value="hasPermission( (#globalId).concat(\'/\').concat(#schema).concat(\'/\').concat(returnObject.version) , \'eu.europeana.cloud.common.model.Representation\', read)")
public eu.europeana.cloud.common.model.Representation getRepresentation(@Context
javax.ws.rs.core.UriInfo uriInfo,
String globalId,
String schema)
throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
globalId - cloud id of the record which contains the representation .schema - name of the representation .eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - representation does not exist or no persistent version of
this representation exists.@PreAuthorize(value="hasRole(\'ROLE_ADMIN\')") public void deleteRepresentation(String globalId, String schema) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
globalId - cloud id of the record which all the representations will be deleted (required)schema - name of the representation to be deleted (required)eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - Representation does not exist.@PreAuthorize(value="isAuthenticated()")
public javax.ws.rs.core.Response createRepresentation(@Context
javax.ws.rs.core.UriInfo uriInfo,
String globalId,
String schema,
String providerId)
throws eu.europeana.cloud.service.mcs.exception.RecordNotExistsException,
eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException
globalId - cloud id of the record in which the new representation will be created (required).schema - name of the representation to be created (required).providerId - provider id of this representation version.eu.europeana.cloud.service.mcs.exception.RecordNotExistsException - provided id is not known to Unique Identifier Service.eu.europeana.cloud.service.mcs.exception.ProviderNotExistsException - no provider with given id existsCopyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.