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
OntologyService
importOntologies
in interface OntologyService
ontologyModelList
- the list of ontologies to be importedVitamException
- if in error occurs while validating ontologiesIOException
public RequestResponseOK<OntologyModel> findOntologiesForCache(com.fasterxml.jackson.databind.JsonNode queryDsl) throws InvalidParseOperationException
OntologyService
findOntologiesForCache
in interface OntologyService
queryDsl
- 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
OntologyService
findOntologies
in interface OntologyService
queryDsl
- 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 VitamAutoCloseable
close
in interface AutoCloseable
Copyright © 2019 Vitam. All rights reserved.