@Path(value="instances") public class InstancesManager extends Object
| Constructor and Description |
|---|
InstancesManager() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
delete(String type,
String uuid) |
javax.ws.rs.core.Response |
exists(String type,
String uuid) |
String |
read(String type,
String uuid) |
String |
readAll(String type,
Boolean polymorphic) |
protected void |
setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
boolean uuid) |
protected void |
setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
boolean uuid,
Map<String,String> map) |
protected void |
setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
Map<String,String> map) |
String |
updateOrCreate(String type,
String uuid,
String json) |
protected void setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
Map<String,String> map)
protected void setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
boolean uuid)
protected void setCalledMethod(org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD httpMethod,
String type,
boolean uuid,
Map<String,String> map)
@GET
@Path(value="/{TYPE_NAME}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String readAll(@PathParam(value="TYPE_NAME")
String type,
@QueryParam(value="polymorphic") @DefaultValue(value="true")
Boolean polymorphic)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@HEAD
@Path(value="/{TYPE_NAME}/{UUID}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response exists(@PathParam(value="TYPE_NAME")
String type,
@PathParam(value="UUID")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@GET
@Path(value="/{TYPE_NAME}/{UUID}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String read(@PathParam(value="TYPE_NAME")
String type,
@PathParam(value="UUID")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@PUT
@Path(value="/{TYPE_NAME}/{UUID}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String updateOrCreate(@PathParam(value="TYPE_NAME")
String type,
@PathParam(value="UUID")
String uuid,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Path(value="/{TYPE_NAME}/{UUID}")
public javax.ws.rs.core.Response delete(@PathParam(value="TYPE_NAME")
String type,
@PathParam(value="UUID")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2020. All Rights Reserved.