public interface VersionService
Modifier and Type | Field and Description |
---|---|
static DateTimeFormatter |
MEMENTO_LABEL_FORMATTER
To format a datetime for use as a Memento path.
|
static DateTimeFormatter |
MEMENTO_RFC_1123_FORMATTER
To format a datetime as RFC-1123 with correct timezone.
|
Modifier and Type | Method and Description |
---|---|
FedoraBinary |
createBinaryVersion(FedoraSession session,
FedoraBinary resource,
Instant dateTime,
InputStream contentStream,
Collection<URI> checksums,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Explicitly creates a version of a binary resource.
|
FedoraBinary |
createBinaryVersion(FedoraSession session,
FedoraBinary resource,
Instant dateTime,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Explicitly creates a version of a binary resource from the current state of that binary.
|
FedoraBinary |
createExternalBinaryVersion(FedoraSession session,
FedoraBinary resource,
Instant dateTime,
Collection<URI> checksums,
String externalHandling,
String externalUrl) |
FedoraResource |
createVersion(FedoraSession session,
FedoraResource resource,
IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
Instant dateTime)
Explicitly creates a version for the resource at the path provided.
|
FedoraResource |
createVersion(FedoraSession session,
FedoraResource resource,
IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
Instant dateTime,
InputStream rdfInputStream,
org.apache.jena.riot.Lang rdfFormat)
Explicitly creates a version for the resource at the path provided for the date/time provided.
|
static final DateTimeFormatter MEMENTO_LABEL_FORMATTER
static final DateTimeFormatter MEMENTO_RFC_1123_FORMATTER
FedoraResource createVersion(FedoraSession session, FedoraResource resource, IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, Instant dateTime)
session
- the session in which the resource residesresource
- the resource to versionidTranslator
- translator for producing URI of resourcesdateTime
- the date/time of the versionFedoraResource createVersion(FedoraSession session, FedoraResource resource, IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, Instant dateTime, InputStream rdfInputStream, org.apache.jena.riot.Lang rdfFormat)
session
- the session in which the resource residesresource
- the resource to versionidTranslator
- translator for producing URI of resourcesdateTime
- the date/time of the versionrdfInputStream
- if provided, this stream will provide the properties of the new memento. If null, then
the state of the current resource will be used.rdfFormat
- RDF language format nameFedoraBinary createBinaryVersion(FedoraSession session, FedoraBinary resource, Instant dateTime, InputStream contentStream, Collection<URI> checksums, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws InvalidChecksumException
session
- the session in which the resource residesresource
- the binary resource to versiondateTime
- the date/time of the versioncontentStream
- if provided, the content in this stream will be used as the content of the new binary
memento. If null, then the current state of the binary will be used.checksums
- Collection of checksum URIs of the content (optional)storagePolicyDecisionPoint
- optional storage policyInvalidChecksumException
- if there are errors applying checksumsFedoraBinary createBinaryVersion(FedoraSession session, FedoraBinary resource, Instant dateTime, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws InvalidChecksumException
session
- the session in which the resource residesresource
- the binary resource to versiondateTime
- the date/time of the versionstoragePolicyDecisionPoint
- optional storage policyInvalidChecksumException
- on errorFedoraBinary createExternalBinaryVersion(FedoraSession session, FedoraBinary resource, Instant dateTime, Collection<URI> checksums, String externalHandling, String externalUrl) throws InvalidChecksumException
session
- the session in which the resource residesresource
- the binary resource to versiondateTime
- the date/time of the versionchecksums
- Collection of checksum URIs of the content (optional)externalHandling
- What type of handling the external resource needs (proxy or redirect)externalUrl
- Url for the external resourcejInvalidChecksumException
- if there are errors applying checksumsCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.