public class StorageCRUDUtils extends Object
Constructor and Description |
---|
StorageCRUDUtils(StorageClient storageClient) |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteFile(DataCategory dataCategory,
String uid,
String offerId)
deleteFile
|
void |
storeInOffer(DataCategory dataCategory,
String uid,
String offerId,
Long size,
InputStream stream)
Create file or erase it if exists
|
public StorageCRUDUtils(StorageClient storageClient)
public boolean deleteFile(DataCategory dataCategory, String uid, String offerId) throws StorageServerClientException
dataCategory
- categoryuid
- uid of fileStorageServerClientException
public void storeInOffer(DataCategory dataCategory, String uid, String offerId, Long size, InputStream stream) throws BackupServiceException
dataCategory
- dataCategoryofferId
- offerIDuid
- uidstream
- streamBackupServiceException
Copyright © 2018 Vitam. All rights reserved.