Package org.fcrepo.kernel.impl.models
Class BinaryImpl
- java.lang.Object
-
- org.fcrepo.kernel.impl.models.FedoraResourceImpl
-
- org.fcrepo.kernel.impl.models.BinaryImpl
-
- All Implemented Interfaces:
org.fcrepo.kernel.api.models.Binary,org.fcrepo.kernel.api.models.FedoraResource
public class BinaryImpl extends FedoraResourceImpl implements org.fcrepo.kernel.api.models.Binary
Implementation of a Non-RDF resource.- Author:
- bbpennel
-
-
Field Summary
-
Fields inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
fedoraId, resourceFactory, txId
-
-
Constructor Summary
Constructors Constructor Description BinaryImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID, String txId, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory)Construct the binary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamgetContent()Collection<URI>getContentDigests()longgetContentSize()org.fcrepo.kernel.api.models.FedoraResourcegetDescription()StringgetExternalURL()StringgetFilename()StringgetMimeType()List<URI>getSystemTypes(boolean forRdf)org.fcrepo.kernel.api.RdfStreamgetTriples()BooleanisProxy()BooleanisRedirect()protected voidsetContentSize(Long contentSize)protected voidsetDigests(Collection<URI> digests)protected voidsetExternalHandling(String externalHandling)protected voidsetExternalUrl(String externalUrl)protected voidsetFilename(String filename)protected voidsetMimeType(String mimeType)-
Methods inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
findMementoByDatetime, getAcl, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getSession, getStateToken, getTimeMap, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource, resolveSystemTypes, setCreatedBy, setCreatedDate, setEtag, setInteractionModel, setIsArchivalGroup, setIsMemento, setLastModifiedBy, setLastModifiedDate, setMementoDatetime, setParentId, setStateToken, setTypes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
findMementoByDatetime, getAcl, getChildren, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getStateToken, getTimeMap, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource
-
-
-
-
Constructor Detail
-
BinaryImpl
public BinaryImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID, String txId, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory)
Construct the binary- Parameters:
fedoraID- fedora identifiertxId- transaction idpSessionManager- session managerresourceFactory- resource factory
-
-
Method Detail
-
getContent
public InputStream getContent()
- Specified by:
getContentin interfaceorg.fcrepo.kernel.api.models.Binary
-
getContentSize
public long getContentSize()
- Specified by:
getContentSizein interfaceorg.fcrepo.kernel.api.models.Binary
-
getContentDigests
public Collection<URI> getContentDigests()
- Specified by:
getContentDigestsin interfaceorg.fcrepo.kernel.api.models.Binary
-
isProxy
public Boolean isProxy()
- Specified by:
isProxyin interfaceorg.fcrepo.kernel.api.models.Binary
-
isRedirect
public Boolean isRedirect()
- Specified by:
isRedirectin interfaceorg.fcrepo.kernel.api.models.Binary
-
getExternalURL
public String getExternalURL()
- Specified by:
getExternalURLin interfaceorg.fcrepo.kernel.api.models.Binary
-
getMimeType
public String getMimeType()
- Specified by:
getMimeTypein interfaceorg.fcrepo.kernel.api.models.Binary
-
getFilename
public String getFilename()
- Specified by:
getFilenamein interfaceorg.fcrepo.kernel.api.models.Binary
-
getDescription
public org.fcrepo.kernel.api.models.FedoraResource getDescription()
- Specified by:
getDescriptionin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Overrides:
getDescriptionin classFedoraResourceImpl
-
setExternalHandling
protected void setExternalHandling(String externalHandling)
- Parameters:
externalHandling- the externalHandling to set
-
setExternalUrl
protected void setExternalUrl(String externalUrl)
- Parameters:
externalUrl- the externalUrl to set
-
setContentSize
protected void setContentSize(Long contentSize)
- Parameters:
contentSize- the contentSize to set
-
setFilename
protected void setFilename(String filename)
- Parameters:
filename- the filename to set
-
setMimeType
protected void setMimeType(String mimeType)
- Parameters:
mimeType- the mimeType to set
-
setDigests
protected void setDigests(Collection<URI> digests)
- Parameters:
digests- the digests to set
-
getSystemTypes
public List<URI> getSystemTypes(boolean forRdf)
- Specified by:
getSystemTypesin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Overrides:
getSystemTypesin classFedoraResourceImpl
-
getTriples
public org.fcrepo.kernel.api.RdfStream getTriples()
- Specified by:
getTriplesin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Overrides:
getTriplesin classFedoraResourceImpl
-
-