@Path(value="entity") public class EntityManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.informationsystem.resourceregistry.api.EntityManagement |
entityManager |
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 |
|---|
EntityManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
attachFacet(String resourceUUID,
String facetUUID,
String type,
String properties)
e.g.
|
String |
attachResource(String sourceResourceUUID,
String targetResourceUUID,
String type,
String properties)
e.g.
|
String |
createFacet(String type,
String definition)
e.g.
|
String |
createResource(String type,
String definition)
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.
|
String |
updateFacet(String uuid,
String definition)
e.g.
|
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
protected org.gcube.informationsystem.resourceregistry.api.EntityManagement entityManager
@PUT
@Path(value="facet/{type}")
public String createFacet(@PathParam(value="type")
String type,
@QueryParam(value="definition")
String definition)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
type - definition - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@POST
@Path(value="facet/{id}")
public String updateFacet(@PathParam(value="id")
String uuid,
@QueryParam(value="definition")
String definition)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
uuid - definition - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.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.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
uuid - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@PUT
@Path(value="resource/{type}")
public String createResource(@PathParam(value="type")
String type,
@QueryParam(value="definition")
String definition)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
type - definition - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.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.ResourceNotFoundException,
Exception
uuid - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionException@PUT
@Path(value="consistsOf/source/{sourceId}/target/{targetId}")
public String attachFacet(@PathParam(value="sourceId")
String resourceUUID,
@PathParam(value="targetId")
String facetUUID,
@QueryParam(value="type")
String type,
@QueryParam(value="properties")
String properties)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
resourceUUID - facetUUID - type - properties - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.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}")
public String attachResource(@PathParam(value="sourceId")
String sourceResourceUUID,
@PathParam(value="targetId")
String targetResourceUUID,
@QueryParam(value="type")
String type,
@QueryParam(value="properties")
String properties)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
sourceResourceUUID - targetResourceUUID - type - properties - org.gcube.informationsystem.resourceregistry.api.exceptions.entity.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.ResourceRegistryExceptionCopyright © 2016. All Rights Reserved.