Class AzureFileStorage

java.lang.Object
org.nuxeo.ecm.blob.azure.AzureFileStorage
All Implemented Interfaces:
FileStorage

@Deprecated(since="2023.9") public class AzureFileStorage extends Object implements FileStorage
Deprecated.
since 2023.9
Since:
7.10
Author:
Arnaud Kervern
  • Field Details

    • container

      protected com.azure.storage.blob.BlobContainerClient container
      Deprecated.
    • prefix

      protected String prefix
      Deprecated.
  • Constructor Details

    • AzureFileStorage

      public AzureFileStorage(com.azure.storage.blob.BlobContainerClient container, String prefix)
      Deprecated.
  • Method Details

    • storeFile

      public void storeFile(String digest, File file) throws IOException
      Deprecated.
      Description copied from interface: FileStorage
      Stores a file based on a key.
      Specified by:
      storeFile in interface FileStorage
      Parameters:
      digest - the file key
      file - the file
      Throws:
      IOException - if a storage error occurred
    • fetchFile

      public boolean fetchFile(String digest, File file) throws IOException
      Deprecated.
      Description copied from interface: FileStorage
      Fetches a file based on its key.
      Specified by:
      fetchFile in interface FileStorage
      Parameters:
      digest - the file key
      file - the file to use to store the fetched data
      Returns:
      true if the file was fetched, false if the file was not found
      Throws:
      IOException - if a storage error occurred
    • exists

      public boolean exists(String digest)
      Deprecated.
      Description copied from interface: FileStorage
      Does a blob with the given key exist in the storage.

      The existence of the blob is checked in the storage where the blob is effectively stored. Intermediate cache is ignored.

      Specified by:
      exists in interface FileStorage
      Parameters:
      digest - the blob key
      Returns:
      true if it exists in the storage
    • isBlobDigestCorrect

      protected static boolean isBlobDigestCorrect(String digest, com.azure.storage.blob.BlobClient blob)
      Deprecated.
    • isBlobDigestCorrect

      protected static boolean isBlobDigestCorrect(String digest, byte[] contentMD5)
      Deprecated.
    • decodeContentMD5

      protected static String decodeContentMD5(byte[] bytes)
      Deprecated.