public abstract class RelationElementManagement<SEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement,SET>,TEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement,TET>,SET extends org.gcube.informationsystem.types.reference.entities.EntityType,TET extends org.gcube.informationsystem.types.reference.entities.EntityType> extends ElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<SET,TET>>
| Modifier and Type | Field and Description |
|---|---|
static String |
IN |
protected boolean |
includeSource |
protected boolean |
includeTarget |
static String |
OUT |
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, affectedInstances, AT, cachedType, complete, DELETED, dryRun, element, elementClass, entryPoint, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, 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 |
|---|---|
protected abstract void |
checksourceAndTargetEntityCompliancy() |
protected org.gcube.com.fasterxml.jackson.databind.JsonNode |
createCompleteJsonNode() |
SEM |
getSourceEntityManagement() |
TEM |
getTargetEntityManagement() |
void |
includeSource(boolean includeSource) |
void |
includeTarget(boolean includeTarget) |
protected abstract SEM |
newSourceEntityManagement() |
protected abstract TEM |
newTargetEntityManagement() |
protected com.orientechnologies.orient.core.record.OEdge |
reallyCreate() |
protected void |
reallyDelete() |
protected com.orientechnologies.orient.core.record.OEdge |
reallyUpdate() |
void |
setSourceEntityManagement(SEM sourceEntityManagement) |
void |
setTargetEntityManagement(TEM targetEntityManagement) |
all, checkERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, create, createOrUpdate, delete, exists, getAccessType, getAffectedInstances, getAllProperties, getCachedType, getClassProperty, getContexts, getContextsAsObjectNode, getContextsSet, getElement, getMandatoryErrorMessage, getNotNullErrorMessage, getObjectFromJsonNode, getOClass, getPropertyForJson, getPropertyMap, getSpecificAlreadyPresentException, getSpecificNotFoundException, getTypeName, getUUID, getWorkingContext, internalCreate, internalCreateOrUdate, internalDelete, internalUpdate, isDryRun, isReload, read, reallyGetAll, retrieveElement, retrieveElementFromAnyContext, sanityCheck, serializeAsAffectedInstance, serializeAsJsonNode, serializeSelfAsJsonNode, setAsEntryPoint, setDryRun, setElement, setElementType, setJson, setJsonNode, setOClass, setODatabaseDocument, setOperation, setProperty, setReload, setUUID, setWorkingContext, typeSatified, update, updatePropertiespublic static final String IN
public static final String OUT
protected 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,SET> sourceEntityManagement
protected TEM extends EntityElementManagement<? extends org.gcube.informationsystem.base.reference.entities.EntityElement,TET> targetEntityManagement
protected boolean includeSource
protected boolean includeTarget
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 void includeSource(boolean includeSource)
public void includeTarget(boolean includeTarget)
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)
protected org.gcube.com.fasterxml.jackson.databind.JsonNode createCompleteJsonNode()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createCompleteJsonNode in class ElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<SET extends org.gcube.informationsystem.types.reference.entities.EntityType,TET extends org.gcube.informationsystem.types.reference.entities.EntityType>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected abstract void checksourceAndTargetEntityCompliancy()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextException,
org.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.AvailableInAnotherContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.types.SchemaViolationExceptionorg.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.types.reference.relations.RelationType<SET extends org.gcube.informationsystem.types.reference.entities.EntityType,TET extends org.gcube.informationsystem.types.reference.entities.EntityType>>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.types.reference.relations.RelationType<SET extends org.gcube.informationsystem.types.reference.entities.EntityType,TET extends org.gcube.informationsystem.types.reference.entities.EntityType>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void reallyDelete()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.relations.RelationNotFoundException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyDelete in class ElementManagement<com.orientechnologies.orient.core.record.OEdge,org.gcube.informationsystem.types.reference.relations.RelationType<SET extends org.gcube.informationsystem.types.reference.entities.EntityType,TET extends org.gcube.informationsystem.types.reference.entities.EntityType>>org.gcube.informationsystem.resourceregistry.api.exceptions.relations.RelationNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.