Class QueryTemplateManager


  • @Path("query-templates")
    public class QueryTemplateManager
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • QueryTemplateManager

        public QueryTemplateManager()
    • Method Detail

      • all

        @GET
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public String all()
                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        GET /query-templates
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • updateCreate

        @PUT
        @Path("{QUERY_TEMPLATE_NAME}")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public javax.ws.rs.core.Response updateCreate​(@PathParam("QUERY_TEMPLATE_NAME")
                                                      String queryTemplateName,
                                                      String json)
                                               throws org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
                                                      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • read

        @GET
        @Path("{QUERY_TEMPLATE_NAME}")
        @Produces("application/json;charset=UTF-8")
        public String read​(@PathParam("QUERY_TEMPLATE_NAME")
                           String queryTemplateName)
                    throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                           org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • run

        @POST
        @Path("{QUERY_TEMPLATE_NAME}")
        @Produces("application/json;charset=UTF-8")
        public String run​(@PathParam("QUERY_TEMPLATE_NAME")
                          String queryTemplateName,
                          String params)
                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                          org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException,
                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • delete

        @DELETE
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Path("{QUERY_TEMPLATE_NAME}")
        public javax.ws.rs.core.Response delete​(@PathParam("QUERY_TEMPLATE_NAME")
                                                String queryTemplateName)
                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
                                                org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException