Class ReconstructionServiceImpl
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.common.impl.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)ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager)
-
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)voidcomputeAccessionRegisterSummary(java.lang.String originatingAgency, java.lang.Integer tenant)voidcomputeAccessionRegisterSummary(java.util.Set<java.lang.String> originatingAgencies, java.lang.Integer tenant)ReconstructionResponseItemreconstruct(ReconstructionRequestItem reconstructionItem)Reconstruct a collectionvoidreconstruct(FunctionalAdminCollections collection)Reconstrut Vitam collection.voidreconstruct(FunctionalAdminCollections collection, java.lang.Integer... tenants)purge collection content and reconstruct the content.
-
-
-
Constructor Detail
-
ReconstructionServiceImpl
public ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager)
-
ReconstructionServiceImpl
public ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBackupService, OffsetRepository offsetRepository, ElasticsearchFunctionalAdminIndexManager indexManager)
-
-
Method Detail
-
reconstruct
public void reconstruct(FunctionalAdminCollections collection, java.lang.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
-
reconstruct
public ReconstructionResponseItem reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct a collection- Specified by:
reconstructin 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:ReconstructionServiceReconstrut Vitam collection.- Specified by:
reconstructin interfaceReconstructionService- Parameters:
collection- the collection to reconstruct.- Throws:
DatabaseException- in case error with database occurs
-
computeAccessionRegisterSummary
public void computeAccessionRegisterSummary(java.lang.String originatingAgency, java.lang.Integer tenant)- Specified by:
computeAccessionRegisterSummaryin interfaceReconstructionService
-
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:
agregateAccessionRegisterSummaryin interfaceReconstructionService
-
-