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 strategiesStorageServerClientExceptionpublic boolean deleteFile(DataCategory dataCategory, String uid, String strategyId, String offerId) throws StorageServerClientException
dataCategory - categoryuid - uid of filestrategyId - strategy identifierofferId - offer identifierStorageServerClientExceptionpublic void storeInOffer(DataCategory dataCategory, String uid, String strategyId, String offerId, Long size, InputStream stream) throws BackupServiceException
dataCategory - dataCategoryuid - uidstrategyId - strategyIDofferId - offerIDstream - streamBackupServiceExceptionCopyright © 2019 Vitam. All rights reserved.