public class MetadataStorageService extends Object
Constructor and Description |
---|
MetadataStorageService(MetadataRepository metadataRepository,
LogbookRepository logbookRepository,
StoragePopulateImpl storagePopulateService)
Constructor
|
Modifier and Type | Method and Description |
---|---|
RequestResponse<TapeReadRequestReferentialEntity> |
createReadOrderRequest(Integer tenant,
String strategyId,
String offerId,
String objectId,
DataCategory dataCategory) |
VitamAsyncInputStreamResponse |
download(Integer tenantId,
DataCategory dataCategory,
String strategyId,
String offerId,
String objectId) |
StorageOffer |
getOffer(String offerId) |
RequestResponse<TapeReadRequestReferentialEntity> |
getReadOrderRequest(Integer tenant,
String strategyId,
String offerId,
String readOrderId) |
Collection<StorageStrategy> |
getStrategies() |
boolean |
storeToOffers(PopulateModel populateModel,
List<UnitGotModel> unitGotList)
Stores LFC / GOT + LFC into offers
|
public MetadataStorageService(MetadataRepository metadataRepository, LogbookRepository logbookRepository, StoragePopulateImpl storagePopulateService)
public boolean storeToOffers(PopulateModel populateModel, List<UnitGotModel> unitGotList)
populateModel
- unitGotList
- public RequestResponse<TapeReadRequestReferentialEntity> createReadOrderRequest(Integer tenant, String strategyId, String offerId, String objectId, DataCategory dataCategory)
public RequestResponse<TapeReadRequestReferentialEntity> getReadOrderRequest(Integer tenant, String strategyId, String offerId, String readOrderId)
public VitamAsyncInputStreamResponse download(Integer tenantId, DataCategory dataCategory, String strategyId, String offerId, String objectId) throws StorageTechnicalException, StorageDriverException, StorageNotFoundException
public StorageOffer getOffer(String offerId) throws StorageException
StorageException
public Collection<StorageStrategy> getStrategies() throws StorageException
StorageException
Copyright © 2019 Vitam. All rights reserved.