public class DatastreamImpl extends FedoraResourceImpl implements org.fcrepo.kernel.Datastream
org.modeshape.jcr.api.JcrTools.BasicOperation, org.modeshape.jcr.api.JcrTools.BrowseContent, org.modeshape.jcr.api.JcrTools.CountNodes, org.modeshape.jcr.api.JcrTools.NodeOperation, org.modeshape.jcr.api.JcrTools.Operation, org.modeshape.jcr.api.JcrTools.PrintNodes, org.modeshape.jcr.api.JcrTools.Variablenode| Constructor and Description |
|---|
DatastreamImpl(javax.jcr.Node n)
The JCR node for this datastream
|
DatastreamImpl(javax.jcr.Session session,
String path)
Create or find a FedoraDatastream at the given path
|
DatastreamImpl(javax.jcr.Session session,
String path,
String nodeType)
Create or find a FedoraDatastream at the given path
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContent() |
URI |
getContentDigest() |
javax.jcr.Node |
getContentNode() |
long |
getContentSize() |
String |
getDsId() |
String |
getFilename() |
String |
getMimeType() |
org.fcrepo.kernel.FedoraObject |
getObject() |
Long |
getSize() |
boolean |
hasContent() |
static boolean |
hasMixin(javax.jcr.Node node)
Check if the node has a fedora:datastream mixin
|
void |
setContent(InputStream content) |
void |
setContent(InputStream content,
String contentType,
URI checksum,
String originalFileName,
org.fcrepo.kernel.services.policy.StoragePolicyDecisionPoint storagePolicyDecisionPoint) |
addVersionLabel, getBaseVersion, getCreatedDate, getEtagValue, getHierarchyTriples, getLastModifiedDate, getModels, getNode, getPath, getPropertiesDataset, getPropertiesDataset, getTriples, getVersionHistory, getVersionTriples, isNew, replaceProperties, updatePropertiesDatasetfindOrCreateChild, findOrCreateChild, findOrCreateNode, findOrCreateNode, findOrCreateNode, findOrCreateNode, getNode, getReadable, getStringValue, importContent, importContent, importContent, importContent, importContent, importContent, importContent, isDebug, onEachNode, onEachNodeBelow, print, printNode, printQuery, printQuery, printQuery, printQuery, printSubgraph, printSubgraph, printSubgraph, registerNodeTypes, removeAllChildren, removeAllChildren, repeatedlyWithSession, resourceUrl, uploadFile, uploadFile, uploadFile, uploadFileAndBlock, uploadFileAndBlock, uploadFileAndBlock, uploadFilesAndBlock, var, vars, withSessionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddVersionLabel, getBaseVersion, getCreatedDate, getEtagValue, getHierarchyTriples, getLastModifiedDate, getModels, getNode, getPath, getPropertiesDataset, getPropertiesDataset, getTriples, getVersionHistory, getVersionTriples, isNew, replaceProperties, updatePropertiesDatasetpublic DatastreamImpl(javax.jcr.Node n)
n - an existing Nodepublic DatastreamImpl(javax.jcr.Session session,
String path,
String nodeType)
throws javax.jcr.RepositoryException
session - the JCR session to use to retrieve the objectpath - the absolute path to the objectnodeType - primary type to assign to nodejavax.jcr.RepositoryExceptionpublic DatastreamImpl(javax.jcr.Session session,
String path)
throws javax.jcr.RepositoryException
session - the JCR session to use to retrieve the objectpath - the absolute path to the objectjavax.jcr.RepositoryExceptionpublic InputStream getContent() throws javax.jcr.RepositoryException
getContent in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic javax.jcr.Node getContentNode()
throws javax.jcr.RepositoryException
getContentNode in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic boolean hasContent()
throws javax.jcr.RepositoryException
hasContent in interface org.fcrepo.kernel.DatastreamhasContent in interface org.fcrepo.kernel.FedoraResourcehasContent in class FedoraResourceImpljavax.jcr.RepositoryExceptionpublic void setContent(InputStream content, String contentType, URI checksum, String originalFileName, org.fcrepo.kernel.services.policy.StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws javax.jcr.RepositoryException, org.fcrepo.kernel.exception.InvalidChecksumException
setContent in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionorg.fcrepo.kernel.exception.InvalidChecksumExceptionpublic void setContent(InputStream content) throws org.fcrepo.kernel.exception.InvalidChecksumException, javax.jcr.RepositoryException
setContent in interface org.fcrepo.kernel.Datastreamorg.fcrepo.kernel.exception.InvalidChecksumExceptionjavax.jcr.RepositoryExceptionpublic long getContentSize()
getContentSize in interface org.fcrepo.kernel.Datastreampublic URI getContentDigest() throws javax.jcr.RepositoryException
getContentDigest in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic String getDsId() throws javax.jcr.RepositoryException
getDsId in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic org.fcrepo.kernel.FedoraObject getObject()
throws javax.jcr.RepositoryException
getObject in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic String getMimeType() throws javax.jcr.RepositoryException
getMimeType in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic Long getSize() throws javax.jcr.RepositoryException
getSize in interface org.fcrepo.kernel.DatastreamgetSize in interface org.fcrepo.kernel.FedoraResourcegetSize in class FedoraResourceImpljavax.jcr.RepositoryExceptionpublic String getFilename() throws javax.jcr.RepositoryException
getFilename in interface org.fcrepo.kernel.Datastreamjavax.jcr.RepositoryExceptionpublic static boolean hasMixin(javax.jcr.Node node)
node - node to checkCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.