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:
Luca Frosini 2017-11-17 15:26:49 +00:00
parent 99d0e8e04f
commit 72d9fe2059
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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")