Class StorageCRUDUtils
java.lang.Object
fr.gouv.vitam.ihmrecette.appserver.StorageCRUDUtils
StorageCRUDUtils class
this class is a tool for crud operation for storage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
deleteFile
(DataCategory dataCategory, String uid, String strategyId, String offerId) deleteFileget the list of strategies containing the offersvoid
storeInOffer
(DataCategory dataCategory, String uid, String strategyId, String offerId, Long size, InputStream stream) Create file or erase it if exists
-
Constructor Details
-
StorageCRUDUtils
-
-
Method Details
-
getStrategies
get the list of strategies containing the offers- Throws:
StorageServerClientException
-
deleteFile
public boolean deleteFile(DataCategory dataCategory, String uid, String strategyId, String offerId) throws StorageServerClientException deleteFile- Parameters:
dataCategory
- categoryuid
- uid of filestrategyId
- strategy identifierofferId
- offer identifier- Throws:
StorageServerClientException
-
storeInOffer
public void storeInOffer(DataCategory dataCategory, String uid, String strategyId, String offerId, Long size, InputStream stream) throws BackupServiceException Create file or erase it if exists- Parameters:
dataCategory
- dataCategoryuid
- uidstrategyId
- strategyIDofferId
- offerIDstream
- stream- Throws:
BackupServiceException
-