public class UrlBinary extends AbstractFedoraBinary
FedoraResourceImpl.RdfGeneratororg.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.VariableDEFAULT_MIME_TYPECONTAINER_WEBAC_ACL, contextMap, nodeCONTENT_DIGEST, CONTENT_SIZE, DEFAULT_DIGEST_ALGORITHM, FCR_ACL, FCR_FIXITY, FCR_METADATA, FCR_VERSIONS, FEDORA_BINARY, FEDORA_CONTAINER, FEDORA_CREATED, FEDORA_CREATEDBY, FEDORA_LASTMODIFIED, FEDORA_LASTMODIFIEDBY, FEDORA_NON_RDF_SOURCE_DESCRIPTION, FEDORA_PAIRTREE, FEDORA_REPOSITORY_ROOT, FEDORA_RESOURCE, FEDORA_SKOLEM, FEDORA_TIME_MAP, FEDORA_TOMBSTONE, FEDORA_WEBAC_ACL, FILENAME, HAS_MIME_TYPE, LDP_BASIC_CONTAINER, LDP_CONTAINER, LDP_DIRECT_CONTAINER, LDP_HAS_MEMBER_RELATION, LDP_INDIRECT_CONTAINER, LDP_INSERTED_CONTENT_RELATION, LDP_IS_MEMBER_OF_RELATION, LDP_MEMBER_RESOURCE, LDP_NON_RDF_SOURCE, LDP_RDF_SOURCE, MEMENTO, MEMENTO_DATETIME, MEMENTO_ORIGINAL, PROXY_FOR, REDIRECTS_TO| Constructor and Description |
|---|
UrlBinary(javax.jcr.Node node)
Construct UrlBinary
|
| Modifier and Type | Method and Description |
|---|---|
Collection<URI> |
checkFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
Collection<String> algorithms)
Digest this datastream with the digest algorithms provided
|
InputStream |
getContent() |
RdfStream |
getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
Get the fixity of this datastream compared to metadata stored in the repository
|
RdfStream |
getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator,
URI digestUri,
long size)
Get the fixity of this datastream in a given repository's binary store.
|
String |
getMimeType()
Returns the specified mimetype in place of the original external-body if provided
|
protected long |
getRemoteContentSize() |
protected URI |
getResourceUri()
Get a URI for the resource
|
void |
setContent(InputStream content,
String contentType,
Collection<URI> checksums,
String originalFileName,
StoragePolicyDecisionPoint storagePolicyDecisionPoint)
Sets the content of this Datastream.
|
void |
setExternalContent(String contentType,
Collection<URI> checksums,
String originalFileName,
String externalHandling,
String externalUrl)
Sets the external content reference for this datastream
|
delete, getContentDigest, getContentSize, getDescription, getDescriptionNode, getDescriptionNodeOrNull, getFilename, getMimeTypeValue, getProxyURL, getRedirectURL, hasDescriptionProperty, isProxy, isRedirect, setContentSize, setProxyURL, setRedirectURLaddType, convertMementoReferences, equals, findMementoByDatetime, findOrCreateAcl, fixDatesIfNecessary, getAcl, getChild, getChildren, getContainer, getCreatedDate, getDescribedResource, getEtagValue, getLastModifiedDate, getMementoDatetime, getNode, getOriginalResource, getPath, getProperty, getSession, getStateToken, getTimeMap, getTriples, getTriples, getTypes, hashCode, hasProperty, hasType, isAcl, isMemento, isNew, isOriginalResource, isTimeMap, removeReferences, replaceProperties, toString, touch, 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, waitgetRedirectURIaddType, findMementoByDatetime, findOrCreateAcl, getAcl, getChild, getChildren, getChildren, getContainer, getCreatedDate, getDescribedResource, getEtagValue, getLastModifiedDate, getMementoDatetime, getOriginalResource, getPath, getStateToken, getTimeMap, getTriples, getTriples, getTypes, hasProperty, hasType, isAcl, isMemento, isNew, isOriginalResource, isTimeMap, replaceProperties, updatePropertiespublic UrlBinary(javax.jcr.Node node)
node - nodepublic InputStream getContent()
protected long getRemoteContentSize()
public void setExternalContent(String contentType, Collection<URI> checksums, String originalFileName, String externalHandling, String externalUrl) throws InvalidChecksumException
FedoraBinarycontentType - MIME type of content (optional)checksums - Collection of checksum URIs of the content (optional)originalFileName - Original file name of the content (optional)externalHandling - What type of handling the external resource needs (proxy or redirect)externalUrl - Url for the external resourcejInvalidChecksumException - if invalid checksum exception occurredpublic void setContent(InputStream content, String contentType, Collection<URI> checksums, String originalFileName, StoragePolicyDecisionPoint storagePolicyDecisionPoint) throws UnsupportedOperationException
FedoraBinarycontent - InputStream of binary content to be storedcontentType - MIME type of content (optional)checksums - Collection of checksum URIs of the content (optional)originalFileName - Original file name of the content (optional)storagePolicyDecisionPoint - Policy decision point for storing the content (optional)UnsupportedOperationExceptionpublic RdfStream getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
FedoraBinarygetFixity in interface FedoraBinarygetFixity in class AbstractFedoraBinaryidTranslator - the id translatorpublic RdfStream getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, URI digestUri, long size)
FedoraBinaryidTranslator - the id translatordigestUri - the checksum to compare againstsize - the expected size of the binarypublic Collection<URI> checkFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator, Collection<String> algorithms) throws UnsupportedAlgorithmException
FedoraBinaryidTranslator - the id translatoralgorithms - the digest algorithms to be usedUnsupportedAlgorithmException - if unsupported digest algorithm occurredpublic String getMimeType()
protected URI getResourceUri()
Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.