Uses of Class
fr.gouv.vitam.common.exception.DatabaseException
Package
Description
Provides common database API
Provides common database API implementations
Database server package in vitam
Elasticsearch server package in Vitam
Common Exception package
Provides common server classes for the Functional Administration module
Provides Common Server classes for the Logbook module
Provides Logbook collection classes
Provides API classes for the Logbook Lifecycles module
Provides core implementation for the Logbook Lifecycles module.
Provides API classes for the Logbook Operations module
Provides core implementation for the Logbook Operations module.
Provides
Provides
-
Uses of DatabaseException in fr.gouv.vitam.common.database.api
Modifier and TypeMethodDescriptionvoid
Deleted all documents by idsOptional<org.bson.Document>
VitamRepository.findByIdentifier
(String identifier) Find by identifier for collections cross tenantOptional<org.bson.Document>
VitamRepository.findByIdentifierAndTenant
(String identifier, Integer tenant) find by identifier for all tenantOptional<org.bson.Document>
Get vitam document by idlong
VitamRepository.purge()
Be careful when using this method Remove by tenant for collection cross-tenantlong
Be careful when using this method Remove by tenant for collection multi-tenantvoid
Remove document by idlong
VitamRepository.remove
(org.bson.conversions.Bson query) Be careful when using this method Remove by queryvoid
VitamRepository.removeByNameAndTenant
(String name, Integer tenant) Be careful when using this method Remove collection by name and tenantvoid
Save a list of vitam documentsvoid
VitamRepository.save
(org.bson.Document document) Save vitam documentvoid
VitamRepository.saveOrUpdate
(List<org.bson.Document> documents) Save or update a list of vitam documentsVitamRepository.saveOrUpdate
(org.bson.Document document) Save or updatevitam documentvoid
Used to execute a bulk update If document exists then update If document do not exists then create document throw Duplicate key exception if document exists by _id but not exists by filter in the update one model -
Uses of DatabaseException in fr.gouv.vitam.common.database.api.impl
Modifier and TypeMethodDescriptionvoid
Optional<org.bson.Document>
VitamElasticsearchRepository.findByIdentifier
(String identifier) Optional<org.bson.Document>
VitamMongoRepository.findByIdentifier
(String identifier) Optional<org.bson.Document>
VitamElasticsearchRepository.findByIdentifierAndTenant
(String identifier, Integer tenant) Optional<org.bson.Document>
VitamMongoRepository.findByIdentifierAndTenant
(String identifier, Integer tenant) Optional<org.bson.Document>
Optional<org.bson.Document>
Optional<org.bson.Document>
VitamElasticsearchRepository.getDocumentByIdCrossIndices
(String id) WARNING: Query all indices.long
VitamElasticsearchRepository.purge()
long
long
VitamMongoRepository.purge()
long
void
void
long
VitamMongoRepository.remove
(org.bson.conversions.Bson query) void
VitamMongoRepository.removeByNameAndTenant
(String name, Integer tenant) void
VitamElasticsearchRepository.save
(ElasticsearchCollections elasticsearchCollections, List<org.bson.Document> documents) void
VitamElasticsearchRepository.save
(org.bson.Document document) void
void
VitamMongoRepository.save
(org.bson.Document document) void
VitamMongoRepository.saveOrUpdate
(List<org.bson.Document> documents) VitamMongoRepository.saveOrUpdate
(org.bson.Document document) co.elastic.clients.elasticsearch.core.SearchResponse<org.bson.Document>
VitamElasticsearchRepository.search
(String index, co.elastic.clients.elasticsearch._types.query_dsl.Query qb) void
-
Uses of DatabaseException in fr.gouv.vitam.common.database.server
Modifier and TypeMethodDescriptionDbRequestSingle.execute
(Insert request, Integer version, DocumentValidator documentValidator) DbRequestSingle.execute
(Update request, DocumentValidator documentValidator) DbRequestSingle.executeQueryWithoutRestrictionOnCurrentTenant
(Select request) void
DbRequestSingle.replaceDocument
(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) void
DbRequestSingle.replaceDocuments
(Map<String, com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) -
Uses of DatabaseException in fr.gouv.vitam.common.database.server.elasticsearch
Modifier and TypeMethodDescriptionstatic DatabaseException
ElasticsearchUtil.toDatabaseException
(Exception e) static DatabaseException
ElasticsearchUtil.toDatabaseException
(String msg, Exception e) Modifier and TypeMethodDescriptionvoid
ElasticsearchAccess.clearScroll
(String scrollId) final void
ElasticsearchAccess.createIndexAndAliasIfAliasNotExists
(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile) final ElasticsearchIndexAlias
ElasticsearchAccess.createIndexWithoutAlias
(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile) void
ElasticsearchAccess.delete
(ElasticsearchIndexAlias indexAlias, List<String> ids) final void
ElasticsearchAccess.deleteIndexByAliasForTesting
(ElasticsearchIndexAlias indexAlias) final void
ElasticsearchAccess.deleteIndexForTesting
(ElasticsearchIndexAlias indexAlias) final boolean
ElasticsearchAccess.existsAlias
(ElasticsearchIndexAlias indexAlias) final boolean
ElasticsearchAccess.existsIndex
(ElasticsearchIndexAlias index) void
ElasticsearchAccess.indexEntries
(ElasticsearchIndexAlias indexAlias, Collection<? extends org.bson.Document> documents, boolean withRefreshIndex) final <T> void
ElasticsearchAccess.indexEntry
(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument) final void
ElasticsearchAccess.purgeIndexForTesting
(ElasticsearchIndexAlias indexAlias) protected void
ElasticsearchAccess.purgeIndexForTesting
(ElasticsearchIndexAlias indexAlias, Integer tenantId) final void
ElasticsearchAccess.refreshIndex
(ElasticsearchIndexAlias indexAlias) IndexationHelper.reindex
(com.mongodb.client.MongoCollection<org.bson.Document> collection, ElasticsearchAccess esClient, ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, ElasticsearchCollections elasticsearchCollection, List<Integer> tenantIds, String tenantGroupName, String elasticsearchConfigurationFilePath) reindex a collection on a tenant list with a esmapping filefinal co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>
ElasticsearchAccess.search
(ElasticsearchIndexAlias indexAlias, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit) final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>
ElasticsearchAccess.search
(ElasticsearchIndexAlias indexAlias, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets, String scrollId, Integer scrollTimeout, boolean trackTotalHits) final co.elastic.clients.elasticsearch.core.search.ResponseBody<com.fasterxml.jackson.databind.node.ObjectNode>
ElasticsearchAccess.searchCrossIndices
(Set<ElasticsearchIndexAlias> indexAliases, co.elastic.clients.elasticsearch._types.query_dsl.Query query, String[] esProjection, List<co.elastic.clients.elasticsearch._types.SortOptions> sorts, int offset, Integer limit, Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets, String scrollId, Integer scrollTimeout, boolean trackTotalHits) final void
ElasticsearchAccess.switchIndex
(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias indexNameToSwitchTo) IndexationHelper.switchIndex
(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias newIndex, ElasticsearchAccess esClient) switch index, attach a new index to an existing alias<T> void
ElasticsearchAccess.updateEntry
(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument) Update one element fully -
Uses of DatabaseException in fr.gouv.vitam.common.exception
-
Uses of DatabaseException in fr.gouv.vitam.functional.administration.common.server
Modifier and TypeMethodDescriptionMongoDbAccessAdminImpl.deleteCollectionForTesting
(FunctionalAdminCollections collection) MongoDbAccessAdminImpl.deleteCollectionForTesting
(FunctionalAdminCollections collection, Delete delete) MongoDbAccessReferential.deleteCollectionForTesting
(FunctionalAdminCollections collection) Delete FileFormat collectionsMongoDbAccessReferential.deleteCollectionForTesting
(FunctionalAdminCollections collection, Delete delete) void
VitamElasticsearchReindex.reindex
(VitamCollection collections) void
MongoDbAccessAdminImpl.replaceDocument
(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, FunctionalAdminCollections vitamCollection) void
MongoDbAccessReferential.replaceDocument
(com.fasterxml.jackson.databind.JsonNode document, String identifier, String identifierName, FunctionalAdminCollections vitamCollection) void
MongoDbAccessAdminImpl.replaceDocuments
(Map<String, com.fasterxml.jackson.databind.JsonNode> documentByIdentifier, String identifierKey, FunctionalAdminCollections vitamCollection) -
Uses of DatabaseException in fr.gouv.vitam.functional.administration.core.reconstruction
Modifier and TypeMethodDescriptionvoid
ReconstructionService.reconstruct
(FunctionalAdminCollections collection) Reconstrut Vitam collection.void
ReconstructionService.reconstruct
(FunctionalAdminCollections collection, Integer... tenant) Reconstrut Vitam collection by tenant.void
ReconstructionServiceImpl.reconstruct
(FunctionalAdminCollections collection) void
ReconstructionServiceImpl.reconstruct
(FunctionalAdminCollections collection, Integer... tenants) purge collection content and reconstruct the content. -
Uses of DatabaseException in fr.gouv.vitam.logbook.common.server
Modifier and TypeMethodDescriptionvoid
LogbookDbAccess.bulkInsert
(String idOp, LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) void
LogbookDbAccess.deleteCollectionForTesting
(LogbookCollections collection) Delete logbook collection -
Uses of DatabaseException in fr.gouv.vitam.logbook.common.server.database.collections
Modifier and TypeMethodDescriptionvoid
LogbookMongoDbAccessImpl.bulkInsert
(String operationId, LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) void
LogbookMongoDbAccessImpl.deleteCollectionForTesting
(LogbookCollections collection) void
LogbookRepositoryService.saveBulk
(LogbookCollections collection, List<com.fasterxml.jackson.databind.JsonNode> logbookItems) Save datas as bulk -
Uses of DatabaseException in fr.gouv.vitam.logbook.lifecycles.api
Modifier and TypeMethodDescriptionvoid
LogbookLifeCycles.bulk
(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) Bulk methodvoid
LogbookLifeCycles.deleteLifeCycleObjectGroups
(List<String> objectGroupIds) delete LifeCycle ObjectGroupsvoid
LogbookLifeCycles.deleteLifeCycleUnits
(List<String> unitsIdentifier) delete LifeCycle Units -
Uses of DatabaseException in fr.gouv.vitam.logbook.lifecycles.core
Modifier and TypeMethodDescriptionvoid
LogbookLifeCyclesImpl.bulk
(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) void
LogbookLifeCyclesImpl.deleteLifeCycleObjectGroups
(List<String> objectGroupIds) void
LogbookLifeCyclesImpl.deleteLifeCycleUnits
(List<String> unitsIdentifier) -
Uses of DatabaseException in fr.gouv.vitam.logbook.operations.api
Modifier and TypeMethodDescriptionLogbookOperations.switchIndex
(String alias, String newIndexName) Switch indexes for one or more collections -
Uses of DatabaseException in fr.gouv.vitam.logbook.operations.core
Modifier and TypeMethodDescriptionLogbookOperationsDecorator.switchIndex
(String alias, String newIndexName) LogbookOperationsImpl.switchIndex
(String alias, String newIndexName) -
Uses of DatabaseException in fr.gouv.vitam.metadata.core
-
Uses of DatabaseException in fr.gouv.vitam.metadata.core.database.collections
Modifier and TypeMethodDescriptionPersistentIdentifierRepositoryImpl.findByPersistentIdentifierAndTenant
(String persistentIdentifier, Integer tenant, String type) com.fasterxml.jackson.databind.JsonNode
MetadataRepositoryService.getDocumentById
(MetadataCollections collection, String id, Integer tenant) Retrieve document by its ID in a given collection filtered by a tenant in mongo -
Uses of DatabaseException in fr.gouv.vitam.metadata.core.reconstruction.repository
Modifier and TypeMethodDescriptionPersistentIdentifierRepository.findByPersistentIdentifierAndTenant
(String persistentIdentifier, Integer tenant, String type)