# Uses of Enum Class
fr.gouv.vitam.metadata.core.database.collections.MetadataCollections

Packages that use MetadataCollections
Package
Description
fr.gouv.vitam.metadata.core.config
Provides API configuration classes for the Metadata module
fr.gouv.vitam.metadata.core.database.collections
Provides
fr.gouv.vitam.metadata.core.graph
fr.gouv.vitam.metadata.core.graph.api
fr.gouv.vitam.metadata.core.metrics
fr.gouv.vitam.metadata.core.reconstruction.service

- ## Uses of MetadataCollections in fr.gouv.vitam.metadata.core.config

  Methods in fr.gouv.vitam.metadata.core.config with parameters of type MetadataCollections
  Modifier and Type
  Method
  Description
  `ElasticsearchIndexAliasResolver`
  ElasticsearchMetadataIndexManager.`getElasticsearchIndexAliasResolver(MetadataCollections collection)`
  `ElasticsearchIndexSettings`
  ElasticsearchMetadataIndexManager.`getElasticsearchIndexSettings(MetadataCollections collection, int tenantId)`

- ## Uses of MetadataCollections in fr.gouv.vitam.metadata.core.database.collections

  Methods in fr.gouv.vitam.metadata.core.database.collections that return MetadataCollections
  Modifier and Type
  Method
  Description
  `static MetadataCollections`
  MetadataCollections.`getFromValue(String collection)`
  get collection from value.
  `protected abstract MetadataCollections`
  MetadataDocument.`getMetadataCollections()`
  `protected MetadataCollections`
  ObjectGroup.`getMetadataCollections()`
  `protected MetadataCollections`
  Unit.`getMetadataCollections()`
  `static MetadataCollections`
  MetadataCollections.`valueOf(String name)`
  Returns the enum constant of this class with the specified name.
  `static MetadataCollections[]`
  MetadataCollections.`values()`
  Returns an array containing the constants of this enum class, in the order they are declared.
  Methods in fr.gouv.vitam.metadata.core.database.collections with parameters of type MetadataCollections
  Modifier and Type
  Method
  Description
  `Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregate>`
  ElasticsearchAccessMetadata.`basicAggregationSearch(MetadataCollections collection, Integer tenantId, Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation> aggregations, co.elastic.clients.elasticsearch._types.query_dsl.Query query)`
  Makes a search request on elasticsearch on a collection with aggregations and a query
  `final void`
  ElasticsearchAccessMetadata.`createIndexAndAliasIfAliasNotExists(MetadataCollections collection, Integer tenantId)`
  `void`
  ElasticsearchAccessMetadata.`createIndexesAndAliases(MetadataCollections... collections)`
  `void`
  ElasticsearchAccessMetadata.`delete(MetadataCollections collection, List<String> ids, Integer tenantId)`
  `static final com.mongodb.client.result.DeleteResult`
  MongoDbMetadataHelper.`delete(MetadataCollections collection, org.bson.conversions.Bson condition, int nb)`
  Deprecated.
  `void`
  ElasticsearchAccessMetadata.`deleteIndexByAliasForTesting(MetadataCollections collection, int tenantId)`
  `List<UpdatedDocument>`
  DbRequest.`execUpdateRequest(List<RequestById> bulkRequests, MetadataCollections metadataCollection, OntologyValidator ontologyValidator, UnitValidator unitValidator, List<OntologyModel> ontologyModels, boolean forceUpdate, boolean refreshElasticIndexPostBulkIndexing)`
  `static final MetadataDocument`
  MongoDbMetadataHelper.`findOne(MetadataCollections col, String id)`
  Deprecated.
  Find the corresponding id in col collection if it exists.
  `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
  `List<com.fasterxml.jackson.databind.JsonNode>`
  MetadataRepositoryService.`getDocumentsByIds(MetadataCollections collection, Collection<String> ids, Integer tenant)`
  Retrieve document by its ID in a given collection filtered by a tenant in mongo
  `void`
  ElasticsearchAccessMetadata.`indexEntry(MetadataCollections collection, Integer tenantId, String id, VitamDocument<?> vitamDocument)`
  `void`
  ElasticsearchAccessMetadata.`insertFullDocument(MetadataCollections collection, Integer tenantId, String id, MetadataDocument<?> doc)`
  Insert one element
  `void`
  ElasticsearchAccessMetadata.`insertFullDocuments(MetadataCollections collection, Integer tenantId, Collection<? extends MetadataDocument<?>> documents)`
  `void`
  ElasticsearchAccessMetadata.`insertFullDocumentsWithRefreshSettings(MetadataCollections collection, Integer tenantId, Collection<? extends MetadataDocument<?>> documents, boolean withRefreshIndex)`
  `void`
  ElasticsearchAccessMetadata.`purgeIndexForTesting(MetadataCollections collection, Integer tenantId)`
  `void`
  ElasticsearchAccessMetadata.`refreshIndex(MetadataCollections collection, int tenantId)`
  `protected final Result<MetadataDocument<?>>`
  ElasticsearchAccessMetadata.`search(MetadataCollections collection, Integer tenantId, co.elastic.clients.elasticsearch._types.query_dsl.Query query, 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)`
  `static final com.mongodb.client.FindIterable<?>`
  MongoDbMetadataHelper.`select(MetadataCollections collection, org.bson.conversions.Bson condition, org.bson.conversions.Bson projection)`
  Deprecated.
  Does not call getAfterLoad.
  `static final com.mongodb.client.FindIterable<?>`
  MongoDbMetadataHelper.`select(MetadataCollections collection, org.bson.conversions.Bson condition, org.bson.conversions.Bson projection, org.bson.conversions.Bson orderBy, int offset, int limit)`
  Deprecated.
  Does not call getAfterLoad.
  `void`
  ElasticsearchAccessMetadata.`updateFullDocument(MetadataCollections collection, Integer tenantId, String id, MetadataDocument<?> metadataDocument)`
  Update one element fully
  Method parameters in fr.gouv.vitam.metadata.core.database.collections with type arguments of type MetadataCollections
  Modifier and Type
  Method
  Description
  `static void`
  MetadataCollectionsTestUtils.`afterTest(ElasticsearchMetadataIndexManager indexManager, Collection<MetadataCollections> metadataCollections)`
  `static void`
  MetadataCollectionsTestUtils.`afterTestClass(ElasticsearchMetadataIndexManager indexManager, Collection<MetadataCollections> metadataCollections, boolean deleteEsIndexes)`
  `static void`
  MetadataCollectionsTestUtils.`beforeTestClass(com.mongodb.client.MongoDatabase db, String prefix, ElasticsearchAccessMetadata esClient, Collection<MetadataCollections> metadataCollections)`
  Constructors in fr.gouv.vitam.metadata.core.database.collections with parameters of type MetadataCollections
  Modifier
  Constructor
  Description
  ``
  `MongoDbAccessMetadataImpl(com.mongodb.client.MongoClient mongoClient, String dbname, boolean recreate, ElasticsearchAccessMetadata esClient, MetadataCollections unitCollection, MetadataCollections objectCollection)`

- ## Uses of MetadataCollections in fr.gouv.vitam.metadata.core.graph

  Methods in fr.gouv.vitam.metadata.core.graph that return types with arguments of type MetadataCollections
  Modifier and Type
  Method
  Description
  `Map<MetadataCollections,Integer>`
  StoreGraphService.`tryStoreGraph()`
  If no graph store in progress, try to start one Should be exposed in the API
  Methods in fr.gouv.vitam.metadata.core.graph with parameters of type MetadataCollections
  Modifier and Type
  Method
  Description
  `GraphComputeResponse`
  GraphComputeServiceImpl.`computeGraph(MetadataCollections metadataCollections, Collection<String> documentsId, boolean computeObjectGroupGraph, boolean invalidateComputedInheritedRules)`
  `LocalDateTime`
  StoreGraphService.`getLastGraphStoreDate(MetadataCollections metadataCollections)`
  As the files generated are zip files.

- ## Uses of MetadataCollections in fr.gouv.vitam.metadata.core.graph.api

  Methods in fr.gouv.vitam.metadata.core.graph.api with parameters of type MetadataCollections
  Modifier and Type
  Method
  Description
  `GraphComputeResponse`
  GraphComputeService.`computeGraph(MetadataCollections metadataCollections, Collection<String> unitsId, boolean computeObjectGroupGraph, boolean invalidateComputedInheritedRules)`
  Compute graph for unit/got from all parents

- ## Uses of MetadataCollections in fr.gouv.vitam.metadata.core.metrics

  Methods in fr.gouv.vitam.metadata.core.metrics with parameters of type MetadataCollections
  Modifier and Type
  Method
  Description
  `Duration`
  MetadataReconstructionMetricsCache.`getDocumentReconstructionLatency(MetadataCollections metadataCollection, int tenant, String strategy)`
  `Duration`
  MetadataReconstructionMetricsCache.`getGraphReconstructionLatency(MetadataCollections metadataCollection)`
  `void`
  MetadataReconstructionMetricsCache.`registerLastDocumentReconstructionDate(MetadataCollections metadataCollection, int tenant, String strategy, LocalDateTime lastDocumentReconstructionDate)`
  `void`
  MetadataReconstructionMetricsCache.`registerLastGraphReconstructionDate(MetadataCollections metadataCollection, LocalDateTime lastGraphReconstructionDate)`

- ## Uses of MetadataCollections in fr.gouv.vitam.metadata.core.reconstruction.service

  Methods in fr.gouv.vitam.metadata.core.reconstruction.service with parameters of type MetadataCollections
  Modifier and Type
  Method
  Description
  `MetadataBackupModel`
  RestoreBackupService.`loadData(String strategy, String referentOffer, MetadataCollections collection, String filename, long offset)`
  Load data from storage
  `void`
  MetadataReconstructionService.`purgeReconstructedDocumentsWithGraphOnlyData(MetadataCollections metaDaCollection)`
  Find all older (AU/GOT) where only graph data are reconstructed As Documents with only graph data are not indexed in elasticsearch => we have not to implement deletion from Elastcisearch