public abstract class EntityElementManagement<E extends org.gcube.informationsystem.base.reference.entities.EntityElement,ET extends org.gcube.informationsystem.types.reference.entities.EntityType> extends ElementManagement<com.orientechnologies.orient.core.record.OVertex,ET>
| Modifier and Type | Field and Description |
|---|---|
static String |
IN_PREFIX |
static String |
OUT_PREFIX |
protected Map<String,RelationElementManagement<?,?,?,?>> |
relationManagements
Provide a cache edge-internal-id -> RelationManagement
this avoid to recreate the relationManagement of already visited edges
|
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 |
EntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType) |
protected |
EntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.gcube.com.fasterxml.jackson.databind.JsonNode |
addRelation(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource,
org.gcube.com.fasterxml.jackson.databind.JsonNode relation,
String arrayKey) |
protected void |
addToRelationManagement(RelationElementManagement<?,?,?,?> baseRelationManagement) |
protected com.orientechnologies.orient.core.record.OVertex |
createVertex() |
protected RelationElementManagement<?,?,?,?> |
getBaseRelationManagement(com.orientechnologies.orient.core.record.OEdge edge) |
all, checkERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, create, createCompleteJsonNode, 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, reallyCreate, reallyDelete, reallyGetAll, reallyUpdate, 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_PREFIX
public static final String OUT_PREFIX
protected Map<String,RelationElementManagement<?,?,?,?>> relationManagements
protected EntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType)
protected EntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument)
protected RelationElementManagement<?,?,?,?> getBaseRelationManagement(com.orientechnologies.orient.core.record.OEdge edge) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void addToRelationManagement(RelationElementManagement<?,?,?,?> baseRelationManagement) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected static org.gcube.com.fasterxml.jackson.databind.JsonNode addRelation(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource,
org.gcube.com.fasterxml.jackson.databind.JsonNode relation,
String arrayKey)
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected com.orientechnologies.orient.core.record.OVertex createVertex()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.EntityAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.EntityAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.