public class EntityManagementImpl extends Object implements org.gcube.informationsystem.resourceregistry.api.EntityManagement
| Constructor and Description |
|---|
EntityManagementImpl() |
| 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 |
createEdgeRelation(String sourceUUID,
Class<? extends org.gcube.informationsystem.model.entity.Entity> sourceClass,
String targetUUID,
Class<? extends org.gcube.informationsystem.model.entity.Entity> targetClass,
String relationType,
String jsonProperties) |
String |
createFacet(String facetType,
String jsonRepresentation) |
String |
createResource(String resourceType,
String jsonRepresentation) |
String |
createVertexEntity(String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entity,
String jsonRepresentation) |
boolean |
deleteFacet(String uuid) |
boolean |
deleteResource(String uuid) |
boolean |
detachFacet(String consistOfUUID) |
boolean |
detachResource(String relatedToUUID) |
com.tinkerpop.blueprints.Vertex |
getEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
String uuid,
String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entityClass) |
com.tinkerpop.blueprints.Edge |
getRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
String uuid,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationClass) |
String |
readFacet(String uuid) |
String |
readFacet(String uuid,
String facetType) |
String |
readResource(String uuid) |
String |
readResource(String uuid,
String resourceType) |
String |
updateFacet(String uuid,
String jsonRepresentation) |
public com.tinkerpop.blueprints.Vertex getEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
String uuid,
String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entityClass)
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.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Edge getRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
String uuid,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationClass)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String createVertexEntity(String entityType, Class<? extends org.gcube.informationsystem.model.entity.Entity> entity, String jsonRepresentation) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String createEdgeRelation(String sourceUUID, Class<? extends org.gcube.informationsystem.model.entity.Entity> sourceClass, String targetUUID, Class<? extends org.gcube.informationsystem.model.entity.Entity> targetClass, String relationType, 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.ResourceRegistryExceptionpublic String createFacet(String facetType, String jsonRepresentation) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String readFacet(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
readFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String readFacet(String uuid, String facetType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
readFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String updateFacet(String uuid, String jsonRepresentation) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
updateFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean deleteFacet(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String attachFacet(String resourceUUID, String facetUUID, String consistOfType, 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
attachFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean detachFacet(String consistOfUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
detachFacet in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String attachResource(String sourceResourceUuid, String targetResourceUuid, String relatedToType, String jsonProperties) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
attachResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean detachResource(String relatedToUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
detachResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String createResource(String resourceType, String jsonRepresentation) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String readResource(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException
readResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionpublic String readResource(String uuid, String resourceType) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException
readResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionpublic boolean deleteResource(String uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
deleteResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2016. All Rights Reserved.