Class BackupService
java.lang.Object
fr.gouv.vitam.functional.administration.core.backup.BackupService
BackupService class for storing files in offers
Thread Safe
-
Constructor Summary
ConstructorDescriptionBackupService
(WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory) -
Method Summary
Modifier and TypeMethodDescriptionbackup
(InputStream stream, DataCategory storageCollectionType, String uri) Store file in offersbackup
(InputStream stream, DataCategory storageCollectionType, String uri, String strategyId) Store file in offers with defined strategybackupFromWorkspace
(String workspaceUri, DataCategory storageCollectionType, String objectName) Store file in offersstoreIntoOffers
(String workspaceContainer, String workspaceUri, DataCategory storageCollectionType, String objectName, String strategyId) Store file in offers
-
Constructor Details
-
BackupService
public BackupService() -
BackupService
public BackupService(WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory)
-
-
Method Details
-
backupFromWorkspace
public StoredInfoResult backupFromWorkspace(String workspaceUri, DataCategory storageCollectionType, String objectName) throws BackupServiceException Store file in offers- Throws:
BackupServiceException
-
backup
public StoredInfoResult backup(InputStream stream, DataCategory storageCollectionType, String uri) throws BackupServiceException Store file in offers- Throws:
BackupServiceException
-
backup
public StoredInfoResult backup(InputStream stream, DataCategory storageCollectionType, String uri, String strategyId) throws BackupServiceException Store file in offers with defined strategy- Throws:
BackupServiceException
-
storeIntoOffers
public StoredInfoResult storeIntoOffers(String workspaceContainer, String workspaceUri, DataCategory storageCollectionType, String objectName, String strategyId) throws BackupServiceException Store file in offers- Throws:
BackupServiceException
-