/**
* @author n.hoffmann
- * @created Aug 5, 2010
+ * @since Aug 5, 2010
* @version 1.0
*/
@Service
}
dao.delete(node);
+ result.addDeletedObject(node);
if(parent!=null){
result.addUpdatedObject(parent);
}
if (config.isDeleteElement()){
feature = node.getFeature();
termService.delete(feature.getUuid());
+ result.addDeletedObject(feature);
}
}
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);
- save(childNode);
+ UpdateResult result = new UpdateResult();
node.addChild(childNode);
+ save(childNode);
result.addUpdatedObject(node);
+ result.setCdmEntity(childNode);
return result;
}
targetNode.addChild(movedNode, position);
}
result.addUpdatedObject(targetNode);
- saveOrUpdate(targetNode);
- saveOrUpdate(movedNode);
if(parent!=null){
result.addUpdatedObject(parent);
- saveOrUpdate(parent);
}
- result.setCdmEntity(targetNode.getFeatureTree());
+ result.setCdmEntity(movedNode);
return result;
}