@Scope(value="prototype") @Path(value="/{path: .*}/fcr:import") public class FedoraImport extends FedoraBaseResource
Modifier and Type | Field and Description |
---|---|
protected SerializerUtil |
serializers |
protected javax.jcr.Session |
session |
idTranslator
binaryService, containerService, eventBus, nodeService, pidMinter, sessions, uriInfo, versionService
Constructor and Description |
---|
FedoraImport() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
importObject(String externalPath,
String format,
InputStream requestBodyStream)
Deserialize a serialized object at the current path POST
/fcr:import?format=jcr/xml (with a JCR/XML payload)
|
protected javax.jcr.Session |
session() |
getResourceFromPath, setUpJMSBaseURIs, translator
toPath
@Inject protected javax.jcr.Session session
@Autowired protected SerializerUtil serializers
public FedoraImport()
@POST public javax.ws.rs.core.Response importObject(@PathParam(value="path") String externalPath, @QueryParam(value="format")@DefaultValue(value="jcr/xml") String format, InputStream requestBodyStream) throws IOException, InvalidChecksumException, URISyntaxException
externalPath
- the external pathformat
- the formatrequestBodyStream
- the request body streamIOException
- if IO exception occurredInvalidChecksumException
- if invalid checksum exception occurredURISyntaxException
- if uri syntax exceptionprotected javax.jcr.Session session()
session
in class FedoraBaseResource
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.