Uses of Class
fr.gouv.vitam.common.exception.DatabaseException
-
Packages that use DatabaseException Package Description fr.gouv.vitam.common.database.api Provides common database APIfr.gouv.vitam.common.database.api.impl Provides common database API implementationsfr.gouv.vitam.common.database.server Database server package in vitamfr.gouv.vitam.common.database.server.elasticsearch Elasticsearch server package in Vitamfr.gouv.vitam.common.exception Common Exception packagefr.gouv.vitam.functional.administration.common.server Provides common server classes for the Functional Administration modulefr.gouv.vitam.functional.administration.core.reconstruction fr.gouv.vitam.logbook.common.server Provides Common Server classes for the Logbook modulefr.gouv.vitam.logbook.common.server.database.collections Provides Logbook collection classesfr.gouv.vitam.logbook.lifecycles.api Provides API classes for the Logbook Lifecycles modulefr.gouv.vitam.logbook.lifecycles.core Provides core implementation for the Logbook Lifecycles module.fr.gouv.vitam.logbook.operations.api Provides API classes for the Logbook Operations modulefr.gouv.vitam.logbook.operations.core Provides core implementation for the Logbook Operations module.fr.gouv.vitam.metadata.core Providesfr.gouv.vitam.metadata.core.database.collections Provides -
-
Uses of DatabaseException in fr.gouv.vitam.common.database.api
Methods in fr.gouv.vitam.common.database.api that throw DatabaseException Modifier and Type Method Description void
VitamRepository. delete(java.util.List<java.lang.String> ids, int tenant)
Deleted all documents by idsjava.util.Optional<org.bson.Document>
VitamRepository. findByIdentifier(java.lang.String identifier)
Find by identifier for collections cross tenantjava.util.Optional<org.bson.Document>
VitamRepository. findByIdentifierAndTenant(java.lang.String identifier, java.lang.Integer tenant)
find by identifier for all tenantjava.util.Optional<org.bson.Document>
VitamRepository. getByID(java.lang.String id, java.lang.Integer tenant)
Get vitam document by idlong
VitamRepository. purge()
Be careful when using this method Remove by tenant for collection cross-tenantlong
VitamRepository. purge(java.lang.Integer tenant)
Be careful when using this method Remove by tenant for collection multi-tenantvoid
VitamRepository. remove(java.lang.String id, java.lang.Integer tenant)
Remove document by idlong
VitamRepository. remove(org.bson.conversions.Bson query)
Be careful when using this method Remove by queryvoid
VitamRepository. removeByNameAndTenant(java.lang.String name, java.lang.Integer tenant)
Be careful when using this method Remove collection by name and tenantvoid
VitamRepository. save(java.util.List<org.bson.Document> documents)
Save a list of vitam documentsvoid
VitamRepository. save(org.bson.Document document)
Save vitam documentvoid
VitamRepository. saveOrUpdate(java.util.List<org.bson.Document> documents)
Save or update a list of vitam documentsVitamRepositoryStatus
VitamRepository. saveOrUpdate(org.bson.Document document)
Save or updatevitam documentvoid
VitamRepository. update(java.util.List<com.mongodb.client.model.WriteModel<org.bson.Document>> updates)
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
Methods in fr.gouv.vitam.common.database.api.impl that throw DatabaseException Modifier and Type Method Description void
VitamElasticsearchRepository. delete(java.util.List<java.lang.String> ids, int tenant)
java.util.Optional<org.bson.Document>
VitamElasticsearchRepository. findByIdentifier(java.lang.String identifier)
java.util.Optional<org.bson.Document>
VitamMongoRepository. findByIdentifier(java.lang.String identifier)
java.util.Optional<org.bson.Document>
VitamElasticsearchRepository. findByIdentifierAndTenant(java.lang.String identifier, java.lang.Integer tenant)
java.util.Optional<org.bson.Document>
VitamMongoRepository. findByIdentifierAndTenant(java.lang.String identifier, java.lang.Integer tenant)
java.util.Optional<org.bson.Document>
VitamElasticsearchRepository. getByID(java.lang.String id, java.lang.Integer tenant)
java.util.Optional<org.bson.Document>
VitamMongoRepository. getByID(java.lang.String id, java.lang.Integer tenant)
java.util.Optional<org.bson.Document>
VitamElasticsearchRepository. getDocumentById(java.lang.String id)
long
VitamElasticsearchRepository. purge()
long
VitamElasticsearchRepository. purge(java.lang.Integer tenant)
long
VitamMongoRepository. purge()
long
VitamMongoRepository. purge(java.lang.Integer tenant)
void
VitamElasticsearchRepository. remove(java.lang.String id, java.lang.Integer tenant)
void
VitamMongoRepository. remove(java.lang.String id, java.lang.Integer tenant)
long
VitamMongoRepository. remove(org.bson.conversions.Bson query)
void
VitamMongoRepository. removeByNameAndTenant(java.lang.String name, java.lang.Integer tenant)
void
VitamElasticsearchRepository. save(ElasticsearchCollections elasticsearchCollections, java.util.List<org.bson.Document> documents)
void
VitamElasticsearchRepository. save(java.util.List<org.bson.Document> documents)
VitamRepositoryStatus
VitamElasticsearchRepository. save(org.bson.Document document)
void
VitamMongoRepository. save(java.util.List<org.bson.Document> documents)
void
VitamMongoRepository. save(org.bson.Document document)
void
VitamMongoRepository. saveOrUpdate(java.util.List<org.bson.Document> documents)
VitamRepositoryStatus
VitamMongoRepository. saveOrUpdate(org.bson.Document document)
void
VitamMongoRepository. update(java.util.List<com.mongodb.client.model.WriteModel<org.bson.Document>> queries)
-
Uses of DatabaseException in fr.gouv.vitam.common.database.server
Methods in fr.gouv.vitam.common.database.server that throw DatabaseException Modifier and Type Method Description DbRequestResult
DbRequestSingle. execute(Delete request)
DbRequestResult
DbRequestSingle. execute(Insert request, java.lang.Integer version, DocumentValidator documentValidator)
DbRequestResult
DbRequestSingle. execute(Select request)
DbRequestResult
DbRequestSingle. execute(Update request, DocumentValidator documentValidator)
void
DbRequestSingle. replaceDocument(com.fasterxml.jackson.databind.JsonNode document, java.lang.String identifierValue, java.lang.String identifierKey, VitamCollection<VitamDocument<?>> vitamCollection)
void
DbRequestSingle. replaceDocuments(java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> documentByIdentifiers, java.lang.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 throw DatabaseException Modifier and Type Method Description void
ElasticsearchAccess. clearScroll(java.lang.String scrollId)
void
ElasticsearchAccess. createIndexAndAliasIfAliasNotExists(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings)
ElasticsearchIndexAlias
ElasticsearchAccess. createIndexWithoutAlias(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings)
void
ElasticsearchAccess. delete(ElasticsearchIndexAlias indexAlias, java.util.List<java.lang.String> ids)
void
ElasticsearchAccess. deleteIndexByAliasForTesting(ElasticsearchIndexAlias indexAlias)
void
ElasticsearchAccess. deleteIndexForTesting(ElasticsearchIndexAlias indexAlias)
boolean
ElasticsearchAccess. existsAlias(ElasticsearchIndexAlias indexAlias)
boolean
ElasticsearchAccess. existsIndex(ElasticsearchIndexAlias index)
void
ElasticsearchAccess. indexEntries(ElasticsearchIndexAlias indexAlias, java.util.Collection<? extends org.bson.Document> documents)
<T> void
ElasticsearchAccess. indexEntry(ElasticsearchIndexAlias indexAlias, java.lang.String id, VitamDocument<T> vitamDocument)
void
ElasticsearchAccess. purgeIndexForTesting(ElasticsearchIndexAlias indexAlias)
protected void
ElasticsearchAccess. purgeIndexForTesting(ElasticsearchIndexAlias indexAlias, java.lang.Integer tenantId)
void
ElasticsearchAccess. refreshIndex(ElasticsearchIndexAlias indexAlias)
ReindexationOK
IndexationHelper. reindex(com.mongodb.client.MongoCollection<org.bson.Document> collection, ElasticsearchAccess esClient, ElasticsearchIndexAlias indexAlias, ElasticsearchIndexSettings indexSettings, ElasticsearchCollections elasticsearchCollection, java.util.List<java.lang.Integer> tenantIds, java.lang.String tenantGroupName)
reindex a collection on a tenant list with a esmapping fileorg.elasticsearch.action.search.SearchResponse
ElasticsearchAccess. search(ElasticsearchIndexAlias indexAlias, org.elasticsearch.index.query.QueryBuilder query, org.elasticsearch.index.query.QueryBuilder filter, java.lang.String[] esProjection, java.util.List<org.elasticsearch.search.sort.SortBuilder<?>> sorts, int offset, java.lang.Integer limit)
org.elasticsearch.action.search.SearchResponse
ElasticsearchAccess. search(ElasticsearchIndexAlias indexAlias, org.elasticsearch.index.query.QueryBuilder query, org.elasticsearch.index.query.QueryBuilder filter, java.lang.String[] esProjection, java.util.List<org.elasticsearch.search.sort.SortBuilder<?>> sorts, int offset, java.lang.Integer limit, java.util.List<org.elasticsearch.search.aggregations.AggregationBuilder> facets, java.lang.String scrollId, java.lang.Integer scrollTimeout, boolean trackTotalHits)
org.elasticsearch.action.search.SearchResponse
ElasticsearchAccess. searchCrossIndices(java.util.Set<ElasticsearchIndexAlias> indexAliases, org.elasticsearch.index.query.QueryBuilder query, org.elasticsearch.index.query.QueryBuilder filter, java.lang.String[] esProjection, java.util.List<org.elasticsearch.search.sort.SortBuilder<?>> sorts, int offset, java.lang.Integer limit, java.util.List<org.elasticsearch.search.aggregations.AggregationBuilder> facets, java.lang.String scrollId, java.lang.Integer scrollTimeout, boolean trackTotalHits)
void
ElasticsearchAccess. switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias indexNameToSwitchTo)
SwitchIndexResult
IndexationHelper. switchIndex(ElasticsearchIndexAlias indexAlias, ElasticsearchIndexAlias newIndex, ElasticsearchAccess esClient)
switch index, attach a new index to an existing alias<T> void
ElasticsearchAccess. updateEntry(ElasticsearchIndexAlias indexAlias, java.lang.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 Modifier and Type Class Description class
DocumentAlreadyExistsException
-
Uses of DatabaseException in fr.gouv.vitam.functional.administration.common.server
Methods in fr.gouv.vitam.functional.administration.common.server that throw DatabaseException Modifier and Type Method Description DbRequestResult
MongoDbAccessAdminImpl. deleteCollectionForTesting(FunctionalAdminCollections collection)
DbRequestResult
MongoDbAccessAdminImpl. deleteCollectionForTesting(FunctionalAdminCollections collection, Delete delete)
DbRequestResult
MongoDbAccessReferential. deleteCollectionForTesting(FunctionalAdminCollections collection)
Delete FileFormat collectionsDbRequestResult
MongoDbAccessReferential. deleteCollectionForTesting(FunctionalAdminCollections collection, Delete delete)
void
VitamElasticsearchReindex. reindex(VitamCollection collections)
void
MongoDbAccessAdminImpl. replaceDocument(com.fasterxml.jackson.databind.JsonNode document, java.lang.String identifierValue, java.lang.String identifierKey, FunctionalAdminCollections vitamCollection)
void
MongoDbAccessReferential. replaceDocument(com.fasterxml.jackson.databind.JsonNode document, java.lang.String identifier, java.lang.String identifierName, FunctionalAdminCollections vitamCollection)
void
MongoDbAccessAdminImpl. replaceDocuments(java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> documentByIdentifier, java.lang.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 DatabaseException Modifier and Type Method Description void
ReconstructionService. reconstruct(FunctionalAdminCollections collection)
Reconstrut Vitam collection.void
ReconstructionService. reconstruct(FunctionalAdminCollections collection, java.lang.Integer... tenant)
Reconstrut Vitam collection by tenant.void
ReconstructionServiceImpl. reconstruct(FunctionalAdminCollections collection)
void
ReconstructionServiceImpl. reconstruct(FunctionalAdminCollections collection, java.lang.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 DatabaseException Modifier and Type Method Description void
LogbookDbAccess. bulkInsert(LogbookCollections lifecycleUnit, java.util.List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)
void
LogbookDbAccess. 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 DatabaseException Modifier and Type Method Description void
LogbookMongoDbAccessImpl. bulkInsert(LogbookCollections lifecycleUnit, java.util.List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)
void
LogbookMongoDbAccessImpl. deleteCollectionForTesting(LogbookCollections collection)
void
LogbookRepositoryService. saveBulk(LogbookCollections collection, java.util.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 DatabaseException Modifier and Type Method Description void
LogbookLifeCycles. bulk(LogbookCollections collections, java.lang.String idOp, java.util.List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)
Bulk methodvoid
LogbookLifeCycles. deleteLifeCycleObjectGroups(java.util.List<java.lang.String> objectGroupIds)
delete LifeCycle ObjectGroupsvoid
LogbookLifeCycles. deleteLifeCycleUnits(java.util.List<java.lang.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 DatabaseException Modifier and Type Method Description void
LogbookLifeCyclesImpl. bulk(LogbookCollections collections, java.lang.String idOp, java.util.List<? extends LogbookLifeCycleModel> logbookLifeCycleModels)
void
LogbookLifeCyclesImpl. deleteLifeCycleObjectGroups(java.util.List<java.lang.String> objectGroupIds)
void
LogbookLifeCyclesImpl. deleteLifeCycleUnits(java.util.List<java.lang.String> unitsIdentifier)
-
Uses of DatabaseException in fr.gouv.vitam.logbook.operations.api
Methods in fr.gouv.vitam.logbook.operations.api that throw DatabaseException Modifier and Type Method Description SwitchIndexResult
LogbookOperations. switchIndex(java.lang.String alias, java.lang.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 DatabaseException Modifier and Type Method Description SwitchIndexResult
LogbookOperationsDecorator. switchIndex(java.lang.String alias, java.lang.String newIndexName)
SwitchIndexResult
LogbookOperationsImpl. switchIndex(java.lang.String alias, java.lang.String newIndexName)
-
Uses of DatabaseException in fr.gouv.vitam.metadata.core
Methods in fr.gouv.vitam.metadata.core that throw DatabaseException Modifier and Type Method Description SwitchIndexResult
MetaDataImpl. switchIndex(java.lang.String alias, java.lang.String newIndexName)
-
Uses of DatabaseException in fr.gouv.vitam.metadata.core.database.collections
Methods in fr.gouv.vitam.metadata.core.database.collections that throw DatabaseException Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
MetadataRepositoryService. getDocumentById(MetadataCollections collection, java.lang.String id, java.lang.Integer tenant)
Retrieve document by its ID in a given collection filtered by a tenant in mongo
-