Class QueryTemplateManager
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.rest.QueryTemplateManager
-
@Path("query-templates") public class QueryTemplateManager extends Object- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringQUERY_TEMPLATE_NAME_PATH_PARAMETER
-
Constructor Summary
Constructors Constructor Description QueryTemplateManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringall()GET /query-templatesjavax.ws.rs.core.Responsedelete(String queryTemplateName)Stringread(String queryTemplateName)Stringrun(String queryTemplateName, String params)javax.ws.rs.core.ResponseupdateCreate(String queryTemplateName, String json)
-
-
-
Field Detail
-
QUERY_TEMPLATE_NAME_PATH_PARAMETER
public static final String QUERY_TEMPLATE_NAME_PATH_PARAMETER
- See Also:
- Constant Field Values
-
-
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.ResourceRegistryExceptionGET /query-templates- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.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.InvalidQueryExceptionorg.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.NotFoundExceptionorg.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.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.queries.InvalidQueryExceptionorg.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.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-