Class OntologyResource
- java.lang.Object
-
- fr.gouv.vitam.functional.administration.rest.OntologyResource
-
@Path("/adminmanagement/v1") @ApplicationPath("webresources") public class OntologyResource extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OntologyResource(MongoDbAccessAdminImpl mongoAccess, FunctionalBackupService functionalBackupService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
findOntologies(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find ontologies by queryDsljavax.ws.rs.core.Response
findOntologiesForCache(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find ontologies for cache by queryDsljavax.ws.rs.core.Response
importOntologies(boolean forceUpdate, java.util.List<OntologyModel> ontologyModelList, javax.ws.rs.core.UriInfo uri)
Import a set of ontologies metadata.
-
-
-
Constructor Detail
-
OntologyResource
public OntologyResource(MongoDbAccessAdminImpl mongoAccess, FunctionalBackupService functionalBackupService)
- Parameters:
mongoAccess
-functionalBackupService
-
-
-
Method Detail
-
importOntologies
@Path("/ontologies") @POST @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response importOntologies(@HeaderParam("Force-Update") boolean forceUpdate, java.util.List<OntologyModel> ontologyModelList, @Context javax.ws.rs.core.UriInfo uri)
Import a set of ontologies metadata. If all the ontologies are valid, they will be stored in the ontology collection and indexed. The input is invalid in the following situations :- The json is invalid
- The json contains an already used identifier
- One or more mandatory field is missing
- A field has an invalid format
- Parameters:
ontologyModelList
- as InputStreamuri
- the uri info- Returns:
- Response
-
findOntologies
@GET @Path("/ontologies") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response findOntologies(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find ontologies by queryDsl- Parameters:
queryDsl
-- Returns:
- Response
-
findOntologiesForCache
@GET @Path("/ontologies/cache") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response findOntologiesForCache(com.fasterxml.jackson.databind.JsonNode queryDsl)
Find ontologies for cache by queryDsl- Parameters:
queryDsl
-- Returns:
- Response
-
-