@Path(value="er") public class ERManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_PATH_PARAM |
static String |
TYPE_PATH_PARAM |
| Constructor and Description |
|---|
ERManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addFacetToContext(String uuid)
e.g POST /resource-registry/er/add/facet/f6931232-c034-4979-9b2f-7193d3fba7df
|
boolean |
addResourceToContext(String uuid)
e.g POST
/resource-registry/er/add/resource/67062c11-9c3a-4906-870d-7df6a43408b0
|
javax.ws.rs.core.Response |
createConsistsOf(String type,
String json)
e.g.
|
javax.ws.rs.core.Response |
createFacet(String type,
String json)
e.g.
|
javax.ws.rs.core.Response |
createIsRelatedTo(String type,
String json)
e.g.
|
javax.ws.rs.core.Response |
createResource(String type,
String json)
e.g.
|
boolean |
deleteFacet(String uuid)
e.g.
|
boolean |
deleteResource(String uuid)
e.g.
|
boolean |
detachFacet(String consistOfUUID)
e.g.
|
boolean |
detachResource(String relatedToUUID)
e.g.
|
boolean |
removeFacetFromContext(String uuid)
e.g POST
/resource-registry/er/remove/facet/f6931232-c034-4979-9b2f-7193d3fba7df
|
boolean |
removeResourceFromContext(String uuid)
e.g POST
/resource-registry/er/remove/resource/67062c11-9c3a-4906-870d-7df6a43408b0
|
String |
updateFacet(String uuid,
String json)
e.g.
|
String |
updateResource(String uuid,
String json)
e.g.
|
public static final String ID_PATH_PARAM
public static final String TYPE_PATH_PARAM
@PUT
@Path(value="facet/{type}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response createFacet(@PathParam(value="type")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="facet/{id}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String updateFacet(@PathParam(value="id")
String uuid,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Path(value="facet/{id}")
public boolean deleteFacet(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@PUT
@Path(value="resource/{type}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response createResource(@PathParam(value="type")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="resource/{id}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public String updateResource(@PathParam(value="id")
String uuid,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Path(value="resource/{id}")
public boolean deleteResource(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
Exception
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionException@PUT
@Path(value="consistsOf/{type}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response createConsistsOf(@PathParam(value="type")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Path(value="consistsOf/{id}")
public boolean detachFacet(@PathParam(value="id")
String consistOfUUID)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@PUT
@Path(value="isRelatedTo/{type}")
@Consumes(value={"text/plain","application/json;charset=UTF-8"})
@Produces(value="application/json;charset=UTF-8")
public javax.ws.rs.core.Response createIsRelatedTo(@PathParam(value="type")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@DELETE
@Path(value="isRelatedTo/{id}")
public boolean detachResource(@PathParam(value="id")
String relatedToUUID)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="add/resource/{id}")
public boolean addResourceToContext(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="add/facet/{id}")
public boolean addFacetToContext(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="remove/resource/{id}")
public boolean removeResourceFromContext(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="remove/facet/{id}")
public boolean removeFacetFromContext(@PathParam(value="id")
String uuid)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.