public class RestoreBackupServiceImpl extends Object implements RestoreBackupService
| Constructor and Description | 
|---|
RestoreBackupServiceImpl()
Constructor 
 | 
| 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  | 
public Optional<String> getLatestSavedFileName(String strategy, DataCategory type, FunctionalAdminCollections collection)
RestoreBackupServicegetLatestSavedFileName in interface RestoreBackupServicestrategy - the storage strategy to be appliedtype - the storage collection type.collection - the collection to be restoredpublic Optional<CollectionBackupModel> readLatestSavedFile(String strategy, FunctionalAdminCollections collection)
RestoreBackupServicereadLatestSavedFile in interface RestoreBackupServicestrategy - the storage strategy to be appliedcollection - the collection to be restoredpublic List<OfferLog> getListing(String strategy, DataCategory category, Long offset, int limit, Order order)
getListing in interface RestoreBackupServicestrategy - storage strategycategory - collectionoffset - offsetlimit - limitVitamRuntimeException - storage errorIllegalArgumentException - input errorpublic AccessionRegisterBackupModel loadData(String strategy, FunctionalAdminCollections collection, String filename, long offset)
loadData in interface RestoreBackupServicestrategy - storage strategycollection - collectionfilename - name of file to loadoffset - offsetVitamRuntimeException - storage errorIllegalArgumentException - input errorCopyright © 2018 Vitam. All rights reserved.