@Path(value="er") public class ERManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ID_PATH_PARAM |
static String |
SOURCE_ID_PATH_PARAM |
static String |
TARGET_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/add/facet/f6931232-c034-4979-9b2f-7193d3fba7df
|
boolean |
addResourceToContext(String uuid)
e.g POST
/resource-registry/add/resource/67062c11-9c3a-4906-870d-7df6a43408b0
|
String |
attachFacet(String resourceUUID,
String facetUUID,
String type,
String json)
e.g.
|
String |
attachResource(String sourceResourceUUID,
String targetResourceUUID,
String type,
String json)
e.g.
|
String |
createFacet(String type,
String json)
e.g.
|
String |
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/remove/facet/f6931232-c034-4979-9b2f-7193d3fba7df
|
boolean |
removeResourceFromContext(String uuid)
e.g POST
/resource-registry/remove/resource/67062c11-9c3a-4906-870d-7df6a43408b0
|
String |
updateFacet(String uuid,
String json)
e.g.
|
String |
updateResource(String uuid,
String json) |
public static final String ID_PATH_PARAM
public static final String TYPE_PATH_PARAM
public static final String SOURCE_ID_PATH_PARAM
public static final String TARGET_ID_PATH_PARAM
@PUT
@Path(value="facet/{type}")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String 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
type - definition - EntityExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetAlreadyPresentException@POST
@Path(value="facet/{id}")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
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
uuid - definition - 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
uuid - 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"})
@Produces(value="application/json")
public String 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
type - definition - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceAlreadyPresentException@POST
@Path(value="resource/{id}")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
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
uuid - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionException@PUT
@Path(value="consistsOf/source/{sourceId}/target/{targetId}/{type}")
@Produces(value="application/json")
public String attachFacet(@PathParam(value="sourceId")
String resourceUUID,
@PathParam(value="targetId")
String facetUUID,
@PathParam(value="type")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
resourceUUID - facetUUID - type - properties - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.facet.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.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
consistOfUUID - org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@PUT
@Path(value="isRelatedTo/source/{sourceId}/target/{targetId}/{type}")
@Consumes(value={"text/plain","application/json"})
@Produces(value="application/json")
public String attachResource(@PathParam(value="sourceId")
String sourceResourceUUID,
@PathParam(value="targetId")
String targetResourceUUID,
@PathParam(value="type")
String type,
String json)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
sourceResourceUUID - targetResourceUUID - type - properties - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.resource.ResourceNotFoundExceptionorg.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
relatedToUUID - 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
uuid - 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
uuid - 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
uuid - 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
uuid - 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.