public class ReconstructionServiceImpl extends Object implements ReconstructionService
| Constructor and Description |
|---|
ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider,
OffsetRepository offsetRepository) |
ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider,
RestoreBackupService recoverBuckupService,
OffsetRepository offsetRepository) |
| Modifier and Type | Method and Description |
|---|---|
List<org.bson.Document> |
agregateAccessionRegisterSummary(Set<String> originatingAgencies,
Integer tenant) |
void |
computeAccessionRegisterSummary(Set<String> originatingAgencies,
Integer tenant) |
void |
computeAccessionRegisterSummary(String originatingAgency,
Integer tenant) |
void |
reconstruct(FunctionalAdminCollections collection)
Reconstrut Vitam collection.
|
void |
reconstruct(FunctionalAdminCollections collection,
Integer... tenants)
purge collection content and reconstruct the content.
|
ReconstructionResponseItem |
reconstruct(ReconstructionRequestItem reconstructionItem)
Reconstruct a collection
|
public ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, OffsetRepository offsetRepository)
public ReconstructionServiceImpl(VitamRepositoryProvider vitamRepositoryProvider, RestoreBackupService recoverBuckupService, OffsetRepository offsetRepository)
public void reconstruct(FunctionalAdminCollections collection, Integer... tenants) throws DatabaseException
reconstruct in interface ReconstructionServicecollection - the collection to reconstruct.tenants - the given tenant.DatabaseException - in case error with database occurspublic ReconstructionResponseItem reconstruct(ReconstructionRequestItem reconstructionItem)
reconstruct in interface ReconstructionServicereconstructionItem - request for reconstructionDatabaseException - database exceptionIllegalArgumentException - invalid inputpublic void reconstruct(FunctionalAdminCollections collection) throws DatabaseException
ReconstructionServicereconstruct in interface ReconstructionServicecollection - the collection to reconstruct.DatabaseException - in case error with database occurspublic void computeAccessionRegisterSummary(String originatingAgency, Integer tenant)
computeAccessionRegisterSummary in interface ReconstructionServicepublic void computeAccessionRegisterSummary(Set<String> originatingAgencies, Integer tenant)
public List<org.bson.Document> agregateAccessionRegisterSummary(Set<String> originatingAgencies, Integer tenant)
agregateAccessionRegisterSummary in interface ReconstructionServiceCopyright © 2018 Vitam. All rights reserved.