Refs #10238: Refactor Context Port Type
Task-Url: https://support.d4science.org/issues/10238 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@158622 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
99d0e8e04f
commit
72d9fe2059
|
@ -306,8 +306,8 @@ public abstract class ERManagement<ERType extends ER, El extends Element> {
|
||||||
public boolean internalAddToContext() throws ContextException, ResourceRegistryException {
|
public boolean internalAddToContext() throws ContextException, ResourceRegistryException {
|
||||||
try {
|
try {
|
||||||
boolean ret = reallyAddToContext();
|
boolean ret = reallyAddToContext();
|
||||||
HeaderUtility.updateModifiedByAndLastUpdate(element);
|
HeaderUtility.updateModifiedByAndLastUpdate(getElement());
|
||||||
((OrientVertex) element).save();
|
((OrientElement) getElement()).save();
|
||||||
return ret && true;
|
return ret && true;
|
||||||
}catch (ResourceRegistryException e) {
|
}catch (ResourceRegistryException e) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
|
@ -178,7 +178,7 @@ public abstract class EntityManagement<E extends Entity> extends
|
||||||
|
|
||||||
ContextUtility.addToActualContext(orientGraph, getElement());
|
ContextUtility.addToActualContext(orientGraph, getElement());
|
||||||
|
|
||||||
Iterable<Edge> edges = element.getEdges(Direction.OUT);
|
Iterable<Edge> edges = getElement().getEdges(Direction.OUT);
|
||||||
|
|
||||||
for (Edge edge : edges) {
|
for (Edge edge : edges) {
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
|
|
Loading…
Reference in New Issue