public class MetadataRepositoryService extends Object
| Constructor and Description |
|---|
MetadataRepositoryService(VitamRepositoryProvider vitamRepositoryProvider) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
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> |
getDocumentsByIds(MetadataCollections collection,
Collection<String> ids,
Integer tenant)
Retrieve document by its ID in a given collection filtered by a tenant in mongo
|
public MetadataRepositoryService(VitamRepositoryProvider vitamRepositoryProvider)
public com.fasterxml.jackson.databind.JsonNode getDocumentById(MetadataCollections collection, String id, Integer tenant) throws DatabaseException, MetaDataNotFoundException, InvalidParseOperationException
collection - collectionid - idtenant - tenantDatabaseException - database access errorMetaDataNotFoundException - document not foundInvalidParseOperationException - could not parse responsepublic List<com.fasterxml.jackson.databind.JsonNode> getDocumentsByIds(MetadataCollections collection, Collection<String> ids, Integer tenant) throws InvalidParseOperationException
collection - collectionids - idstenant - tenantInvalidParseOperationException - could not parse responseCopyright © 2020 Vitam. All rights reserved.