public abstract class RelationManagement<R extends org.gcube.informationsystem.model.relation.Relation> extends ERManagement<R,com.tinkerpop.blueprints.Edge>
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends org.gcube.informationsystem.model.entity.Entity> |
targetEntityClass |
AT, baseType, element, elementClass, erType, erTypeClass, ignoreKeys, ignoreStartWithKeys, jsonNode, orientGraph, UNDERSCORE, uuid| Modifier | Constructor and Description |
|---|---|
protected |
RelationManagement(Class<R> relationClass) |
protected |
RelationManagement(Class<R> relationClass,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph) |
| Modifier and Type | Method and Description |
|---|---|
String |
allFrom(UUID uuid,
com.tinkerpop.blueprints.Direction direction,
boolean polymorphic) |
String |
create(UUID sourceUUID,
UUID targetUUID) |
protected boolean |
deleteTargetVertex(com.tinkerpop.blueprints.Vertex target) |
protected Map<String,org.codehaus.jettison.json.JSONObject> |
fullSerialize(Map<String,org.codehaus.jettison.json.JSONObject> visitedSourceResources) |
protected EntityManagement |
getEntityManagement() |
static RelationManagement |
getRelationManagement(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph,
com.tinkerpop.blueprints.Edge edge) |
boolean |
reallyAddToContext() |
com.tinkerpop.blueprints.Edge |
reallyCreate(UUID sourceUUID) |
com.tinkerpop.blueprints.Edge |
reallyCreate(UUID sourceUUID,
UUID targetUUID) |
com.tinkerpop.blueprints.Edge |
reallyCreate(com.tinkerpop.blueprints.Vertex source) |
protected com.tinkerpop.blueprints.Edge |
reallyCreate(com.tinkerpop.blueprints.Vertex source,
com.tinkerpop.blueprints.Vertex target) |
boolean |
reallyDelete() |
String |
reallyGetAll(boolean polymorphic) |
String |
reallyGetAllFrom(UUID uuid,
com.tinkerpop.blueprints.Direction direction,
boolean polymorphic) |
boolean |
reallyRemoveFromContext() |
com.tinkerpop.blueprints.Edge |
reallyUpdate() |
protected boolean |
removeFromContextTargetVertex(com.tinkerpop.blueprints.Vertex target) |
String |
serialize() |
org.codehaus.jettison.json.JSONObject |
serializeAsJson() |
protected Collection<org.codehaus.jettison.json.JSONObject> |
serializeEdges(Iterable<com.tinkerpop.blueprints.Edge> edges,
boolean postFilterPolymorphic) |
protected String |
serializeJSONObjectList(Collection<org.codehaus.jettison.json.JSONObject> list) |
addToContext, all, checkERMatch, checkJSON, checkUUIDMatch, delete, getClassProperty, getElement, getERManagement, getERManagement, getERManagement, getERManagementFromUUID, getObjectFromElement, getPropertyMap, read, removeFromContext, serializeSelfOnly, setElement, setElementType, setJSON, setJSON, setUUID, throwElementNotFoundException, toJSONObject, update, updatePropertiesprotected final Class<? extends org.gcube.informationsystem.model.entity.Entity> targetEntityClass
public String serialize() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serialize in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic org.codehaus.jettison.json.JSONObject serializeAsJson()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serializeAsJson in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected Map<String,org.codehaus.jettison.json.JSONObject> fullSerialize(Map<String,org.codehaus.jettison.json.JSONObject> visitedSourceResources) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Edge reallyCreate(UUID sourceUUID, UUID targetUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.tinkerpop.blueprints.Edge reallyCreate(com.tinkerpop.blueprints.Vertex source,
com.tinkerpop.blueprints.Vertex target)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Edge reallyCreate(com.tinkerpop.blueprints.Vertex source)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Edge reallyCreate(UUID sourceUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.tinkerpop.blueprints.Edge reallyUpdate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyUpdate in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean reallyAddToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyAddToContext in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean removeFromContextTargetVertex(com.tinkerpop.blueprints.Vertex target)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean reallyRemoveFromContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyRemoveFromContext in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected EntityManagement getEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static RelationManagement getRelationManagement(com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph, com.tinkerpop.blueprints.Edge edge) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean deleteTargetVertex(com.tinkerpop.blueprints.Vertex target)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean reallyDelete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyDelete in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String create(UUID sourceUUID, UUID targetUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected Collection<org.codehaus.jettison.json.JSONObject> serializeEdges(Iterable<com.tinkerpop.blueprints.Edge> edges, boolean postFilterPolymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected String serializeJSONObjectList(Collection<org.codehaus.jettison.json.JSONObject> list)
public String reallyGetAll(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyGetAll in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String reallyGetAllFrom(UUID uuid, com.tinkerpop.blueprints.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.