public interface BlobDispatcher
| Modifier and Type | Interface and Description |
|---|---|
static class |
BlobDispatcher.BlobDispatch |
| Modifier and Type | Method and Description |
|---|---|
BlobDispatcher.BlobDispatch |
getBlobProvider(Document doc,
Blob blob)
Decides which
BlobProvider to use to write the given blob, and whether the provider id should be added as
prefix to the managed blob key. |
String |
getBlobProvider(String repositoryName)
Decides which
BlobProvider to use to read a blob from the given repository if no prefix is specified in
the blob key. |
Collection<String> |
getBlobProviderIds()
Gets the provider ids to which this dispatcher can dispatch.
|
void |
initialize(Map<String,String> properties)
Initializes this blob dispatcher.
|
void |
notifyChanges(Document doc,
Set<String> xpaths)
Notifies the blob dispatcher that a set of xpaths have changed on a document.
|
void initialize(Map<String,String> properties)
Collection<String> getBlobProviderIds()
Blobs already having a provider id not listed here won't be touched on write.
String getBlobProvider(String repositoryName)
BlobProvider to use to read a blob from the given repository if no prefix is specified in
the blob key.repositoryName - the repository nameBlobDispatcher.BlobDispatch getBlobProvider(Document doc, Blob blob)
BlobProvider to use to write the given blob, and whether the provider id should be added as
prefix to the managed blob key.doc - the document containing the blobblob - the blobvoid notifyChanges(Document doc, Set<String> xpaths)
doc - the documentxpaths - the set of changed xpathsCopyright © 2016 Nuxeo SA. All rights reserved.