public interface BlobHolderAdapterService
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).
Modifier and Type | Method and Description |
---|---|
BlobHolder |
getBlobHolderAdapter(DocumentModel doc) |
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.
|
BlobHolder getBlobHolderAdapter(DocumentModel doc)
Blob getExternalBlobForUri(String uri) throws PropertyException, IOException
uri
- the uri describing what adapter handles the file and the needed info to retrieve it.PropertyException
- if the blob cannot be retrieved (if adapter cannot retrieve it or if file is not found
for instance)IOException
ExternalBlobAdapter
ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
ExternalBlobAdapter
ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
ExternalBlobAdapter
Copyright © 2015 Nuxeo SA. All rights reserved.