public class BlobManagerComponent extends DefaultComponent implements BlobManager
Blob
s, through internally-registered
BlobProvider
s.BlobManager.BlobInfo
Constructor and Description |
---|
BlobManagerComponent() |
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.
|
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerContribution, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public void registerBlobProvider(String prefix, BlobProvider blobProvider)
BlobManager
registerBlobProvider
in interface BlobManager
prefix
- the blob provider prefix, or null
for the defaultblobProvider
- the blob providerpublic void unregisterBlobProvider(String prefix)
BlobManager
unregisterBlobProvider
in interface BlobManager
prefix
- the blob provider prefix, or null
for the defaultpublic BlobProvider getBlobProvider(String key)
BlobManager
getBlobProvider
in interface BlobManager
key
- the managed blob keypublic ManagedBlob getBlob(String repositoryName, BlobManager.BlobInfo blobInfo, Document doc) throws IOException
BlobManager
getBlob
in interface BlobManager
repositoryName
- the repository nameblobInfo
- the blob informationdoc
- the document to which this blob belongsIOException
public BlobManager.BlobInfo getBlobInfo(String repositoryName, Blob blob, Document doc) throws IOException
BlobManager
getBlobInfo
in interface BlobManager
repositoryName
- the repository nameblob
- the blobdoc
- the document to which this blob belongsIOException
Copyright © 2015 Nuxeo SA. All rights reserved.