Uses of Class
fr.gouv.vitam.common.exception.DatabaseException
Packages that use 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
Methods in fr.gouv.vitam.common.database.api that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidDeleted 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 idlongVitamRepository.purge()Be careful when using this method Remove by tenant for collection cross-tenantlongBe careful when using this method Remove by tenant for collection multi-tenantvoidRemove document by idlongVitamRepository.remove(org.bson.conversions.Bson query) Be careful when using this method Remove by queryvoidVitamRepository.removeByNameAndTenant(String name, Integer tenant) Be careful when using this method Remove collection by name and tenantvoidSave a list of vitam documentsvoidVitamRepository.save(org.bson.Document document) Save vitam documentvoidVitamRepository.saveOrUpdate(List<org.bson.Document> documents) Save or update a list of vitam documentsVitamRepository.saveOrUpdate(org.bson.Document document) Save or updatevitam documentvoidUsed 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
Methods in fr.gouv.vitam.common.database.api.impl that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidOptional<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.longVitamElasticsearchRepository.purge()longlongVitamMongoRepository.purge()longvoidvoidlongVitamMongoRepository.remove(org.bson.conversions.Bson query) voidVitamMongoRepository.removeByNameAndTenant(String name, Integer tenant) voidVitamElasticsearchRepository.save(ElasticsearchCollections elasticsearchCollections, List<org.bson.Document> documents) voidVitamElasticsearchRepository.save(org.bson.Document document) voidvoidVitamMongoRepository.save(org.bson.Document document) voidVitamMongoRepository.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
Methods in fr.gouv.vitam.common.database.server that throw DatabaseExceptionModifier and TypeMethodDescriptionDbRequestSingle.execute(Insert request, Integer version, DocumentValidator documentValidator) DbRequestSingle.execute(Update request, DocumentValidator documentValidator) DbRequestSingle.executeQueryWithoutRestrictionOnCurrentTenant(Select request) voidDbRequestSingle.replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection) voidDbRequestSingle.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
Methods in fr.gouv.vitam.common.database.server.elasticsearch that return DatabaseExceptionModifier and TypeMethodDescriptionstatic DatabaseExceptionElasticsearchUtil.toDatabaseException(Exception e) static DatabaseExceptionElasticsearchUtil.toDatabaseException(String msg, Exception e) Methods in fr.gouv.vitam.common.database.server.elasticsearch that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidElasticsearchAccess.clearScroll(String scrollId) final voidElasticsearchAccess.createIndexAndAliasIfAliasNotExists(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile) final ElasticsearchIndexAliasElasticsearchAccess.createIndexWithoutAlias(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, String elasticsearchConfigurationFile) voidElasticsearchAccess.delete(ElasticsearchIndexAlias indexAlias, List<String> ids) final voidElasticsearchAccess.deleteIndexByAliasForTesting(ElasticsearchIndexAlias indexAlias) final voidElasticsearchAccess.deleteIndexForTesting(ElasticsearchIndexAlias indexAlias) final booleanElasticsearchAccess.existsAlias(ElasticsearchIndexAlias indexAlias) final booleanElasticsearchAccess.existsIndex(ElasticsearchIndexAlias index) voidElasticsearchAccess.indexEntries(ElasticsearchIndexAlias indexAlias, Collection<? extends org.bson.Document> documents, boolean withRefreshIndex) final <T> voidElasticsearchAccess.indexEntry(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument) final voidElasticsearchAccess.purgeIndexForTesting(ElasticsearchIndexAlias indexAlias) protected voidElasticsearchAccess.purgeIndexForTesting(ElasticsearchIndexAlias indexAlias, Integer tenantId) final voidElasticsearchAccess.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, Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregation> facets) 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 voidElasticsearchAccess.switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias indexNameToSwitchTo) IndexationHelper.switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias newIndex, ElasticsearchAccess esClient) switch index, attach a new index to an existing alias<T> voidElasticsearchAccess.updateEntry(ElasticsearchIndexAlias indexAlias, String id, VitamDocument<T> vitamDocument) Update one element fully -
Uses of DatabaseException in fr.gouv.vitam.common.exception
Subclasses of DatabaseException in fr.gouv.vitam.common.exception -
Uses of DatabaseException in fr.gouv.vitam.functional.administration.common.server
Methods in fr.gouv.vitam.functional.administration.common.server that throw DatabaseExceptionModifier and TypeMethodDescriptionMongoDbAccessAdminImpl.deleteCollectionForTesting(FunctionalAdminCollections collection) MongoDbAccessAdminImpl.deleteCollectionForTesting(FunctionalAdminCollections collection, Delete delete) MongoDbAccessReferential.deleteCollectionForTesting(FunctionalAdminCollections collection) Delete FileFormat collectionsMongoDbAccessReferential.deleteCollectionForTesting(FunctionalAdminCollections collection, Delete delete) voidVitamElasticsearchReindex.reindex(VitamCollection collections) voidMongoDbAccessAdminImpl.replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifierValue, String identifierKey, FunctionalAdminCollections vitamCollection) voidMongoDbAccessReferential.replaceDocument(com.fasterxml.jackson.databind.JsonNode document, String identifier, String identifierName, FunctionalAdminCollections vitamCollection) voidMongoDbAccessAdminImpl.replaceDocuments(Map<String, com.fasterxml.jackson.databind.JsonNode> documentByIdentifier, String identifierKey, FunctionalAdminCollections vitamCollection) -
Uses of DatabaseException in fr.gouv.vitam.functional.administration.core.reconstruction
Methods in fr.gouv.vitam.functional.administration.core.reconstruction that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidReconstructionService.reconstruct(FunctionalAdminCollections collection) Reconstrut Vitam collection.voidReconstructionService.reconstruct(FunctionalAdminCollections collection, Integer... tenant) Reconstrut Vitam collection by tenant.voidReconstructionServiceImpl.reconstruct(FunctionalAdminCollections collection) voidReconstructionServiceImpl.reconstruct(FunctionalAdminCollections collection, Integer... tenants) purge collection content and reconstruct the content. -
Uses of DatabaseException in fr.gouv.vitam.logbook.common.server
Methods in fr.gouv.vitam.logbook.common.server that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidLogbookDbAccess.bulkInsert(String idOp, LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) voidLogbookDbAccess.deleteCollectionForTesting(LogbookCollections collection) Delete logbook collection -
Uses of DatabaseException in fr.gouv.vitam.logbook.common.server.database.collections
Methods in fr.gouv.vitam.logbook.common.server.database.collections that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidLogbookMongoDbAccessImpl.bulkInsert(String operationId, LogbookCollections lifecycleUnit, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) voidLogbookMongoDbAccessImpl.deleteCollectionForTesting(LogbookCollections collection) voidLogbookRepositoryService.saveBulk(LogbookCollections collection, List<com.fasterxml.jackson.databind.JsonNode> logbookItems) Save datas as bulk -
Uses of DatabaseException in fr.gouv.vitam.logbook.lifecycles.api
Methods in fr.gouv.vitam.logbook.lifecycles.api that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidLogbookLifeCycles.bulk(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) Bulk methodvoidLogbookLifeCycles.deleteLifeCycleObjectGroups(List<String> objectGroupIds) delete LifeCycle ObjectGroupsvoidLogbookLifeCycles.deleteLifeCycleUnits(List<String> unitsIdentifier) delete LifeCycle Units -
Uses of DatabaseException in fr.gouv.vitam.logbook.lifecycles.core
Methods in fr.gouv.vitam.logbook.lifecycles.core that throw DatabaseExceptionModifier and TypeMethodDescriptionvoidLogbookLifeCyclesImpl.bulk(LogbookCollections collections, String idOp, List<? extends LogbookLifeCycleModel> logbookLifeCycleModels) voidLogbookLifeCyclesImpl.deleteLifeCycleObjectGroups(List<String> objectGroupIds) voidLogbookLifeCyclesImpl.deleteLifeCycleUnits(List<String> unitsIdentifier) -
Uses of DatabaseException in fr.gouv.vitam.logbook.operations.api
Methods in fr.gouv.vitam.logbook.operations.api that throw DatabaseExceptionModifier and TypeMethodDescriptionLogbookOperations.switchIndex(String alias, String newIndexName) Switch indexes for one or more collections -
Uses of DatabaseException in fr.gouv.vitam.logbook.operations.core
Methods in fr.gouv.vitam.logbook.operations.core that throw DatabaseExceptionModifier and TypeMethodDescriptionLogbookOperationsDecorator.switchIndex(String alias, String newIndexName) LogbookOperationsImpl.switchIndex(String alias, String newIndexName) -
Uses of DatabaseException in fr.gouv.vitam.metadata.core
Methods in fr.gouv.vitam.metadata.core that throw DatabaseException -
Uses of DatabaseException in fr.gouv.vitam.metadata.core.database.collections
Methods in fr.gouv.vitam.metadata.core.database.collections that throw DatabaseExceptionModifier and TypeMethodDescriptionPersistentIdentifierRepositoryImpl.findByPersistentIdentifierAndTenant(String persistentIdentifier, Integer tenant, String type) com.fasterxml.jackson.databind.JsonNodeMetadataRepositoryService.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
Methods in fr.gouv.vitam.metadata.core.reconstruction.repository that throw DatabaseExceptionModifier and TypeMethodDescriptionPersistentIdentifierRepository.findByPersistentIdentifierAndTenant(String persistentIdentifier, Integer tenant, String type)