Class ReconstructionServiceImpl
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.core.reconstruction.ReconstructionServiceImpl
-
- All Implemented Interfaces:
ReconstructionService
public class ReconstructionServiceImpl extends java.lang.Object implements ReconstructionService
Reconstrution of Vitam Collections.
-
-
Constructor Summary
Constructors Constructor Description ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager, FunctionalAdministrationReconstructionMetricsCache reconstructionMetricsCache)
ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager, FunctionalAdministrationReconstructionMetricsCache reconstructionMetricsCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.bson.Document>
agregateAccessionRegisterSummary(java.util.Set<java.lang.String> originatingAgencies, java.lang.Integer tenant)
void
computeAccessionRegisterSummary(java.util.Set<java.lang.String> originatingAgencies, java.lang.Integer tenant)
void
reconstruct(FunctionalAdminCollections collection)
Reconstrut Vitam collection.void
reconstruct(FunctionalAdminCollections collection, java.lang.Integer... tenants)
purge collection content and reconstruct the content.ReconstructionResponseItem
reconstructAccessionRegister(ReconstructionRequestItem reconstructionItem)
Reconstruct a collection
-
-
-
Constructor Detail
-
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 Detail
-
reconstruct
public void reconstruct(FunctionalAdminCollections collection, java.lang.Integer... tenants) throws DatabaseException
purge collection content and reconstruct the content.- Specified by:
reconstruct
in 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:
reconstructAccessionRegister
in interfaceReconstructionService
- Parameters:
reconstructionItem
- request for reconstruction- Returns:
- response of reconstruction
- Throws:
java.lang.IllegalArgumentException
- invalid input
-
reconstruct
public void reconstruct(FunctionalAdminCollections collection) throws DatabaseException
Description copied from interface:ReconstructionService
Reconstrut Vitam collection.- Specified by:
reconstruct
in interfaceReconstructionService
- Parameters:
collection
- the collection to reconstruct.- Throws:
DatabaseException
- in case error with database occurs
-
computeAccessionRegisterSummary
public void computeAccessionRegisterSummary(java.util.Set<java.lang.String> originatingAgencies, java.lang.Integer tenant)
-
agregateAccessionRegisterSummary
public java.util.List<org.bson.Document> agregateAccessionRegisterSummary(java.util.Set<java.lang.String> originatingAgencies, java.lang.Integer tenant)
- Specified by:
agregateAccessionRegisterSummary
in interfaceReconstructionService
-
-