public interface RestoreBackupService
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getLatestSavedFileName(String strategy,
DataCategory type,
FunctionalAdminCollections collection)
get the latest file name according to the name suffix.
|
List<OfferLog> |
getListing(String strategy,
DataCategory category,
Long offset,
int limit,
Order order)
Retrieve list of offer log defining objects to reconstruct from offer log
|
AccessionRegisterBackupModel |
loadData(String strategy,
FunctionalAdminCollections collection,
String filename,
long offset)
Load data from storage
|
Optional<CollectionBackupModel> |
readLatestSavedFile(String strategy,
FunctionalAdminCollections collection)
Read the latest file using the name requested by getLatestSavedFileName.
Be careful, this method use tenant that is requested from the VitamSession |
Optional<String> getLatestSavedFileName(String strategy, DataCategory type, FunctionalAdminCollections collection)
strategy - the storage strategy to be appliedcollection - the collection to be restoredtype - the storage collection type.Optional<CollectionBackupModel> readLatestSavedFile(String strategy, FunctionalAdminCollections collection)
strategy - the storage strategy to be appliedcollection - the collection to be restoredList<OfferLog> getListing(String strategy, DataCategory category, Long offset, int limit, Order order)
strategy - storage strategycategory - collectionoffset - offsetlimit - limitVitamRuntimeException - storage errorIllegalArgumentException - input errorAccessionRegisterBackupModel loadData(String strategy, FunctionalAdminCollections collection, String filename, long offset)
strategy - storage strategycollection - collectionfilename - name of file to loadoffset - offsetVitamRuntimeException - storage errorIllegalArgumentException - input errorCopyright © 2018 Vitam. All rights reserved.