@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 |
idTranslatorbinaryService, 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, translatortoPath@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 - format - requestBodyStream - IOExceptionjavax.jcr.RepositoryExceptionInvalidChecksumExceptionURISyntaxExceptionprotected javax.jcr.Session session()
session in class FedoraBaseResourceCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.