@Path(value="instances") public class InstancesManager extends BaseRest
| Modifier and Type | Field and Description |
|---|---|
static String |
UUID_PATH_PARAMETER |
| 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 |
getInstanceContexts(String type,
String instanceId,
String contextId) |
String |
read(String type,
String uuid) |
String |
readAll(String type,
Boolean polymorphic) |
String |
updateOrCreate(String type,
String uuid,
String json) |
checkHierarchicalMode, checkIncludeInstancesContexts, isRequesterAllowedToPerformHierarchicalRequests, isRequesterAllowedToRequestInstancesContextspublic static final String UUID_PATH_PARAMETER
@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.ResourceRegistryException@GET
@Path(value="{TYPE_NAME}/{UUID}/contexts")
@Produces(value="application/json;charset=UTF-8")
public String getInstanceContexts(@PathParam(value="TYPE_NAME")
String type,
@PathParam(value="UUID")
String instanceId,
@PathParam(value="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
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.