public class EntityManagementImpl extends Object implements org.gcube.informationsystem.resourceregistry.api.EntityManagement
| Modifier and Type | Field and Description |
|---|---|
static String |
AT |
static Set<String> |
EMBEDDED_IGNORE_KEYS |
static Set<String> |
EMBEDDED_IGNORE_START_WITH_KEYS |
static Set<String> |
ENTITY_IGNORE_KEYS |
static Set<String> |
ENTITY_IGNORE_START_WITH_KEYS |
static Set<String> |
RELATION_IGNORE_KEYS |
static Set<String> |
RELATION_IGNORE_START_WITH_KEYS |
static String |
UNDERSCORE |
| 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 isRelatedToType,
String jsonProperties) |
String |
createFacet(String facetType,
String jsonRepresentation) |
String |
createResource(String resourceType,
String jsonRepresentation) |
boolean |
deleteFacet(UUID uuid) |
boolean |
deleteResource(UUID uuid) |
boolean |
detachFacet(UUID consistsOfUUID) |
boolean |
detachResource(UUID isRelatedToUUID) |
protected com.tinkerpop.blueprints.Vertex |
getEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.fasterxml.jackson.databind.JsonNode jsonNode,
UUID uuid,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entityClass) |
protected 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,
Set<String> ignoreStartWith) |
protected com.tinkerpop.blueprints.Edge |
getRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.fasterxml.jackson.databind.JsonNode jsonNode,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationClass) |
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) |
protected com.tinkerpop.blueprints.Vertex |
updateFacet(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
UUID uuid,
com.fasterxml.jackson.databind.JsonNode jsonNode) |
String |
updateFacet(UUID uuid,
String jsonRepresentation) |
String |
updateResource(UUID resourceUUID,
String jsonRepresentation) |
public static final String AT
public static final String UNDERSCORE
protected 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.ResourceRegistryExceptionprotected com.tinkerpop.blueprints.Vertex getEntity(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.fasterxml.jackson.databind.JsonNode jsonNode,
UUID uuid,
Class<? extends org.gcube.informationsystem.model.entity.Entity> entityClass)
throws com.fasterxml.jackson.core.JsonParseException,
com.fasterxml.jackson.databind.JsonMappingException,
IOException,
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.FacetNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionorg.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.ResourceRegistryExceptionprotected com.tinkerpop.blueprints.Edge getRelation(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.fasterxml.jackson.databind.JsonNode jsonNode,
String relationType,
Class<? extends org.gcube.informationsystem.model.relation.Relation> relationClass)
throws com.fasterxml.jackson.core.JsonParseException,
com.fasterxml.jackson.databind.JsonMappingException,
IOException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
com.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionorg.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, Set<String> ignoreStartWith) throws com.fasterxml.jackson.core.JsonProcessingException, IOException
com.fasterxml.jackson.core.JsonProcessingExceptionIOExceptionpublic 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.ResourceRegistryExceptionprotected com.tinkerpop.blueprints.Vertex updateFacet(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
UUID uuid,
com.fasterxml.jackson.databind.JsonNode jsonNode)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.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 isRelatedToType, 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 String updateResource(UUID resourceUUID, String jsonRepresentation) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
updateResource in interface org.gcube.informationsystem.resourceregistry.api.EntityManagementorg.gcube.informationsystem.resourceregistry.api.exceptions.entity.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic 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.