Class AbstractCloudBinaryManager

All Implemented Interfaces:
BinaryManager, BlobProvider
Direct Known Subclasses:
AzureBinaryManager, GoogleStorageBinaryManager, S3BinaryManager

@Deprecated(since="2023.9") public abstract class AbstractCloudBinaryManager extends CachingBinaryManager implements BlobProvider
Deprecated.
since 2023.9, use BlobStoreBlobProvider instead
Since:
7.10
Author:
Arnaud Kervern
  • Field Details

  • Constructor Details

    • AbstractCloudBinaryManager

      public AbstractCloudBinaryManager()
      Deprecated.
  • Method Details

    • getSystemPropertyPrefix

      protected abstract String getSystemPropertyPrefix()
      Deprecated.
      Gets the prefix used for configuration using system properties.
    • getFileStorage

      protected abstract FileStorage getFileStorage()
      Deprecated.
    • instantiateGarbageCollector

      protected abstract BinaryGarbageCollector instantiateGarbageCollector()
      Deprecated.
    • removeBinaries

      public abstract void removeBinaries(Collection<String> digests)
      Deprecated.
      Description copied from interface: BinaryManager
      Remove definitively a set of binaries
      Specified by:
      removeBinaries in interface BinaryManager
      Overrides:
      removeBinaries in class AbstractBinaryManager
      Parameters:
      digests - a set of digests, must not be null.
    • setupCloudClient

      protected abstract void setupCloudClient() throws IOException
      Deprecated.
      Configure Cloud client using properties
      Throws:
      IOException
    • initialize

      public void initialize(String blobProviderId, Map<String,String> properties) throws IOException
      Deprecated.
      Description copied from interface: BinaryManager
      Initializes the binary manager.
      Specified by:
      initialize in interface BinaryManager
      Specified by:
      initialize in interface BlobProvider
      Overrides:
      initialize in class CachingBinaryManager
      Parameters:
      blobProviderId - the blob provider id for this binary manager
      properties - initialization properties
      Throws:
      IOException
    • 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
    • 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
    • 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
    • performsExternalAccessControl

      public boolean performsExternalAccessControl(BlobInfo blobInfo)
      Deprecated.
      Description copied from interface: BlobProvider
      Checks if the blob provider performs external access control checks.
      Specified by:
      performsExternalAccessControl in interface BlobProvider
      Parameters:
      blobInfo - the blob information to be read
      Returns:
      true if the provider performs security checks before reading a blob, false otherwise
    • 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()
      Deprecated.
    • getURI

      public URI getURI(ManagedBlob blob, BlobManager.UsageHint hint, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
      Deprecated.
      Description copied from interface: BlobProvider
      Gets an URI for the content of a managed blob.
      Specified by:
      getURI in interface BlobProvider
      Parameters:
      blob - the managed blob
      hint - BlobManager.UsageHint
      servletRequest - the servlet request, or null
      Returns:
      the URI, or null if none available
      Throws:
      IOException
    • isDirectDownload

      protected boolean isDirectDownload()
      Deprecated.
    • getRemoteUri

      protected URI getRemoteUri(String digest, ManagedBlob blob, javax.servlet.http.HttpServletRequest servletRequest) throws IOException
      Deprecated.
      Throws:
      IOException
    • getProperty

      protected String getProperty(String propertyName)
      Deprecated.
    • getProperty

      protected String getProperty(String propertyName, String defaultValue)
      Deprecated.
    • getIntProperty

      protected int getIntProperty(String key)
      Deprecated.
      Gets an integer property, or -1 if undefined.
    • getIntProperty

      protected int getIntProperty(String key, int defaultValue)
      Deprecated.
      Gets an integer property, or defaultValue if undefined.
      Since:
      11.4
    • getBooleanProperty

      protected boolean getBooleanProperty(String key)
      Deprecated.
      Gets a boolean property.
      Since:
      10.3
    • getSystemPropertyName

      public String getSystemPropertyName(String propertyName)
      Deprecated.
    • getContentTypeHeader

      protected String getContentTypeHeader(Blob blob)
      Deprecated.
    • getContentDispositionHeader

      protected String getContentDispositionHeader(Blob blob, javax.servlet.http.HttpServletRequest servletRequest)
      Deprecated.
    • getDefaultDigestAlgorithm

      protected String getDefaultDigestAlgorithm()
      Deprecated.
      Description copied from class: AbstractBinaryManager
      Gets the default message digest to use to hash binaries.
      Overrides:
      getDefaultDigestAlgorithm in class AbstractBinaryManager
    • 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
    • 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