@Scope(value="request") @Path(value="/{path: .*}/fcr:export") public class FedoraExport 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 |
---|
FedoraExport() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
exportObject(String externalPath,
String format,
String skipBinary,
String recurse)
Export an object with the given format, e.g.: GET
/path/to/object/fcr:export?format=jcr/xml : the node as JCR/XML
|
protected javax.jcr.Session |
session() |
getResourceFromPath, setUpJMSBaseURIs, translator
toPath
@Autowired protected SerializerUtil serializers
@Inject protected javax.jcr.Session session
public FedoraExport()
@GET public javax.ws.rs.core.Response exportObject(@PathParam(value="path") String externalPath, @QueryParam(value="format")@DefaultValue(value="jcr/xml") String format, @QueryParam(value="skipBinary")@DefaultValue(value="true") String skipBinary, @QueryParam(value="recurse")@DefaultValue(value="false") String recurse)
externalPath
- the external pathformat
- the format stringskipBinary
- the value whether skip binaryrecurse
- the value whether recurseprotected javax.jcr.Session session()
session
in class FedoraBaseResource
Copyright © 2013–2015 DuraSpace, Inc.. All rights reserved.