Class BackupService
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.common.BackupService
-
public class BackupService extends java.lang.Object
BackupService class for storing files in offers Thread Safe
-
-
Constructor Summary
Constructors Constructor Description BackupService()
BackupService(WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredInfoResult
backup(java.io.InputStream stream, DataCategory storageCollectionType, java.lang.String uri)
Store file in offersStoredInfoResult
backup(java.io.InputStream stream, DataCategory storageCollectionType, java.lang.String uri, java.lang.String strategyId)
Store file in offers with defined strategyStoredInfoResult
backupFromWorkspace(java.lang.String workspaceUri, DataCategory storageCollectionType, java.lang.String objectName)
Store file in offersStoredInfoResult
storeIntoOffers(java.lang.String workspaceContainer, java.lang.String workspaceUri, DataCategory storageCollectionType, java.lang.String objectName, java.lang.String strategyId)
Store file in offers
-
-
-
Constructor Detail
-
BackupService
public BackupService()
-
BackupService
public BackupService(WorkspaceClientFactory workspaceClientFactory, StorageClientFactory storageClientFactory)
-
-
Method Detail
-
backupFromWorkspace
public StoredInfoResult backupFromWorkspace(java.lang.String workspaceUri, DataCategory storageCollectionType, java.lang.String objectName) throws BackupServiceException
Store file in offers- Throws:
BackupServiceException
-
backup
public StoredInfoResult backup(java.io.InputStream stream, DataCategory storageCollectionType, java.lang.String uri) throws BackupServiceException
Store file in offers- Throws:
BackupServiceException
-
backup
public StoredInfoResult backup(java.io.InputStream stream, DataCategory storageCollectionType, java.lang.String uri, java.lang.String strategyId) throws BackupServiceException
Store file in offers with defined strategy- Throws:
BackupServiceException
-
storeIntoOffers
public StoredInfoResult storeIntoOffers(java.lang.String workspaceContainer, java.lang.String workspaceUri, DataCategory storageCollectionType, java.lang.String objectName, java.lang.String strategyId) throws BackupServiceException
Store file in offers- Throws:
BackupServiceException
-
-