public class StorageCRUDUtils extends Object
Constructor and Description |
---|
StorageCRUDUtils(StorageClient storageClient) |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteFile(DataCategory dataCategory,
String uid,
String strategyId,
String offerId)
deleteFile
|
RequestResponse<StorageStrategy> |
getStrategies()
get the list of strategies containing the offers
|
void |
storeInOffer(DataCategory dataCategory,
String uid,
String strategyId,
String offerId,
Long size,
InputStream stream)
Create file or erase it if exists
|
public StorageCRUDUtils(StorageClient storageClient)
public RequestResponse<StorageStrategy> getStrategies() throws StorageServerClientException
return
- result of strategiesStorageServerClientException
public boolean deleteFile(DataCategory dataCategory, String uid, String strategyId, String offerId) throws StorageServerClientException
dataCategory
- categoryuid
- uid of filestrategyId
- strategy identifierofferId
- offer identifierStorageServerClientException
public void storeInOffer(DataCategory dataCategory, String uid, String strategyId, String offerId, Long size, InputStream stream) throws BackupServiceException
dataCategory
- dataCategoryuid
- uidstrategyId
- strategyIDofferId
- offerIDstream
- streamBackupServiceException
Copyright © 2019 Vitam. All rights reserved.