public abstract class RelationManagement<T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>> extends RelationElementManagement<ResourceManagement,T>
| Modifier and Type | Field and Description |
|---|---|
org.gcube.informationsystem.model.reference.properties.PropagationConstraint |
defaultPropagationConstraint |
sourceEntityClass, sourceEntityManagement, targetEntityClass, targetEntityManagementaccessType, AT, DELETED, element, elementClass, elementType, ignoreKeys, ignoreStartWithKeys, jsonNode, logger, oClass, oDatabaseDocument, reload, UNDERSCORE, uuid, workingContext| Modifier | Constructor and Description |
|---|---|
protected |
RelationManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.model.reference.entities.Entity> targetEntityClass,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint defaultPropagationConstraint) |
protected |
RelationManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.model.reference.entities.Entity> targetEntityClass,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint defaultPropagationConstraint) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToContext(UUID contextUUID) |
protected void |
checkPropagationConstraint() |
boolean |
forcedAddToContext(SecurityContext targetSecurityContext) |
protected Map<String,com.fasterxml.jackson.databind.JsonNode> |
fullSerialize(Map<String,com.fasterxml.jackson.databind.JsonNode> visitedSourceResources) |
protected PropagationConstraintOrient |
getPropagationConstraint(com.orientechnologies.orient.core.record.impl.ODocument oDocument) |
ResourceManagement |
getSourceEntityManagement() |
T |
getTargetEntityManagement() |
ResourceManagement |
giveMeSourceEntityManagementAsIs() |
protected ResourceManagement |
newSourceEntityManagement() |
protected abstract T |
newTargetEntityManagement() |
protected boolean |
reallyAddToContext(SecurityContext targetSecurityContext) |
protected com.orientechnologies.orient.core.record.OEdge |
reallyCreate() |
protected boolean |
reallyDelete() |
String |
reallyGetAll(boolean polymorphic) |
protected boolean |
reallyRemoveFromContext(SecurityContext targetSecurityContext) |
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) |
protected Collection<com.fasterxml.jackson.databind.JsonNode> |
serializeEdges(Iterable<com.orientechnologies.orient.core.record.impl.ODocument> edges,
boolean postFilterPolymorphic) |
protected String |
serializeJsonNodeCollectionAsString(Collection<com.fasterxml.jackson.databind.JsonNode> collection) |
void |
setSourceEntityManagement(ResourceManagement resourceManagement) |
void |
setTargetEntityManagement(T targetEntityManagement) |
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, removeFromContext, retrieveElement, retrieveElementFromAnyContext, serializeSelfOnly, setElement, setElementType, setJson, setJsonNode, setOClass, setReload, setUUID, setWorkingContext, toJsonNode, update, updatePropertiespublic final org.gcube.informationsystem.model.reference.properties.PropagationConstraint defaultPropagationConstraint
protected RelationManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.model.reference.entities.Entity> targetEntityClass,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint defaultPropagationConstraint)
protected RelationManagement(org.gcube.informationsystem.base.reference.AccessType accessType,
Class<? extends org.gcube.informationsystem.model.reference.entities.Entity> targetEntityClass,
SecurityContext workingContext,
com.orientechnologies.orient.core.db.document.ODatabaseDocument orientGraph,
org.gcube.informationsystem.model.reference.properties.PropagationConstraint defaultPropagationConstraint)
public ResourceManagement giveMeSourceEntityManagementAsIs() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic ResourceManagement getSourceEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getSourceEntityManagement in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic T getTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
getTargetEntityManagement in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void setSourceEntityManagement(ResourceManagement resourceManagement)
setSourceEntityManagement in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>public void setTargetEntityManagement(T targetEntityManagement)
setTargetEntityManagement in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>public String serialize() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serialize in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic com.fasterxml.jackson.databind.JsonNode serializeAsJson()
throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
serializeAsJson in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>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
serializeAsJson in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected Map<String,com.fasterxml.jackson.databind.JsonNode> fullSerialize(Map<String,com.fasterxml.jackson.databind.JsonNode> visitedSourceResources) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected PropagationConstraintOrient getPropagationConstraint(com.orientechnologies.orient.core.record.impl.ODocument oDocument) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected void checkPropagationConstraint()
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 RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected ResourceManagement newSourceEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
newSourceEntityManagement in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected abstract T newTargetEntityManagement() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
newTargetEntityManagement in class RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>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 RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.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.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean forcedAddToContext(SecurityContext targetSecurityContext) throws org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
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.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionorg.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 RelationElementManagement<ResourceManagement,T extends EntityManagement<? extends org.gcube.informationsystem.model.reference.entities.Entity>>org.gcube.informationsystem.resourceregistry.api.exceptions.relation.RelationNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected Collection<com.fasterxml.jackson.databind.JsonNode> serializeEdges(Iterable<com.orientechnologies.orient.core.record.impl.ODocument> edges, boolean postFilterPolymorphic) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionprotected String serializeJsonNodeCollectionAsString(Collection<com.fasterxml.jackson.databind.JsonNode> collection) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.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.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic boolean addToContext(UUID contextUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextException
addToContext in class ElementManagement<com.orientechnologies.orient.core.record.OEdge>org.gcube.informationsystem.resourceregistry.api.exceptions.NotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.context.ContextExceptionCopyright © 2020. All Rights Reserved.