public class ReferentialAccessionRegisterImpl extends Object implements VitamAutoCloseable
| Constructor and Description |
|---|
ReferentialAccessionRegisterImpl(MongoDbAccessAdminImpl dbConfiguration,
FunctionalBackupService functionalBackupService)
Constructor
|
ReferentialAccessionRegisterImpl(MongoDbAccessAdminImpl dbConfiguration,
VitamCounterService vitamCounterService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createOrUpdateAccessionRegister(AccessionRegisterDetailModel registerDetail) |
List<AccessionRegisterSymbolic> |
findAccessionRegisterSymbolic(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find the accession register symbolic filtered by the query dsl,
if an empty query dsl is provided, the last 20 accession register
symbolics will be returned.
|
RequestResponseOK<AccessionRegisterDetail> |
findDetail(com.fasterxml.jackson.databind.JsonNode select)
search for an accession register's operation detail
|
RequestResponseOK<AccessionRegisterSummary> |
findDocuments(com.fasterxml.jackson.databind.JsonNode select)
search for an accession register's summary
|
void |
insertAccessionRegisterSymbolic(List<AccessionRegisterSymbolic> accessionRegisterSymbolics)
Insert a list of accession register symbolic.
|
public ReferentialAccessionRegisterImpl(MongoDbAccessAdminImpl dbConfiguration, VitamCounterService vitamCounterService)
dbConfiguration - the mongo access configurationpublic ReferentialAccessionRegisterImpl(MongoDbAccessAdminImpl dbConfiguration, FunctionalBackupService functionalBackupService)
dbConfiguration - the mongo access configurationpublic void insertAccessionRegisterSymbolic(List<AccessionRegisterSymbolic> accessionRegisterSymbolics) throws ReferentialException, SchemaValidationException, InvalidParseOperationException, DocumentAlreadyExistsException
accessionRegisterSymbolics - to insertReferentialExceptionSchemaValidationExceptionInvalidParseOperationExceptionDocumentAlreadyExistsExceptionpublic List<AccessionRegisterSymbolic> findAccessionRegisterSymbolic(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException
queryDsl - that filter the accession register to findReferentialExceptionpublic void createOrUpdateAccessionRegister(AccessionRegisterDetailModel registerDetail) throws BadRequestException, ReferentialException
registerDetail - to create in MongodbReferentialException - throws when insert mongodb errorBadRequestExceptionpublic void close()
close in interface VitamAutoCloseableclose in interface AutoCloseablepublic RequestResponseOK<AccessionRegisterSummary> findDocuments(com.fasterxml.jackson.databind.JsonNode select) throws ReferentialException
select - the search criteria for the select operationReferentialException - If the search's result is null or empty, or if the mongo search throw errorpublic RequestResponseOK<AccessionRegisterDetail> findDetail(com.fasterxml.jackson.databind.JsonNode select) throws ReferentialException
select - the search criteria for the select operationReferentialException - If the search's result is null or empty, or if the mongo search throw errorCopyright © 2021 Vitam. All rights reserved.