Class ContextManager
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.rest.ContextManager
-
@Path("contexts") public class ContextManager extends Object- Author:
- Luca Frosini (ISTI - CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_UUID_PATH_PARAMETER
-
Constructor Summary
Constructors Constructor Description ContextManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringall()javax.ws.rs.core.Responsedelete(String uuid)Stringread(String uuid)StringupdateCreate(String uuid, String json)
-
-
-
Field Detail
-
CONTEXT_UUID_PATH_PARAMETER
public static final String CONTEXT_UUID_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.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.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.ContextNotFoundExceptionorg.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.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
-