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 fileStorageServerClientExceptionpublic void storeInOffer(DataCategory dataCategory, String uid, String offerId, Long size, InputStream stream) throws BackupServiceException
dataCategory - dataCategoryofferId - offerIDuid - uidstream - streamBackupServiceExceptionCopyright © 2018 Vitam. All rights reserved.