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)
void
computeAccessionRegisterSummary(java.lang.String originatingAgency, java.lang.Integer tenant)
void
computeAccessionRegisterSummary(java.util.Set<java.lang.String> originatingAgencies, java.lang.Integer tenant)
ReconstructionResponseItem
reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct a collectionvoid
reconstruct(FunctionalAdminCollections collection)
Reconstrut Vitam collection.void
reconstruct(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:
reconstruct
in 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:
reconstruct
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.lang.String originatingAgency, java.lang.Integer tenant)
- Specified by:
computeAccessionRegisterSummary
in 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:
agregateAccessionRegisterSummary
in interfaceReconstructionService
-
-