public class FedoraBinaryImpl extends FedoraResourceImpl implements FedoraBinary
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.VariablenodeCONTENT_DIGEST, CONTENT_SIZE, EXPOSED_PROTECTED_JCR_TYPES, FCR_METADATA, FCR_VERSIONS, FEDORA_BINARY, FEDORA_BLANKNODE, FEDORA_CONTAINER, FEDORA_NON_RDF_SOURCE_DESCRIPTION, FEDORA_PAIRTREE, FEDORA_RESOURCE, FEDORA_TOMBSTONE, FROZEN_MIXIN_TYPES, FROZEN_NODE, JCR_CREATED, JCR_CREATEDBY, JCR_FROZEN_NODE, JCR_LASTMODIFIED, JCR_MIXIN_TYPES, JCR_PRIMARY_TYPE, JCR_UUID, LDP_BASIC_CONTAINER, LDP_DIRECT_CONTAINER, LDP_HAS_MEMBER_RELATION, LDP_INDIRECT_CONTAINER, LDP_INSERTED_CONTENT_RELATION, LDP_IS_MEMBER_OF_RELATION, LDP_MEMBER_RESOURCE, PREMIS_FILE_NAME, ROOT, VERSIONABLE| Constructor and Description |
|---|
FedoraBinaryImpl(javax.jcr.Node node)
Wrap an existing Node as a Fedora Binary
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
When deleting the binary, we also need to clean up the description document.
|
void |
disableVersioning() |
void |
enableVersioning() |
javax.jcr.version.Version |
getBaseVersion() |
javax.jcr.Binary |
getBinaryContent() |
InputStream |
getContent() |
URI |
getContentDigest() |
long |
getContentSize() |
NonRdfSourceDescription |
getDescription() |
String |
getFilename() |
RdfStream |
getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator) |
RdfStream |
getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator,
URI digestUri,
long size) |
String |
getMimeType() |
javax.jcr.version.VersionHistory |
getVersionHistory() |
static boolean |
hasMixin(javax.jcr.Node node)
Check if the given node is a Fedora binary
|
boolean |
isVersioned() |
void |
setContent(InputStream content,
String contentType,
URI checksum,
String originalFileName,
StoragePolicyDecisionPoint storagePolicyDecisionPoint) |
equals, getChild, getChildren, getContainer, getCreatedDate, getEtagValue, getLastModifiedDate, getNode, getNodeVersion, getPath, getProperty, getSession, getTriples, getTriples, getUnfrozenResource, getVersionedAncestor, hashCode, hasProperty, hasType, isFrozenResource, isNew, replaceProperties, setURIProperty, toString, updatePropertiesfindOrCreateChild, 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, setDebug, uploadFile, uploadFile, uploadFile, uploadFileAndBlock, uploadFileAndBlock, uploadFileAndBlock, uploadFilesAndBlock, var, vars, withSessionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChild, getChildren, getContainer, getCreatedDate, getEtagValue, getLastModifiedDate, getNode, getNodeVersion, getPath, getProperty, getTriples, getTriples, getUnfrozenResource, getVersionedAncestor, hasProperty, hasType, isFrozenResource, isNew, replaceProperties, setURIProperty, updatePropertiespublic FedoraBinaryImpl(javax.jcr.Node node)
node - the nodepublic NonRdfSourceDescription getDescription()
getDescription in interface NonRdfSourcepublic InputStream getContent()
getContent in interface FedoraBinarypublic javax.jcr.Binary getBinaryContent()
getBinaryContent in interface FedoraBinarypublic void setContent(InputStream content, String contentType, URI checksum, String originalFileName, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws InvalidChecksumException
setContent in interface FedoraBinaryInvalidChecksumExceptionpublic long getContentSize()
getContentSize in interface FedoraBinarypublic URI getContentDigest()
getContentDigest in interface FedoraBinarypublic String getMimeType()
getMimeType in interface FedoraBinarypublic String getFilename()
getFilename in interface FedoraBinarypublic RdfStream getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator)
getFixity in interface FedoraBinarypublic RdfStream getFixity(IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource> idTranslator, URI digestUri, long size)
getFixity in interface FedoraBinarypublic void delete()
delete in interface FedoraResourcedelete in class FedoraResourceImplpublic javax.jcr.version.Version getBaseVersion()
getBaseVersion in interface FedoraResourcegetBaseVersion in class FedoraResourceImplpublic javax.jcr.version.VersionHistory getVersionHistory()
getVersionHistory in interface FedoraResourcegetVersionHistory in class FedoraResourceImplpublic boolean isVersioned()
isVersioned in interface FedoraResourceisVersioned in class FedoraResourceImplpublic void enableVersioning()
enableVersioning in interface FedoraResourceenableVersioning in class FedoraResourceImplpublic void disableVersioning()
disableVersioning in interface FedoraResourcedisableVersioning in class FedoraResourceImplpublic static boolean hasMixin(javax.jcr.Node node)
node - the given nodeCopyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.