public class ReconstructionService extends Object
Constructor and Description |
---|
ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider,
OffsetRepository offsetRepository)
Constructor
|
ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider,
RestoreBackupService recoverBackupService,
LogbookLifeCyclesClientFactory logbookLifecycleClientFactory,
OffsetRepository offsetRepository)
Constructor for tests
|
Modifier and Type | Method and 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 Elastcisearch
|
ReconstructionResponseItem |
reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct a collection
|
public ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository)
vitamRepositoryProvider
- vitamRepositoryProvideroffsetRepository
- offsetRepositorypublic ReconstructionService(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, LogbookLifeCyclesClientFactory logbookLifecycleClientFactory, OffsetRepository offsetRepository)
vitamRepositoryProvider
- vitamRepositoryProviderrecoverBackupService
- recoverBackupServicelogbookLifecycleClientFactory
- logbookLifecycleClientFactoryoffsetRepository
- public ReconstructionResponseItem reconstruct(ReconstructionRequestItem reconstructionItem)
reconstructionItem
- request for reconstructionDatabaseException
- database exceptionIllegalArgumentException
- invalid inputpublic void purgeReconstructedDocumentsWithGraphOnlyData(MetadataCollections metaDaCollection)
Copyright © 2019 Vitam. All rights reserved.