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