@Path(value="entity") public class EntityManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.informationsystem.resourceregistry.api.EntityManagement |
entityManager |
| Constructor and Description |
|---|
EntityManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
attachFacet(String resourceUUID,
String facetUUID,
String consistOfType,
String jsonProperties) |
String |
attachResource(String sourceResourceUuid,
String targetResourceUuid,
String relatedToType,
String jsonProperties) |
String |
createFacet(String facetType,
String jsonRepresentation) |
String |
createResource(String resourceType,
String jsonRepresentation) |
boolean |
deleteFacet(String facetId) |
boolean |
deleteResource(String resourceId) |
boolean |
detachFacet(String consistOfUUID) |
boolean |
detachResource(String relatedToUUID) |
String |
updateFacet(String facetId,
String jsonRepresentation) |
protected org.gcube.informationsystem.resourceregistry.api.EntityManagement entityManager
@Path(value="facet/{facetType}")
@PUT
public String createFacet(@PathParam(value="facetType")
String facetType,
String jsonRepresentation)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="facet/{facetId}")
@POST
public String updateFacet(@PathParam(value="facetId")
String facetId,
String jsonRepresentation)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="facet/{facetId}")
@DELETE
public boolean deleteFacet(@PathParam(value="facetId")
String facetId)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="resource/{resourceType}")
@PUT
public String createResource(@PathParam(value="resourceType")
String resourceType,
String jsonRepresentation)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="resource/{resourceId}")
@DELETE
public boolean deleteResource(@PathParam(value="resourceId")
String resourceId)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
Exception
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionException@Path(value="consistOf/source/{resourceId}/target/{facetId}")
@PUT
public String attachFacet(@PathParam(value="resourceId")
String resourceUUID,
@PathParam(value="facetId")
String facetUUID,
@QueryParam(value="consistOfType")
String consistOfType,
@QueryParam(value="jsonProperties")
String jsonProperties)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="consistOf/{consistOfId}")
@DELETE
public boolean detachFacet(@PathParam(value="consistOfId")
String consistOfUUID)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="relatedTo/source/{sourceResourceId}/target/{targetResourceId}")
@PUT
public String attachResource(@PathParam(value="sourceResourceId")
String sourceResourceUuid,
@PathParam(value="targetResourceId")
String targetResourceUuid,
@QueryParam(value="relatedToType")
String relatedToType,
@QueryParam(value="jsonProperties")
String jsonProperties)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException@Path(value="relatedTo/{relatedToId}")
@DELETE
public boolean detachResource(@PathParam(value="relatedToId")
String relatedToUUID)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2016. All Rights Reserved.