@Scope(value="prototype") @Path(value="/fcr:restore") public class FedoraRepositoryRestore extends AbstractResource
Modifier and Type | Field and Description |
---|---|
protected RepositoryService |
repositoryService
The fcrepo repository service
|
protected javax.jcr.Session |
session |
binaryService, containerService, eventBus, headers, nodeService, pidMinter, sessions, uriInfo, versionService
Constructor and Description |
---|
FedoraRepositoryRestore() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
runRestore(InputStream bodyStream)
This method runs a repository restore.
|
toPath
@Inject protected javax.jcr.Session session
@Inject protected RepositoryService repositoryService
public FedoraRepositoryRestore()
@POST public javax.ws.rs.core.Response runRestore(InputStream bodyStream) throws IOException
bodyStream
- the body streamIOException
- if IO exception occurredCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.