public interface BlobDispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
BlobDispatcher.BlobDispatch |
Modifier and Type | Method and Description |
---|---|
default BlobDispatcher.BlobDispatch |
getBlobProvider(Document doc,
Blob blob)
Deprecated.
since 9.1, use
getBlobProvider(Document, Blob, String) instead |
BlobDispatcher.BlobDispatch |
getBlobProvider(Document doc,
Blob blob,
String xpath)
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 name@Deprecated default BlobDispatcher.BlobDispatch getBlobProvider(Document doc, Blob blob)
getBlobProvider(Document, Blob, String)
insteadBlobProvider
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 blobBlobDispatcher.BlobDispatch getBlobProvider(Document doc, Blob blob, String xpath)
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 blobxpath
- the xpath of the blob in the documentvoid notifyChanges(Document doc, Set<String> xpaths)
doc
- the documentxpaths
- the set of changed xpathsCopyright © 2019 Nuxeo. All rights reserved.