| Modifier and Type | Method and Description |
|---|---|
Datastream |
asDatastream(javax.jcr.Node node)
Retrieve a Datastream instance by pid and dsid
|
Datastream |
createDatastream(javax.jcr.Session session,
String dsPath)
Create a stub datastream without content
|
Datastream |
createDatastream(javax.jcr.Session session,
String dsPath,
String contentType,
String originalFileName,
InputStream requestBodyStream)
Create a new Datastream node in the repository
|
Datastream |
createDatastream(javax.jcr.Session session,
String dsPath,
String contentType,
String originalFileName,
InputStream requestBodyStream,
URI checksum)
Create a new Datastream node in the repository
|
Datastream |
getDatastream(javax.jcr.Session session,
String path)
Retrieve a Datastream instance by pid and dsid
|
javax.jcr.Node |
getDatastreamNode(javax.jcr.Session session,
String path)
Retrieve the JCR node for a Datastream by pid and dsid
|
Collection<FixityResult> |
getFixity(javax.jcr.Node resource,
URI dsChecksum,
long dsSize)
Get the fixity results for this datastream's bitstream, and compare it
against the given checksum and size.
|
RdfStream |
getFixityResultsModel(IdentifierTranslator subjects,
Datastream datastream)
Get the fixity results for the datastream as a RDF Dataset
|
Collection<FixityResult> |
runFixityAndFixProblems(Datastream datastream)
Run the fixity check on the datastream and attempt to automatically
correct failures if additional copies of the bitstream are available
|
exists, setRepositoryDatastream createDatastream(javax.jcr.Session session, String dsPath) throws javax.jcr.RepositoryException
session - dsPath - javax.jcr.RepositoryExceptionDatastream createDatastream(javax.jcr.Session session, String dsPath, String contentType, String originalFileName, InputStream requestBodyStream) throws javax.jcr.RepositoryException, InvalidChecksumException
session - dsPath - the absolute path to put the datastreamcontentType - the mime-type for the requestBodyStreamoriginalFileName - the original file name for the input streamrequestBodyStream - binary payload for the datastreamjavax.jcr.RepositoryExceptionInvalidChecksumExceptionDatastream createDatastream(javax.jcr.Session session, String dsPath, String contentType, String originalFileName, InputStream requestBodyStream, URI checksum) throws javax.jcr.RepositoryException, InvalidChecksumException
session - dsPath - the absolute path to put the datastreamcontentType - the mime-type for the requestBodyStreamoriginalFileName - the original file name for the input streamrequestBodyStream - binary payload for the datastreamchecksum - the digest for the binary payload (as urn:sha1:xyz) @returnjavax.jcr.RepositoryExceptionInvalidChecksumExceptionjavax.jcr.Node getDatastreamNode(javax.jcr.Session session,
String path)
throws javax.jcr.RepositoryException
path - javax.jcr.RepositoryExceptionDatastream getDatastream(javax.jcr.Session session, String path) throws javax.jcr.RepositoryException
path - jcr path to the datastreamjavax.jcr.RepositoryExceptionDatastream asDatastream(javax.jcr.Node node) throws ResourceTypeException, javax.jcr.RepositoryException
node - datastream nodeResourceTypeExceptionjavax.jcr.RepositoryExceptionRdfStream getFixityResultsModel(IdentifierTranslator subjects, Datastream datastream) throws javax.jcr.RepositoryException
subjects - datastream - javax.jcr.RepositoryExceptionCollection<FixityResult> runFixityAndFixProblems(Datastream datastream) throws javax.jcr.RepositoryException
datastream - javax.jcr.RepositoryExceptionCollection<FixityResult> getFixity(javax.jcr.Node resource, URI dsChecksum, long dsSize) throws javax.jcr.RepositoryException
resource - dsChecksum - -the checksum and algorithm represented as a URIdsSize - javax.jcr.RepositoryExceptionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.