Package ca.uhn.fhir.jpa.binstore
Class DatabaseBlobBinaryStorageSvcImpl
java.lang.Object
ca.uhn.fhir.jpa.binary.svc.BaseBinaryStorageSvcImpl
ca.uhn.fhir.jpa.binstore.DatabaseBlobBinaryStorageSvcImpl
- All Implemented Interfaces:
IBinaryStorageSvc
-
Field Summary
Fields inherited from class ca.uhn.fhir.jpa.binary.svc.BaseBinaryStorageSvcImpl
BLOB_ID_PREFIX_APPLIED, DEFAULT_MAXIMUM_BINARY_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
expungeBlob
(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobId) byte[]
fetchBlobDetails
(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobId) storeBlob
(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobIdOrNull, String theContentType, InputStream theInputStream, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) boolean
writeBlob
(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobId, OutputStream theOutputStream) Methods inherited from class ca.uhn.fhir.jpa.binary.svc.BaseBinaryStorageSvcImpl
createCountingInputStream, createHashingInputStream, fetchDataBlobFromBinary, getMaximumBinarySize, getMinimumBinarySize, isBlobIdPrefixApplied, isValidBlobId, newBlobId, provideIdForNewBlob, provideIdForNewBlob, setBlobIdPrefixApplied, setFhirContextForTests, setInterceptorBroadcasterForTests, setMaximumBinarySize, setMinimumBinarySize, shouldStoreBlob
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.jpa.binary.api.IBinaryStorageSvc
storeBlob
-
Constructor Details
-
DatabaseBlobBinaryStorageSvcImpl
public DatabaseBlobBinaryStorageSvcImpl()
-
-
Method Details
-
storeBlob
@Nonnull @Transactional(propagation=REQUIRED) public StoredDetails storeBlob(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobIdOrNull, String theContentType, InputStream theInputStream, ca.uhn.fhir.rest.api.server.RequestDetails theRequestDetails) throws IOException - Throws:
IOException
-
fetchBlobDetails
public StoredDetails fetchBlobDetails(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobId) -
writeBlob
public boolean writeBlob(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobId, OutputStream theOutputStream) throws IOException - Throws:
IOException
-
expungeBlob
-
fetchBlob
public byte[] fetchBlob(org.hl7.fhir.instance.model.api.IIdType theResourceId, String theBlobId) throws IOException - Throws:
IOException
-