public class EntityManagementImpl extends Object implements org.gcube.informationsystem.resourceregistry.api.EntityManagement
| Constructor and Description |
|---|
EntityManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected <E extends org.gcube.informationsystem.model.entity.Entity> |
addEntityToContext(Class<E> clz,
UUID uuid) |
boolean |
addFacetToContext(UUID uuid) |
boolean |
addResourceToContext(UUID uuid) |
String |
attachFacet(UUID resourceUUID,
UUID facetUUID,
String consistOfType,
String jsonProperties) |
String |
attachResource(UUID sourceResourceUuid,
UUID targetResourceUuid,
String relatedToType,
String jsonProperties) |
com.tinkerpop.blueprints.Edge |
createEdgeRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.tinkerpop.blueprints.Vertex source,
com.tinkerpop.blueprints.Vertex target,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationBaseClass,
Map<String,Object> edgeProperties,
boolean deferredCommit) |
com.tinkerpop.blueprints.Edge |
createEdgeRelation(UUID sourceUUID,
Class<? extends org.gcube.informationsystem.model.entity.Entity> sourceClass,
UUID targetUUID,
Class<? extends org.gcube.informationsystem.model.entity.Entity> targetClass,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationBaseClass,
String jsonProperties) |
String |
createFacet(String facetType,
String jsonRepresentation) |
String |
createResource(String resourceType,
String jsonRepresentation) |
com.tinkerpop.blueprints.Vertex |
createVertexEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entity,
String jsonRepresentation,
boolean deferredCommit) |
com.tinkerpop.blueprints.Vertex |
createVertexEntity(String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entity,
String jsonRepresentation,
boolean deferredCommit) |
boolean |
deleteFacet(UUID uuid) |
boolean |
deleteResource(UUID uuid) |
boolean |
detachFacet(UUID consistsOfUUID) |
boolean |
detachResource(UUID isRelatedToUUID) |
com.tinkerpop.blueprints.Vertex |
getEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
UUID uuid,
String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entityClass) |
static Object |
getObjectFromElement(com.fasterxml.jackson.databind.JsonNode value) |
static Map<String,Object> |
getPropertyMap(com.fasterxml.jackson.databind.JsonNode jsonNode,
Set<String> ignoreKeys) |
com.tinkerpop.blueprints.Edge |
getRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
UUID uuid,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationClass) |
String |
readFacet(UUID uuid) |
String |
readFacet(UUID uuid,
String facetType) |
String |
readResource(UUID uuid) |
String |
readResource(UUID uuid,
String resourceType) |
String |
updateFacet(UUID uuid,
String jsonRepresentation) |
public com.tinkerpop.blueprints.Vertex getEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
UUID 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,
UUID 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 static Object getObjectFromElement(com.fasterxml.jackson.databind.JsonNode value) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static Map<String,Object> getPropertyMap(com.fasterxml.jackson.databind.JsonNode jsonNode, Set<String> ignoreKeys) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionpublic com.tinkerpop.blueprints.Vertex createVertexEntity(String entityType, Class<? extends org.gcube.informationsystem.model.entity.Entity> entity, String jsonRepresentation, boolean deferredCommit) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Vertex createVertexEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
String entityType,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entity,
String jsonRepresentation,
boolean deferredCommit)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Edge createEdgeRelation(UUID sourceUUID, Class<? extends org.gcube.informationsystem.model.entity.Entity> sourceClass, UUID targetUUID, Class<? extends org.gcube.informationsystem.model.entity.Entity> targetClass, String relationType, Class<? extends org.gcube.informationsystem.model.relation.Relation> relationBaseClass, 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 com.tinkerpop.blueprints.Edge createEdgeRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.tinkerpop.blueprints.Vertex source,
com.tinkerpop.blueprints.Vertex target,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationBaseClass,
Map<String,Object> edgeProperties,
boolean deferredCommit)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.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(UUID 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(UUID 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(UUID 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(UUID 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(UUID resourceUUID, UUID 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(UUID consistsOfUUID) 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(UUID sourceResourceUuid, UUID 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(UUID isRelatedToUUID) 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(UUID 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(UUID 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(UUID 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.ResourceRegistryExceptionprotected <E extends org.gcube.informationsystem.model.entity.Entity> boolean addEntityToContext(Class<E> clz, UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, 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.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addResourceToContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
addResourceToContext in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addFacetToContext(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
addFacetToContext in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2016. All Rights Reserved.