public interface BatchUpdateBlobProvider
processDocumentsUpdate()
is called by BlobProviderDocumentsUpdateListener
.
The implementation of processDocumentsUpdate()
must schedule a BlobProviderDocumentsUpdateWork
with
the document ids to be checked and updated if needed.
The @{link BlobProviderDocumentsUpdateWork} will then call the implementation of
checkChangesAndUpdateBlob(List)
.
Note that it is recommended to schedule many workers dealing with a smaller amount of documents (using
MAX_RESULT
) rather than a single one processing all document brought by the provider.
Modifier and Type | Field and Description |
---|---|
static long |
MAX_RESULT |
Modifier and Type | Method and Description |
---|---|
List<DocumentModel> |
checkChangesAndUpdateBlob(List<DocumentModel> doc)
Check the given list of document for change and update if needed.
|
String |
getBlobProviderId() |
String |
getPageProviderNameForUpdate() |
default void |
processDocumentsUpdate()
Trigger the documents update for the implementing providers.
|
static final long MAX_RESULT
List<DocumentModel> checkChangesAndUpdateBlob(List<DocumentModel> doc)
documents
- to be checked for updateIOException
String getPageProviderNameForUpdate()
String getBlobProviderId()
default void processDocumentsUpdate()
Copyright © 2015 Nuxeo SA. All rights reserved.