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 {
|
||||
try {
|
||||
boolean ret = reallyAddToContext();
|
||||
HeaderUtility.updateModifiedByAndLastUpdate(element);
|
||||
((OrientVertex) element).save();
|
||||
HeaderUtility.updateModifiedByAndLastUpdate(getElement());
|
||||
((OrientElement) getElement()).save();
|
||||
return ret && true;
|
||||
}catch (ResourceRegistryException e) {
|
||||
throw e;
|
||||
|
|
|
@ -178,7 +178,7 @@ public abstract class EntityManagement<E extends Entity> extends
|
|||
|
||||
ContextUtility.addToActualContext(orientGraph, getElement());
|
||||
|
||||
Iterable<Edge> edges = element.getEdges(Direction.OUT);
|
||||
Iterable<Edge> edges = getElement().getEdges(Direction.OUT);
|
||||
|
||||
for (Edge edge : edges) {
|
||||
@SuppressWarnings("rawtypes")
|
||||
|
|
Loading…
Reference in New Issue