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> documents)
Check the given list of document for change and update if needed.
|
void |
processDocumentsUpdate()
Trigger the documents update for the implementing providers.
|
static final long MAX_RESULT
List<DocumentModel> checkChangesAndUpdateBlob(List<DocumentModel> documents)
documents
- to be checked for updatevoid processDocumentsUpdate()
Copyright © 2018 Nuxeo. All rights reserved.