Package org.nuxeo.ecm.core.blob.binary
Class BinaryBlobProvider
java.lang.Object
org.nuxeo.ecm.core.blob.binary.BinaryBlobProvider
- All Implemented Interfaces:
BlobProvider
Deprecated.
Adapter between the
BinaryManager
and a BlobProvider
for the BlobManager
.
Can be used by legacy implementations of a BinaryManager
to provide a BlobProvider
implementation.
- Since:
- 7.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BinaryManager
Deprecated.protected boolean
Deprecated.protected boolean
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Deprecated.Closes the adaptedBinaryManager
.protected void
fixupDigest
(Blob blob, String digest) Deprecated.Fixup of the blob's digest, if possible.Deprecated.Gets the associated garbage collector, if any.Deprecated.Gets the associated binary manager, if any.getFile
(ManagedBlob blob) Deprecated.Gets aFile
(if one exists) for the data of a managed blob.Deprecated.Returns the properties of the blob provider.void
initialize
(String blobProviderId, Map<String, String> properties) Deprecated.Initializes the blob provider.boolean
Deprecated.Checks whether this blob provider is transient: blobs may disappear after a while, so a caller should not rely on them being available forever.Deprecated.Reads aBlob
from storage.protected String
stripBlobKeyPrefix
(String key) Deprecated.boolean
Deprecated.Checks if user update is supported.protected boolean
supportsUserUpdateDefaultTrue
(Map<String, String> properties) Deprecated.Deprecated.Writes aBlob
to storage and returns information about it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.core.blob.BlobProvider
allowByteRange, allowDirectDownload, canConvert, deleteBlob, getAppLinks, getAvailableConversions, getStatus, getStream, getStream, getThumbnail, getURI, hasCreateFromKeyPermission, isColdStorageMode, isRecordMode, isTransactional, isVersion, performsExternalAccessControl, readBlob, supportsSync, updateBlob, writeBlob
-
Field Details
-
binaryManager
Deprecated. -
supportsUserUpdate
protected boolean supportsUserUpdateDeprecated. -
transientFlag
protected boolean transientFlagDeprecated.
-
-
Constructor Details
-
BinaryBlobProvider
Deprecated.
-
-
Method Details
-
getBinaryGarbageCollector
Deprecated.Description copied from interface:BlobProvider
Gets the associated garbage collector, if any.- Specified by:
getBinaryGarbageCollector
in interfaceBlobProvider
- Returns:
- the garbage collector, or
null
-
initialize
Deprecated.Description copied from interface:BlobProvider
Initializes the blob provider.- Specified by:
initialize
in interfaceBlobProvider
- Parameters:
blobProviderId
- the blob provider id for this binary managerproperties
- initialization properties- Throws:
IOException
-
supportsUserUpdate
public boolean supportsUserUpdate()Deprecated.Description copied from interface:BlobProvider
Checks if user update is supported.A user update refers to the fact that a blob from this provider may be overwritten with another blob, wherever the original blob may occur (usually in a document property).
- Specified by:
supportsUserUpdate
in interfaceBlobProvider
- Returns:
true
if user update is supported
-
supportsUserUpdateDefaultTrue
Deprecated. -
isTransient
public boolean isTransient()Deprecated.Description copied from interface:BlobProvider
Checks whether this blob provider is transient: blobs may disappear after a while, so a caller should not rely on them being available forever.- Specified by:
isTransient
in interfaceBlobProvider
-
close
public void close()Deprecated.Closes the adaptedBinaryManager
.- Specified by:
close
in interfaceBlobProvider
-
getBinaryManager
Deprecated.Description copied from interface:BlobProvider
Gets the associated binary manager, if any.- Specified by:
getBinaryManager
in interfaceBlobProvider
- Returns:
- the binary manager, or
null
-
stripBlobKeyPrefix
Deprecated. -
readBlob
Deprecated.Description copied from interface:BlobProvider
Reads aBlob
from storage.- Specified by:
readBlob
in interfaceBlobProvider
- Parameters:
blobInfo
- the blob information- Returns:
- the blob
- Throws:
IOException
-
getFile
Deprecated.Description copied from interface:BlobProvider
Gets aFile
(if one exists) for the data of a managed blob.- Specified by:
getFile
in interfaceBlobProvider
- Parameters:
blob
- the managed blob- Returns:
- the file, or
null
if no underlying file is available
-
writeBlob
Deprecated.Description copied from interface:BlobProvider
Writes aBlob
to storage and returns information about it.Called to store a user-created blob.
- Specified by:
writeBlob
in interfaceBlobProvider
- Parameters:
blob
- the blob- Returns:
- the blob key
- Throws:
IOException
-
fixupDigest
Deprecated.Fixup of the blob's digest, if possible.- Parameters:
blob
- the blobdigest
- the digest- Since:
- 11.5
-
getProperties
Deprecated.Description copied from interface:BlobProvider
Returns the properties of the blob provider.- Specified by:
getProperties
in interfaceBlobProvider
-
BlobStoreBlobProvider
implementation instead