public abstract class RelationManagement<R extends org.gcube.informationsystem.model.relation.Relation,S extends EntityManagement,T extends EntityManagement> extends ERManagement<R,com.tinkerpop.blueprints.Edge>
| Modifier and Type | Field and Description |
|---|---|
protected S |
sourceEntityManagement |
protected Class<? extends org.gcube.informationsystem.model.entity.Entity> |
targetEntityClass |
protected T |
targetEntityManagement |
accessType, AT, element, elementClass, erType, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, orientGraph, reload, UNDERSCORE, uuid, workingContext| Modifier | Constructor and Description |
|---|---|
protected |
RelationManagement(org.gcube.informationsystem.model.AccessType accessType) |
protected |
RelationManagement(org.gcube.informationsystem.model.AccessType accessType,
SecurityContext workingContext,
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) |
boolean |
forcedAddToContext() |
protected Map<String,org.codehaus.jettison.json.JSONObject> |
fullSerialize(Map<String,org.codehaus.jettison.json.JSONObject> visitedSourceResources) |
S |
getSourceEntityManagement() |
T |
getTargetEntityManagement() |
S |
giveMeSourceEntityManagementAsIs() |
protected abstract S |
newSourceEntityManagement() |
protected abstract T |
newTargetEntityManagement() |
protected boolean |
reallyAddToContext() |
protected com.tinkerpop.blueprints.Edge |
reallyCreate() |
protected boolean |
reallyDelete() |
String |
reallyGetAll(boolean polymorphic) |
String |
reallyGetAllFrom(UUID uuid,
com.tinkerpop.blueprints.Direction direction,
boolean polymorphic) |
protected boolean |
reallyRemoveFromContext() |
protected com.tinkerpop.blueprints.Edge |
reallyUpdate() |
String |
serialize() |
org.codehaus.jettison.json.JSONObject |
serializeAsJson() |
org.codehaus.jettison.json.JSONObject |
serializeAsJson(boolean includeSource,
boolean includeTarget) |
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) |
void |
setSourceEntityManagement(S sourceEntityManagement) |
void |
setTargetEntityManagement(T targetEntityManagement) |
all, checkERMatch, checkJSON, checkUUIDMatch, create, delete, exists, getAccessType, getClassProperty, getElement, getObjectFromElement, getOClass, getPropertyForJson, getPropertyMap, getSpecificElementNotFoundException, getSpecificERAlreadyPresentException, getSpecificERAvailableInAnotherContextException, getSuperclasses, getWorkingContext, internalAddToContext, internalCreate, internalCreateOrUdate, internalDelete, internalRemoveFromContext, internalUpdate, isReload, read, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serializeSelfOnly, setElement, setElementType, setJSON, setJSON, setReload, setUUID, setWorkingContext, toJSONObject, update, updatePropertiesprotected final Class<? extends org.gcube.informationsystem.model.entity.Entity> targetEntityClass
protected S extends EntityManagement sourceEntityManagement
protected T extends EntityManagement targetEntityManagement
protected RelationManagement(org.gcube.informationsystem.model.AccessType accessType)
protected RelationManagement(org.gcube.informationsystem.model.AccessType accessType,
SecurityContext workingContext,
com.tinkerpop.blueprints.impls.orient.OrientGraph orientGraph)
public S giveMeSourceEntityManagementAsIs() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic S getSourceEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic T getTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setSourceEntityManagement(S sourceEntityManagement)
public void setTargetEntityManagement(T targetEntityManagement)
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.ResourceRegistryExceptionpublic org.codehaus.jettison.json.JSONObject serializeAsJson(boolean includeSource,
boolean includeTarget)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
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()
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.ResourceRegistryExceptionprotected abstract S newSourceEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected abstract T newTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected 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.ResourceRegistryExceptionprotected 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 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 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.er.ERNotFoundException,
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.er.ERNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionCopyright © 2017. All Rights Reserved.