Class StorageService
java.lang.Object
fr.gouv.vitam.ihmrecette.appserver.StorageService
-
Constructor Summary
ConstructorDescriptionStorageService
(StorageConfiguration configuration) Constructs the service with a given configuration -
Method Summary
Modifier and TypeMethodDescriptioncheckAccessRequestStatus
(Integer tenantId, String strategyId, String offerId, String accessRequestId) createAccessRequest
(Integer tenantId, String strategyId, String offerId, String objectId, DataCategory category) download
(Integer tenantId, DataCategory dataCategory, String strategyId, String offerId, String objectId) getOffersReferences
(String strategyId) removeAccessRequest
(Integer tenantId, String strategyId, String offerId, String accessRequestId)
-
Constructor Details
-
StorageService
Constructs the service with a given configuration- Parameters:
configuration
- configuration of storage server
-
-
Method Details
-
createAccessRequest
public RequestResponse<String> createAccessRequest(Integer tenantId, String strategyId, String offerId, String objectId, DataCategory category) throws StorageTechnicalException, StorageNotFoundException -
download
public VitamAsyncInputStreamResponse download(Integer tenantId, DataCategory dataCategory, String strategyId, String offerId, String objectId) throws StorageTechnicalException, StorageDriverException, StorageNotFoundException -
checkAccessRequestStatus
public RequestResponse<AccessRequestStatus> checkAccessRequestStatus(Integer tenantId, String strategyId, String offerId, String accessRequestId) throws StorageTechnicalException, StorageNotFoundException -
removeAccessRequest
public RequestResponse<AccessRequestStatus> removeAccessRequest(Integer tenantId, String strategyId, String offerId, String accessRequestId) throws StorageTechnicalException, StorageNotFoundException -
getOffersReferences
public List<OfferReference> getOffersReferences(String strategyId) throws StorageNotFoundException, StorageTechnicalException
-