public interface BlobManager
Blobs, through internally-registered BlobProviders.| Modifier and Type | Interface and Description |
|---|---|
static class |
BlobManager.BlobInfo
Class describing information from a
Blob, suitable for serialization and storage. |
| Modifier and Type | Method and Description |
|---|---|
ManagedBlob |
getBlob(String repositoryName,
BlobManager.BlobInfo blobInfo,
Document doc)
Creates a blob from the given blob info.
|
BlobManager.BlobInfo |
getBlobInfo(String repositoryName,
Blob blob,
Document doc)
Gets the blob info from a blob.
|
BlobProvider |
getBlobProvider(String key)
Gets the blob provider for a give managed blob key.
|
void |
registerBlobProvider(String prefix,
BlobProvider blobProvider)
INTERNAL - Registers a blob provider.
|
void |
unregisterBlobProvider(String prefix)
INTERNAL - Unregisters a blob provider.
|
void registerBlobProvider(String prefix, BlobProvider blobProvider)
prefix - the blob provider prefix, or null for the defaultblobProvider - the blob providervoid unregisterBlobProvider(String prefix)
prefix - the blob provider prefix, or null for the defaultBlobProvider getBlobProvider(String key)
key - the managed blob keyManagedBlob getBlob(String repositoryName, BlobManager.BlobInfo blobInfo, Document doc) throws IOException
repositoryName - the repository nameblobInfo - the blob informationdoc - the document to which this blob belongsIOExceptionBlobManager.BlobInfo getBlobInfo(String repositoryName, Blob blob, Document doc) throws IOException
repositoryName - the repository nameblob - the blobdoc - the document to which this blob belongsIOExceptionCopyright © 2015 Nuxeo SA. All rights reserved.