Class BinaryBlobProvider

java.lang.Object
org.nuxeo.ecm.core.blob.binary.BinaryBlobProvider
All Implemented Interfaces:
BlobProvider

@Deprecated(since="2023.9") public class BinaryBlobProvider extends Object implements BlobProvider
Deprecated.
since 2023.9, prefer BlobStoreBlobProvider implementation instead
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 Details

    • binaryManager

      protected final BinaryManager binaryManager
      Deprecated.
    • supportsUserUpdate

      protected boolean supportsUserUpdate
      Deprecated.
    • transientFlag

      protected boolean transientFlag
      Deprecated.
  • Constructor Details

    • BinaryBlobProvider

      public BinaryBlobProvider(BinaryManager binaryManager)
      Deprecated.
  • Method Details

    • getBinaryGarbageCollector

      public BinaryGarbageCollector getBinaryGarbageCollector()
      Deprecated.
      Description copied from interface: BlobProvider
      Gets the associated garbage collector, if any.
      Specified by:
      getBinaryGarbageCollector in interface BlobProvider
      Returns:
      the garbage collector, or null
    • initialize

      public void initialize(String blobProviderId, Map<String,String> properties) throws IOException
      Deprecated.
      Description copied from interface: BlobProvider
      Initializes the blob provider.
      Specified by:
      initialize in interface BlobProvider
      Parameters:
      blobProviderId - the blob provider id for this binary manager
      properties - 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 interface BlobProvider
      Returns:
      true if user update is supported
    • supportsUserUpdateDefaultTrue

      protected boolean supportsUserUpdateDefaultTrue(Map<String,String> properties)
      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 interface BlobProvider
    • close

      public void close()
      Deprecated.
      Closes the adapted BinaryManager.
      Specified by:
      close in interface BlobProvider
    • getBinaryManager

      public BinaryManager getBinaryManager()
      Deprecated.
      Description copied from interface: BlobProvider
      Gets the associated binary manager, if any.
      Specified by:
      getBinaryManager in interface BlobProvider
      Returns:
      the binary manager, or null
    • stripBlobKeyPrefix

      protected String stripBlobKeyPrefix(String key)
      Deprecated.
    • readBlob

      public Blob readBlob(BlobInfo blobInfo) throws IOException
      Deprecated.
      Description copied from interface: BlobProvider
      Reads a Blob from storage.
      Specified by:
      readBlob in interface BlobProvider
      Parameters:
      blobInfo - the blob information
      Returns:
      the blob
      Throws:
      IOException
    • getFile

      public File getFile(ManagedBlob blob)
      Deprecated.
      Description copied from interface: BlobProvider
      Gets a File (if one exists) for the data of a managed blob.
      Specified by:
      getFile in interface BlobProvider
      Parameters:
      blob - the managed blob
      Returns:
      the file, or null if no underlying file is available
    • writeBlob

      public String writeBlob(Blob blob) throws IOException
      Deprecated.
      Description copied from interface: BlobProvider
      Writes a Blob to storage and returns information about it.

      Called to store a user-created blob.

      Specified by:
      writeBlob in interface BlobProvider
      Parameters:
      blob - the blob
      Returns:
      the blob key
      Throws:
      IOException
    • fixupDigest

      protected void fixupDigest(Blob blob, String digest)
      Deprecated.
      Fixup of the blob's digest, if possible.
      Parameters:
      blob - the blob
      digest - the digest
      Since:
      11.5
    • getProperties

      public Map<String,String> getProperties()
      Deprecated.
      Description copied from interface: BlobProvider
      Returns the properties of the blob provider.
      Specified by:
      getProperties in interface BlobProvider