public class OntologyServiceImpl extends Object implements OntologyService
| Constructor and Description |
|---|
OntologyServiceImpl(MongoDbAccessAdminImpl mongoAccess,
FunctionalBackupService functionalBackupService)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
RequestResponseOK<OntologyModel> |
findOntologies(com.fasterxml.jackson.databind.JsonNode queryDsl)
find an ontology by QueryDsl
|
RequestResponseOK<OntologyModel> |
findOntologiesForCache(com.fasterxml.jackson.databind.JsonNode queryDsl)
find an ontology by QueryDsl (find directly in db)
|
RequestResponse<OntologyModel> |
importOntologies(boolean forceUpdate,
List<OntologyModel> ontologyModelList)
Import a collections of ontologies After passing the validation steps.
|
public OntologyServiceImpl(MongoDbAccessAdminImpl mongoAccess, FunctionalBackupService functionalBackupService)
mongoAccess - MongoDB clientfunctionalBackupService - the functional backup servicepublic RequestResponse<OntologyModel> importOntologies(boolean forceUpdate, List<OntologyModel> ontologyModelList) throws VitamException, IOException
OntologyServiceimportOntologies in interface OntologyServiceontologyModelList - the list of ontologies to be importedVitamException - if in error occurs while validating ontologiesIOExceptionpublic RequestResponseOK<OntologyModel> findOntologiesForCache(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException
OntologyServicefindOntologiesForCache in interface OntologyServicequeryDsl - the query as a json to be executedInvalidParseOperationException - thrown if the query could not be executedpublic RequestResponseOK<OntologyModel> findOntologies(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
OntologyServicefindOntologies in interface OntologyServicequeryDsl - the query as a json to be executedReferentialException - thrown if the query could not be executedInvalidParseOperationException - thrown if the query could not be executedpublic void close()
close in interface VitamAutoCloseableclose in interface AutoCloseableCopyright © 2019 Vitam. All rights reserved.