public class RestoreBackupServiceImpl extends Object implements RestoreBackupService
| Constructor and Description |
|---|
RestoreBackupServiceImpl() |
| 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.
|
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 restoredCopyright © 2018 Vitam. All rights reserved.