public interface OntologyService extends VitamAutoCloseable
| Modifier and Type | Method and Description |
|---|---|
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> ontologyList)
Import a collections of ontologies After passing the validation steps.
|
closeRequestResponse<OntologyModel> importOntologies(boolean forceUpdate, List<OntologyModel> ontologyList) throws VitamException, IOException
ontologyList - the list of ontologies to be importedforceUpdate - VitamException - if in error occurs while validating ontologiesIOExceptionRequestResponseOK<OntologyModel> findOntologies(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
queryDsl - the query as a json to be executedReferentialException - thrown if the query could not be executedInvalidParseOperationException - thrown if the query could not be executedRequestResponseOK<OntologyModel> findOntologiesForCache(com.fasterxml.jackson.databind.JsonNode queryDsl) throws ReferentialException, InvalidParseOperationException
queryDsl - the query as a json to be executedReferentialException - thrown if the query could not be executedInvalidParseOperationException - thrown if the query could not be executedCopyright © 2018 Vitam. All rights reserved.