Interface BlobHolderAdapterService

All Known Implementing Classes:
BlobHolderAdapterComponent

public interface BlobHolderAdapterService
Service interface for creating the right BlobHolder adapter depending on the DocumentModel type.

Also provides APIs for external blob adapters, handling blobs that are not stored in the repository (stored in the file system for instance).

Author:
tiry, Anahide Tchertchian
  • Method Details

    • getBlobHolderAdapter

      BlobHolder getBlobHolderAdapter(DocumentModel doc)
    • getBlobHolderAdapter

      BlobHolder getBlobHolderAdapter(DocumentModel doc, String factoryName)
      Get a blob holder adapter instantiated by given factory name.
      Parameters:
      factoryName - the factory name
      Returns:
      a blob holder adapter
      Since:
      9.3
    • getExternalBlobForUri

      Blob getExternalBlobForUri(String uri) throws PropertyException, IOException
      Returns an external blob from given uri.
      Parameters:
      uri - the uri describing what adapter handles the file and the needed info to retrieve it.
      Returns:
      the resolved blob.
      Throws:
      PropertyException - if the blob cannot be retrieved (if adapter cannot retrieve it or if file is not found for instance)
      IOException
      See Also:
    • getExternalBlobAdapterForPrefix

      ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
      Returns the external blob adapter registered for given prefix.
      See Also:
    • getExternalBlobAdapterForUri

      ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
      Returns the external blob adapter parsed from given URI.
      See Also: