Class ReconstructionService
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.reconstruction.ReconstructionService
-
public class ReconstructionService extends java.lang.Object
Reconstruction of Vitam Metadata Collections.
-
-
Constructor Summary
Constructors Constructor Description ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache)
ConstructorReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookLifeCyclesClientFactory logbookLifecycleClientFactory, StorageClientFactory storageClientFactory, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache)
Constructor for tests
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
purgeReconstructedDocumentsWithGraphOnlyData(MetadataCollections metaDaCollection)
Find all older (AU/GOT) where only graph data are reconstructed As Documents with only graph data are not indexed in elasticsearch => we have not to implement deletion from ElastcisearchReconstructionResponseItem
reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct a collection
-
-
-
Constructor Detail
-
ReconstructionService
public ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache)
Constructor- Parameters:
vitamRepositoryProvider
- vitamRepositoryProvideroffsetRepository
- offsetRepositoryindexManager
-
-
ReconstructionService
public ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookLifeCyclesClientFactory logbookLifecycleClientFactory, StorageClientFactory storageClientFactory, OffsetRepository offsetRepository, ElasticsearchMetadataIndexManager indexManager, MetadataReconstructionMetricsCache reconstructionMetricsCache)
Constructor for tests- Parameters:
vitamRepositoryProvider
- vitamRepositoryProviderrecoverBackupService
- recoverBackupServicelogbookLifecycleClientFactory
- logbookLifecycleClientFactorystorageClientFactory
- storageClientFactoryoffsetRepository
-reconstructionMetricsCache
-
-
-
Method Detail
-
reconstruct
public ReconstructionResponseItem reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct a collection- Parameters:
reconstructionItem
- request for reconstruction- Returns:
- response of reconstruction
- Throws:
DatabaseException
- database exceptionjava.lang.IllegalArgumentException
- invalid input
-
purgeReconstructedDocumentsWithGraphOnlyData
public void purgeReconstructedDocumentsWithGraphOnlyData(MetadataCollections metaDaCollection)
Find all older (AU/GOT) where only graph data are reconstructed As Documents with only graph data are not indexed in elasticsearch => we have not to implement deletion from Elastcisearch
-
-