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 |
accessType, AT, element, elementClass, erType, ignoreKeys, ignoreStartWithKeys, jsonNode, oClass, orientGraph, UNDERSCORE, uuid| Modifier | Constructor and Description |
|---|---|
protected |
RelationManagement(org.gcube.informationsystem.model.AccessType accessType) |
protected |
RelationManagement(org.gcube.informationsystem.model.AccessType accessType,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToContext() |
String |
allFrom(UUID uuid,
com.tinkerpop.blueprints.Direction direction,
boolean polymorphic) |
protected boolean |
deleteTargetVertex(com.tinkerpop.blueprints.Vertex target) |
boolean |
forcedAddToContext() |
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() |
com.tinkerpop.blueprints.Edge |
reallyCreate(UUID sourceUUID) |
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) |
all, checkERMatch, checkJSON, checkUUIDMatch, create, delete, exists, getAnyElementByUUID, getClassProperty, getElement, getERManagement, getERManagement, getERManagement, getERManagementFromUUID, getObjectFromElement, getOClass, getPropertyForJson, getPropertyMap, getSpecificElementNotFoundException, getSpecificERAlreadyPresentException, getSpecificERAvailableInAnotherContextException, getSuperclasses, read, reallyCreateOrUdate, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serializeSelfOnly, setElement, setElementType, setJSON, setJSON, setUUID, toJSONObject, update, updatePropertiesprotected final Class<? extends org.gcube.informationsystem.model.entity.Entity> targetEntityClass
protected RelationManagement(org.gcube.informationsystem.model.AccessType accessType)
protected RelationManagement(org.gcube.informationsystem.model.AccessType accessType,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph)
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.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 reallyCreate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyCreate in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>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.ResourceRegistryExceptionpublic boolean forcedAddToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
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.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.ResourceRegistryExceptionpublic String allFrom(UUID uuid, com.tinkerpop.blueprints.Direction direction, boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addToContext()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
addToContext in class ERManagement<R extends org.gcube.informationsystem.model.relation.Relation,com.tinkerpop.blueprints.Edge>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionCopyright © 2017. All Rights Reserved.