@Component @Scope(value="request") public class RepresentationVersionResource extends Object
| Constructor and Description |
|---|
RepresentationVersionResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
copyRepresentation(javax.ws.rs.core.UriInfo uriInfo,
String version,
String schema,
String globalId)
Copies all information with all files and their contents from one
representation version to a new temporary one.
|
void |
deleteRepresentation(String version,
String schema,
String globalId)
Deletes representation version.
|
eu.europeana.cloud.common.model.Representation |
getRepresentationVersion(javax.ws.rs.core.UriInfo uriInfo,
String version,
String schema,
String globalId)
Returns representation in a specified version.
|
javax.ws.rs.core.Response |
persistRepresentation(javax.ws.rs.core.UriInfo uriInfo,
String version,
String schema,
String globalId)
Persists temporary representation.
|
@PreAuthorize(value="hasPermission(#globalId.concat(\'/\').concat(#schema).concat(\'/\').concat(#version), \'eu.europeana.cloud.common.model.Representation\', read)")
public eu.europeana.cloud.common.model.Representation getRepresentationVersion(@Context
javax.ws.rs.core.UriInfo uriInfo,
String version,
String schema,
String globalId)
throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
globalId - cloud id of the record which contains the representation(required).schema - name of the representation(required).version - a specific version of the representation(required).eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - representation does not exist in the
specified version.@PreAuthorize(value="hasPermission(#globalId.concat(\'/\').concat(#schema).concat(\'/\').concat(#version), \'eu.europeana.cloud.common.model.Representation\', delete)") public void deleteRepresentation(String version, String schema, String globalId) throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException, eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException
globalId - cloud id of the record which contains the representation version (required).schema - name of the representation(required).version - a specific version of the representation(required).eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - representation does not exist in
specified version.eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException - representation in
specified version is persistent and as such cannot be removed.@PreAuthorize(value="hasPermission(#globalId.concat(\'/\').concat(#schema).concat(\'/\').concat(#version), \'eu.europeana.cloud.common.model.Representation\', write)")
public javax.ws.rs.core.Response persistRepresentation(@Context
javax.ws.rs.core.UriInfo uriInfo,
String version,
String schema,
String globalId)
throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException,
eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException,
eu.europeana.cloud.service.mcs.exception.CannotPersistEmptyRepresentationException
globalId - cloud id of the record which contains the representation version(required).schema - name of the representation(required).version - a specific version of the representation(required).eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - representation does not exist in
specified version.eu.europeana.cloud.service.mcs.exception.CannotModifyPersistentRepresentationException - representation
version is already persistent.eu.europeana.cloud.service.mcs.exception.CannotPersistEmptyRepresentationException - representation version
has no file attached and as such cannot be made persistent.@PreAuthorize(value="hasPermission(#globalId.concat(\'/\').concat(#schema).concat(\'/\').concat(#version), \'eu.europeana.cloud.common.model.Representation\', read)")
public javax.ws.rs.core.Response copyRepresentation(@Context
javax.ws.rs.core.UriInfo uriInfo,
String version,
String schema,
String globalId)
throws eu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException
globalId - cloud id of the record which contains the representation versionschema - name of the representationversion - a specific version of the representationeu.europeana.cloud.service.mcs.exception.RepresentationNotExistsException - representation does not exist in
specified version.Copyright © 2013–2015 Europeana Cloud Development Team. All rights reserved.