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 Summary
Modifier and TypeMethodDescriptiongetBlobHolderAdapter
(DocumentModel doc, String factoryName) Get a blob holder adapter instantiated by given factory name.Returns the external blob adapter registered for given prefix.Returns the external blob adapter parsed from given URI.Returns an external blob from given uri.
-
Method Details
-
getBlobHolderAdapter
-
getBlobHolderAdapter
Get a blob holder adapter instantiated by given factory name.- Parameters:
factoryName
- the factory name- Returns:
- a blob holder adapter
- Since:
- 9.3
-
getExternalBlobForUri
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
Returns the external blob adapter registered for given prefix.- See Also:
-
getExternalBlobAdapterForUri
Returns the external blob adapter parsed from given URI.- See Also:
-