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
Implementation of a Non-RDF resource.
- Author:
- bbpennel
-
Field Summary
Fields inherited from class org.fcrepo.kernel.impl.models.FedoraResourceImpl
fedoraId, resourceFactory, transaction -
Constructor Summary
ConstructorsConstructorDescriptionBinaryImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID, org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory, org.fcrepo.kernel.api.cache.UserTypesCache userTypesCache) Construct the binary -
Method Summary
Modifier and TypeMethodDescriptionlongorg.fcrepo.kernel.api.models.FedoraResourcegetRange(long start, long end) getSystemTypes(boolean forRdf) org.fcrepo.kernel.api.RdfStreamisProxy()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, getArchivalGroupId, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getSession, getStateToken, getStorageRelativePath, getTimeMap, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource, resolveSystemTypes, setArchivalGroupId, setCreatedBy, setCreatedDate, setEtag, setInteractionModel, setIsArchivalGroup, setIsMemento, setLastModifiedBy, setLastModifiedDate, setMementoDatetime, setParentId, setStateToken, setStorageRelativePath, setTypesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.fcrepo.kernel.api.models.Binary
getExternalURIMethods inherited from interface org.fcrepo.kernel.api.models.FedoraResource
findMementoByDatetime, getAcl, getArchivalGroupId, getChildren, getChildren, getContainer, getCreatedBy, getCreatedDate, getDescribedResource, getEtagValue, getFedoraId, getId, getInteractionModel, getLastModifiedBy, getLastModifiedDate, getMementoDatetime, getOriginalResource, getParent, getParentId, getStateToken, getStorageRelativePath, getTimeMap, getTypes, getUserTypes, hasProperty, hasType, isAcl, isMemento, isOriginalResource
-
Constructor Details
-
BinaryImpl
public BinaryImpl(org.fcrepo.kernel.api.identifiers.FedoraId fedoraID, org.fcrepo.kernel.api.Transaction transaction, org.fcrepo.persistence.api.PersistentStorageSessionManager pSessionManager, org.fcrepo.kernel.api.models.ResourceFactory resourceFactory, org.fcrepo.kernel.api.cache.UserTypesCache userTypesCache) Construct the binary- Parameters:
fedoraID- fedora identifiertransaction- transactionpSessionManager- session managerresourceFactory- resource factoryuserTypesCache- the user types cache
-
-
Method Details
-
getContent
- Specified by:
getContentin interfaceorg.fcrepo.kernel.api.models.Binary
-
getRange
- Specified by:
getRangein interfaceorg.fcrepo.kernel.api.models.Binary
-
getContentSize
- Specified by:
getContentSizein interfaceorg.fcrepo.kernel.api.models.Binary
-
getContentDigests
- Specified by:
getContentDigestsin interfaceorg.fcrepo.kernel.api.models.Binary
-
isProxy
- Specified by:
isProxyin interfaceorg.fcrepo.kernel.api.models.Binary
-
isRedirect
- Specified by:
isRedirectin interfaceorg.fcrepo.kernel.api.models.Binary
-
getExternalURL
- Specified by:
getExternalURLin interfaceorg.fcrepo.kernel.api.models.Binary
-
getMimeType
- Specified by:
getMimeTypein interfaceorg.fcrepo.kernel.api.models.Binary
-
getFilename
- Specified by:
getFilenamein interfaceorg.fcrepo.kernel.api.models.Binary
-
getDescription
- Specified by:
getDescriptionin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Overrides:
getDescriptionin classFedoraResourceImpl
-
setExternalHandling
- Parameters:
externalHandling- the externalHandling to set
-
setExternalUrl
- Parameters:
externalUrl- the externalUrl to set
-
setContentSize
- Parameters:
contentSize- the contentSize to set
-
setFilename
- Parameters:
filename- the filename to set
-
setMimeType
- Parameters:
mimeType- the mimeType to set
-
setDigests
- Parameters:
digests- the digests to set
-
getSystemTypes
- Specified by:
getSystemTypesin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Overrides:
getSystemTypesin classFedoraResourceImpl
-
getTriples
- Specified by:
getTriplesin interfaceorg.fcrepo.kernel.api.models.FedoraResource- Overrides:
getTriplesin classFedoraResourceImpl
-