adapted to changes in service layer (TaxonTreeService), fixed some issues with editin...
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / operations / MoveTaxonOperation.java
index 52139996748c4ca897396c3d5dec41491ea66385..4fa470d405cd9d4146855b89b23ee21fa009be6e 100644 (file)
@@ -98,10 +98,11 @@ public class MoveTaxonOperation extends AbstractPostOperation {
                // get a new conversation\r
                ConversationHolder conversation = CdmStore.NewTransactionalConversation();\r
                // find the node\r
-               TaxonNode taxonNode = CdmStore.getTaxonService().getTaxonNodeByUuid(taxonNodeUuid);\r
-               // find the new parent node\r
-               ITreeNode newParentTreeNode = CdmStore.getTaxonService().getTreeNodeByUuid(newParentTreeNodeUuid);\r
+               TaxonNode taxonNode = CdmStore.getTaxonTreeService().getTaxonNodeByUuid(taxonNodeUuid);\r
                \r
+               // find the new parent node\r
+               ITreeNode newParentTreeNode = CdmStore.getTaxonTreeService().getTreeNodeByUuid(newParentTreeNodeUuid);\r
+               // add node to new parent\r
                TaxonNode newChild = newParentTreeNode.addChildNode(taxonNode, newParentTreeNode.getReference(), newParentTreeNode.getMicroReference(), taxonNode.getSynonymToBeUsed());\r
                \r
                // commit the conversation\r