Class EntityElementManagement<E extends org.gcube.informationsystem.base.reference.entities.EntityElement,ET extends org.gcube.informationsystem.types.reference.entities.EntityType>
java.lang.Object
org.gcube.informationsystem.resourceregistry.base.ElementManagement<com.orientechnologies.orient.core.record.OVertex,ET>
org.gcube.informationsystem.resourceregistry.base.entities.EntityElementManagement<E,ET>
- Direct Known Subclasses:
ContextManagement,EntityManagement,EntityTypeDefinitionManagement,QueryTemplateManagement
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>
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected Map<String,RelationElementManagement<?, ?, ?, ?>> Provide a cache edge-internal-id -> RelationManagement this avoid to recreate the relationManagement of already visited edgesFields inherited from class org.gcube.informationsystem.resourceregistry.base.ElementManagement
accessType, affectedInstances, AT, cachedType, complete, DELETED, DOLLAR, dryRun, element, elementClass, entryPoint, forceIncludeAllMeta, forceIncludeMeta, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, operation, reload, self, typeName, UNDERSCORE, uuid, workingEnvironment -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType) protectedEntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType, Environment workingContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument) -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.gcube.com.fasterxml.jackson.databind.JsonNodeaddRelation(org.gcube.com.fasterxml.jackson.databind.JsonNode sourceResource, org.gcube.com.fasterxml.jackson.databind.JsonNode relation, String arrayKey) protected voidaddToRelationManagement(RelationElementManagement<?, ?, ?, ?> baseRelationManagement) protected com.orientechnologies.orient.core.record.OVertexprotected RelationElementManagement<?,?, ?, ?> getBaseRelationManagement(com.orientechnologies.orient.core.record.OEdge edge) Methods inherited from class org.gcube.informationsystem.resourceregistry.base.ElementManagement
all, checkERMatch, checkJsonNode, checkUUIDMatch, cleanCachedSerialization, create, createCompleteJsonNode, createOrUpdate, delete, exists, getAccessType, getAffectedInstances, getAllProperties, getCachedType, getContexts, getContextsAsObjectNode, getContextsSet, getElement, getMandatoryErrorMessage, getNotNullErrorMessage, getOClass, getPropertyForJson, getPropertyMap, getSpecificAlreadyPresentException, getSpecificNotFoundException, getTypeName, getUUID, getWorkingEnvironment, internalCreate, internalCreateOrUdate, internalDelete, internalUpdate, isDryRun, isForceIncludeAllMeta, isForceIncludeMeta, isReload, isUserAllowedToGetPrivacyMeta, read, reallyCreate, reallyDelete, reallyGetAll, reallyUpdate, retrieveElement, retrieveElementFromAnyContext, sanityCheck, serializeAsAffectedInstance, serializeAsJsonNode, serializeSelfAsJsonNode, setAsEntryPoint, setDryRun, setElement, setElementType, setForceIncludeAllMeta, setForceIncludeMeta, setJson, setJsonNode, setOClass, setODatabaseDocument, setOperation, setProperty, setReload, setUUID, setWorkingEnvironment, typeSatified, update, updateProperties
-
Field Details
-
IN_PREFIX
- See Also:
-
OUT_PREFIX
- See Also:
-
relationManagements
Provide a cache edge-internal-id -> RelationManagement this avoid to recreate the relationManagement of already visited edges
-
-
Constructor Details
-
EntityElementManagement
protected EntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType) -
EntityElementManagement
protected EntityElementManagement(org.gcube.informationsystem.base.reference.AccessType accessType, Environment workingContext, com.orientechnologies.orient.core.db.document.ODatabaseDocument oDatabaseDocument)
-
-
Method Details
-
getBaseRelationManagement
protected RelationElementManagement<?,?, getBaseRelationManagement?, ?> (com.orientechnologies.orient.core.record.OEdge edge) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
addToRelationManagement
protected void addToRelationManagement(RelationElementManagement<?, ?, throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException?, ?> baseRelationManagement) - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
addRelation
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) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
createVertex
protected com.orientechnologies.orient.core.record.OVertex createVertex() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.EntityAlreadyPresentException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.EntityAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-