public abstract class EntityManagement<E extends org.gcube.informationsystem.base.reference.entities.EntityElement> extends EntityElementManagement<E>
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,RelationManagement> |
relationManagements
Provide a cache edge-internal-id -> RelationManagement
this avoid to recreate the relationManagement of already visited edges
|
accessType, AT, DELETED, element, elementClass, elementType, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, reload, UNDERSCORE, uuid, workingContext| Modifier | Constructor and Description |
|---|---|
protected |
EntityManagement(org.gcube.informationsystem.base.reference.AccessType accessType) |
protected |
EntityManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph) |
| Modifier and Type | Method and Description |
|---|---|
protected static com.fasterxml.jackson.databind.JsonNode |
addRelation(com.fasterxml.jackson.databind.JsonNode sourceResource,
com.fasterxml.jackson.databind.JsonNode relation,
String arrayKey) |
protected void |
addToRelationManagement(RelationManagement relationManagement) |
protected com.orientechnologies.orient.core.record.OVertex |
createVertex() |
protected RelationManagement |
getRelationManagement(com.orientechnologies.orient.core.record.OEdge edge) |
String |
query(String relationType,
String referenceType,
UUID referenceUUID,
com.orientechnologies.orient.core.record.ODirection direction,
boolean polymorphic,
Map<String,String> constraint) |
protected boolean |
reallyAddToContext(SecurityContext targetSecurityContext) |
String |
reallyGetAll(boolean polymorphic) |
String |
reallyQuery(String relationType,
String referenceType,
UUID referenceUUID,
com.orientechnologies.orient.core.record.ODirection direction,
boolean polymorphic,
Map<String,String> constraint) |
String |
reallyQueryTraversal(String relationType,
String referenceType,
UUID referenceUUID,
com.orientechnologies.orient.core.record.ODirection direction,
boolean polymorphic,
Map<String,String> constraint) |
protected boolean |
reallyRemoveFromContext(SecurityContext targetSecurityContext) |
addToRelationManagement, getBaseRelationManagementaddToContext, 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, reallyCreate, reallyDelete, reallyUpdate, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serialize, serializeAsJson, serializeSelfOnly, setElement, setElementType, setJson, setJsonNode, setOClass, setReload, setUUID, setWorkingContext, toJsonNode, update, updatePropertiesprotected Map<String,RelationManagement> relationManagements
protected EntityManagement(org.gcube.informationsystem.base.reference.AccessType accessType)
protected EntityManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph)
protected RelationManagement getRelationManagement(com.orientechnologies.orient.core.record.OEdge edge) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void addToRelationManagement(RelationManagement relationManagement) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected static com.fasterxml.jackson.databind.JsonNode addRelation(com.fasterxml.jackson.databind.JsonNode sourceResource,
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.entity.EntityAlreadyPresentException,
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
createVertex in class EntityElementManagement<E extends org.gcube.informationsystem.base.reference.entities.EntityElement>org.gcube.informationsystem.resourceregistry.api.exceptions.entity.EntityAlreadyPresentExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean reallyAddToContext(SecurityContext targetSecurityContext) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyAddToContext in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected boolean reallyRemoveFromContext(SecurityContext targetSecurityContext) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyRemoveFromContext in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String reallyGetAll(boolean polymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
reallyGetAll in class ElementManagement<com.orientechnologies.orient.core.record.OVertex>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String reallyQuery(String relationType, String referenceType, UUID referenceUUID, com.orientechnologies.orient.core.record.ODirection direction, boolean polymorphic, Map<String,String> constraint) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String reallyQueryTraversal(String relationType, String referenceType, UUID referenceUUID, com.orientechnologies.orient.core.record.ODirection direction, boolean polymorphic, Map<String,String> constraint) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic String query(String relationType, String referenceType, UUID referenceUUID, com.orientechnologies.orient.core.record.ODirection direction, boolean polymorphic, Map<String,String> constraint) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2020. All Rights Reserved.