Class ReconstructionServiceImpl
java.lang.Object
fr.gouv.vitam.functional.administration.core.reconstruction.ReconstructionServiceImpl
- All Implemented Interfaces:
ReconstructionService
Reconstrution of Vitam Collections.
-
Constructor Summary
ConstructorsConstructorDescriptionReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager, FunctionalAdministrationReconstructionMetricsCache reconstructionMetricsCache) ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager, FunctionalAdministrationReconstructionMetricsCache reconstructionMetricsCache) -
Method Summary
Modifier and TypeMethodDescriptionList<org.bson.Document>agregateAccessionRegisterSummary(Set<String> originatingAgencies, Integer tenant) voidcomputeAccessionRegisterSummary(Set<String> originatingAgencies, Integer tenant) voidreconstruct(FunctionalAdminCollections collection) Reconstrut Vitam collection.voidreconstruct(FunctionalAdminCollections collection, Integer... tenants) purge collection content and reconstruct the content.reconstructAccessionRegister(ReconstructionRequestItem reconstructionItem) Reconstruct a collection
-
Constructor Details
-
ReconstructionServiceImpl
public ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager, FunctionalAdministrationReconstructionMetricsCache reconstructionMetricsCache) -
ReconstructionServiceImpl
public ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager, FunctionalAdministrationReconstructionMetricsCache reconstructionMetricsCache)
-
-
Method Details
-
reconstruct
public void reconstruct(FunctionalAdminCollections collection, Integer... tenants) throws DatabaseException purge collection content and reconstruct the content.- Specified by:
reconstructin interfaceReconstructionService- Parameters:
collection- the collection to reconstruct.tenants- the given tenant.- Throws:
DatabaseException- in case error with database occurs
-
reconstructAccessionRegister
public ReconstructionResponseItem reconstructAccessionRegister(ReconstructionRequestItem reconstructionItem) Reconstruct a collection- Specified by:
reconstructAccessionRegisterin interfaceReconstructionService- Parameters:
reconstructionItem- request for reconstruction- Returns:
- response of reconstruction
- Throws:
IllegalArgumentException- invalid input
-
reconstruct
Description copied from interface:ReconstructionServiceReconstrut Vitam collection.- Specified by:
reconstructin interfaceReconstructionService- Parameters:
collection- the collection to reconstruct.- Throws:
DatabaseException- in case error with database occurs
-
computeAccessionRegisterSummary
-
agregateAccessionRegisterSummary
public List<org.bson.Document> agregateAccessionRegisterSummary(Set<String> originatingAgencies, Integer tenant) - Specified by:
agregateAccessionRegisterSummaryin interfaceReconstructionService
-