return result;
}
+ @Override
+ public UpdateResult createChildFeatureNode(FeatureNode node, Feature featureChild){
+ Feature feature = (Feature) termService.save(featureChild);
+ return addChildFeatureNode(node, feature);
+ }
+
@Override
public UpdateResult addChildFeatureNode(FeatureNode node, Feature featureChild){
- UpdateResult result = new UpdateResult();
FeatureNode childNode = FeatureNode.NewInstance(featureChild);
+ UpdateResult result = new UpdateResult();
node.addChild(childNode);
+ save(childNode);
result.addUpdatedObject(node);
+ result.setCdmEntity(childNode);
return result;
}
if(parent!=null){
result.addUpdatedObject(parent);
}
- result.setCdmEntity(targetNode.getFeatureTree());
+ result.setCdmEntity(movedNode);
return result;
}