public abstract class RelationElementManagement<SEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement>,TEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement>> extends ElementManagement<com.orientechnologies.orient.core.record.OEdge>
| Modifier and Type | Field and Description |
|---|---|
protected Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> |
sourceEntityClass |
protected SEM |
sourceEntityManagement |
protected Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> |
targetEntityClass |
protected TEM |
targetEntityManagement |
accessType, AT, DELETED, element, elementClass, elementType, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, reload, UNDERSCORE, uuid, workingContext| Modifier | Constructor and Description |
|---|---|
protected |
RelationElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> sourceEntityClass,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> targetEntityClass) |
protected |
RelationElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> sourceEntityClass,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> targetEntityClass,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph) |
| Modifier and Type | Method and Description |
|---|---|
SEM |
getSourceEntityManagement() |
TEM |
getTargetEntityManagement() |
protected abstract SEM |
newSourceEntityManagement() |
protected abstract TEM |
newTargetEntityManagement() |
protected com.orientechnologies.orient.core.record.OEdge |
reallyCreate() |
protected boolean |
reallyDelete() |
protected com.orientechnologies.orient.core.record.OEdge |
reallyUpdate() |
String |
serialize() |
com.fasterxml.jackson.databind.JsonNode |
serializeAsJson() |
com.fasterxml.jackson.databind.JsonNode |
serializeAsJson(boolean includeSource,
boolean includeTarget) |
void |
setSourceEntityManagement(SEM sourceEntityManagement) |
void |
setTargetEntityManagement(TEM targetEntityManagement) |
addToContext, all, checkERMatch, checkJsonNode, checkUUIDMatch, create, createOrUpdate, delete, exists, getAccessType, getClassProperty, getElement, getElementFromOptional, getElementType, getObjectFromElement, getOClass, getOClass, getPropertyForJson, getPropertyMap, getSpecificElementNotFoundException, getSpecificERAlreadyPresentException, getSpecificERAvailableInAnotherContextException, getSuperclasses, getUUID, getWorkingContext, internalAddToContext, internalCreate, internalCreateOrUdate, internalDelete, internalRemoveFromContext, internalUpdate, isReload, read, reallyAddToContext, reallyGetAll, reallyRemoveFromContext, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serializeSelfOnly, setElement, setElementType, setJson, setJsonNode, setOClass, setReload, setUUID, setWorkingContext, toJsonNode, update, updatePropertiesprotected final Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> sourceEntityClass
protected final Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> targetEntityClass
protected SEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> sourceEntityManagement
protected TEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> targetEntityManagement
protected RelationElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> sourceEntityClass,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> targetEntityClass)
protected RelationElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> sourceEntityClass,
Class<? extends org.gcube.informationsystem.base.reference.entities.EntityElement> targetEntityClass,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
public SEM getSourceEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic TEM getTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setSourceEntityManagement(SEM sourceEntityManagement)
public void setTargetEntityManagement(TEM targetEntityManagement)
public String serialize() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serialize in class ElementManagement<com.orientechnologies.orient.core.record.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.fasterxml.jackson.databind.JsonNode serializeAsJson()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serializeAsJson in class ElementManagement<com.orientechnologies.orient.core.record.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.fasterxml.jackson.databind.JsonNode serializeAsJson(boolean includeSource,
boolean includeTarget)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OEdge reallyCreate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyCreate in class ElementManagement<com.orientechnologies.orient.core.record.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected abstract SEM newSourceEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected abstract TEM newTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OEdge reallyUpdate()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyUpdate in class ElementManagement<com.orientechnologies.orient.core.record.OEdge>org.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 ElementManagement<com.orientechnologies.orient.core.record.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2020. All Rights Reserved.