Class ContextManager


  • @Path("contexts")
    public class ContextManager
    extends BaseRest
    Author:
    Luca Frosini (ISTI - CNR)
    • Constructor Detail

      • ContextManager

        public ContextManager()
    • 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.contexts.ContextNotFoundException,
                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • read

        @GET
        @Path("{CONTEXT_UUID}")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public String read​(@PathParam("CONTEXT_UUID")
                           String uuid)
                    throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                           org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • updateCreate

        @PUT
        @Path("{CONTEXT_UUID}")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public String updateCreate​(@PathParam("CONTEXT_UUID")
                                   String uuid,
                                   String json)
                            throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • delete

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