Interface BlobHolderAdapterService
-
- All Known Implementing Classes:
BlobHolderAdapterComponent
public interface BlobHolderAdapterService
Service interface for creating the rightBlobHolder
adapter depending on theDocumentModel
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlobHolder
getBlobHolderAdapter(DocumentModel doc)
BlobHolder
getBlobHolderAdapter(DocumentModel doc, String factoryName)
Get a blob holder adapter instantiated by given factory name.ExternalBlobAdapter
getExternalBlobAdapterForPrefix(String prefix)
Returns the external blob adapter registered for given prefix.ExternalBlobAdapter
getExternalBlobAdapterForUri(String uri)
Returns the external blob adapter parsed from given URI.Blob
getExternalBlobForUri(String uri)
Returns an external blob from given uri.
-
-
-
Method Detail
-
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:
ExternalBlobAdapter
-
getExternalBlobAdapterForPrefix
ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
Returns the external blob adapter registered for given prefix.- See Also:
ExternalBlobAdapter
-
getExternalBlobAdapterForUri
ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
Returns the external blob adapter parsed from given URI.- See Also:
ExternalBlobAdapter
-
-