public abstract class AbstractFedoraBinary extends FedoraResourceImpl implements FedoraBinary
FedoraResourceImpl.RdfGenerator
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.Variable
Modifier and Type | Field and Description |
---|---|
protected static String |
DEFAULT_MIME_TYPE |
CONTAINER_WEBAC_ACL, contextMap, node
CONTENT_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
Modifier | Constructor and Description |
---|---|
protected |
AbstractFedoraBinary(javax.jcr.Node node) |
Modifier and Type | Method and Description |
---|---|
void |
delete()
When deleting the binary, we also need to clean up the description document.
|
URI |
getContentDigest()
Get the pre-calculated content digest for the binary payload
|
long |
getContentSize() |
FedoraResource |
getDescription()
Get the description for this resource
|
protected javax.jcr.Node |
getDescriptionNode() |
protected javax.jcr.Node |
getDescriptionNodeOrNull() |
String |
getFilename()
Return the file name for the binary content
|
RdfStream |
getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
Get the fixity of this datastream compared to metadata stored in the repository
|
protected String |
getMimeTypeValue() |
String |
getProxyURL()
Get the URL that this resource is a Proxy for
|
String |
getRedirectURL()
Get the URL this resource should redirect to
|
protected boolean |
hasDescriptionProperty(String relPath)
Check of the property exists on the description of this binary.
|
Boolean |
isProxy() |
Boolean |
isRedirect() |
protected void |
setContentSize(long size)
Set the content size
|
void |
setProxyURL(String url)
Set the URL that this resource is a proxy for
|
void |
setRedirectURL(String url)
Set the URL that this is a redirect to
|
addType, convertMementoReferences, equals, findMementoByDatetime, findOrCreateAcl, fixDatesIfNecessary, getAcl, getChild, getChildren, getContainer, getCreatedDate, getDescribedResource, getEtagValue, getLastModifiedDate, getMementoDatetime, getNode, getOriginalResource, getPath, getProperty, getSession, getTimeMap, getTriples, getTriples, getTypes, hashCode, hasProperty, hasType, isAcl, isMemento, isNew, isOriginalResource, removeReferences, replaceProperties, toString, touch, updateProperties
findOrCreateChild, 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, withSession
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
checkFixity, getContent, getFixity, getMimeType, getRedirectURI, setContent, setExternalContent
addType, findMementoByDatetime, findOrCreateAcl, getAcl, getChild, getChildren, getChildren, getContainer, getCreatedDate, getDescribedResource, getEtagValue, getLastModifiedDate, getMementoDatetime, getOriginalResource, getPath, getTimeMap, getTriples, getTriples, getTypes, hasProperty, hasType, isAcl, isMemento, isNew, isOriginalResource, replaceProperties, updateProperties
protected static final String DEFAULT_MIME_TYPE
protected AbstractFedoraBinary(javax.jcr.Node node)
public FedoraResource getDescription()
FedoraResource
getDescription
in interface FedoraResource
getDescription
in class FedoraResourceImpl
protected javax.jcr.Node getDescriptionNode()
getDescriptionNode
in class FedoraResourceImpl
protected javax.jcr.Node getDescriptionNodeOrNull()
public long getContentSize()
getContentSize
in interface FedoraBinary
public URI getContentDigest()
FedoraBinary
getContentDigest
in interface FedoraBinary
public Boolean isProxy()
isProxy
in interface FedoraBinary
public Boolean isRedirect()
isRedirect
in interface FedoraBinary
public String getProxyURL()
FedoraBinary
getProxyURL
in interface FedoraBinary
public void setProxyURL(String url) throws RepositoryRuntimeException
FedoraBinary
setProxyURL
in interface FedoraBinary
url
- - the url of the resource this is a proxy forRepositoryRuntimeException
public String getRedirectURL()
FedoraBinary
getRedirectURL
in interface FedoraBinary
public void setRedirectURL(String url) throws RepositoryRuntimeException
FedoraBinary
setRedirectURL
in interface FedoraBinary
url
- - the url of the resource this redirects toRepositoryRuntimeException
protected String getMimeTypeValue()
public String getFilename()
FedoraBinary
getFilename
in interface FedoraBinary
public RdfStream getFixity(IdentifierConverter<org.apache.jena.rdf.model.Resource,FedoraResource> idTranslator)
FedoraBinary
getFixity
in interface FedoraBinary
idTranslator
- the id translatorpublic void delete()
delete
in interface FedoraResource
delete
in class FedoraResourceImpl
protected boolean hasDescriptionProperty(String relPath)
relPath
- - path to the propertyprotected void setContentSize(long size)
size
- the new value of the content size.Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.