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
FieldsModifier and TypeFieldDescriptionprotected final BinaryManagerDeprecated.protected booleanDeprecated.protected booleanDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.Closes the adaptedBinaryManager.protected voidfixupDigest(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.voidinitialize(String blobProviderId, Map<String, String> properties) Deprecated.Initializes the blob provider.booleanDeprecated.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 aBlobfrom storage.protected StringstripBlobKeyPrefix(String key) Deprecated.booleanDeprecated.Checks if user update is supported.protected booleansupportsUserUpdateDefaultTrue(Map<String, String> properties) Deprecated.Deprecated.Writes aBlobto storage and returns information about it.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:BlobProviderGets the associated garbage collector, if any.- Specified by:
getBinaryGarbageCollectorin interfaceBlobProvider- Returns:
- the garbage collector, or
null
-
initialize
Deprecated.Description copied from interface:BlobProviderInitializes the blob provider.- Specified by:
initializein interfaceBlobProvider- Parameters:
blobProviderId- the blob provider id for this binary managerproperties- initialization properties- Throws:
IOException
-
supportsUserUpdate
public boolean supportsUserUpdate()Deprecated.Description copied from interface:BlobProviderChecks 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:
supportsUserUpdatein interfaceBlobProvider- Returns:
trueif user update is supported
-
supportsUserUpdateDefaultTrue
Deprecated. -
isTransient
public boolean isTransient()Deprecated.Description copied from interface:BlobProviderChecks 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:
isTransientin interfaceBlobProvider
-
close
public void close()Deprecated.Closes the adaptedBinaryManager.- Specified by:
closein interfaceBlobProvider
-
getBinaryManager
Deprecated.Description copied from interface:BlobProviderGets the associated binary manager, if any.- Specified by:
getBinaryManagerin interfaceBlobProvider- Returns:
- the binary manager, or
null
-
stripBlobKeyPrefix
Deprecated. -
readBlob
Deprecated.Description copied from interface:BlobProviderReads aBlobfrom storage.- Specified by:
readBlobin interfaceBlobProvider- Parameters:
blobInfo- the blob information- Returns:
- the blob
- Throws:
IOException
-
getFile
Deprecated.Description copied from interface:BlobProviderGets aFile(if one exists) for the data of a managed blob.- Specified by:
getFilein interfaceBlobProvider- Parameters:
blob- the managed blob- Returns:
- the file, or
nullif no underlying file is available
-
writeBlob
Deprecated.Description copied from interface:BlobProviderWrites aBlobto storage and returns information about it.Called to store a user-created blob.
- Specified by:
writeBlobin 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:BlobProviderReturns the properties of the blob provider.- Specified by:
getPropertiesin interfaceBlobProvider
-
BlobStoreBlobProviderimplementation instead