Class InstancesManager


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

      • InstancesManager

        public InstancesManager()
    • Method Detail

      • readAll

        @GET
        @Path("/{TYPE_NAME}")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public String readAll​(@PathParam("TYPE_NAME")
                              String type,
                              @QueryParam("polymorphic") @DefaultValue("true")
                              Boolean polymorphic)
                       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
      • exists

        @HEAD
        @Path("/{TYPE_NAME}/{UUID}")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public javax.ws.rs.core.Response exists​(@PathParam("TYPE_NAME")
                                                String type,
                                                @PathParam("UUID")
                                                String uuid)
                                         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
      • read

        @GET
        @Path("/{TYPE_NAME}/{UUID}")
        @Consumes({"text/plain","application/json;charset=UTF-8"})
        @Produces("application/json;charset=UTF-8")
        public String read​(@PathParam("TYPE_NAME")
                           String type,
                           @PathParam("UUID")
                           String uuid)
                    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
      • updateOrCreate

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

        @DELETE
        @Path("/{TYPE_NAME}/{UUID}")
        public javax.ws.rs.core.Response delete​(@PathParam("TYPE_NAME")
                                                String type,
                                                @PathParam("UUID")
                                                String uuid)
                                         throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getInstanceContexts

        @GET
        @Path("{TYPE_NAME}/{UUID}/contexts")
        @Produces("application/json;charset=UTF-8")
        public String getInstanceContexts​(@PathParam("TYPE_NAME")
                                          String type,
                                          @PathParam("UUID")
                                          String instanceId,
                                          @PathParam("CONTEXT_UUID")
                                          String contextId)
                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException,
                                          org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException,
                                          org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException