public function moveAction(Node $node, Node $targetNode, $position)
{
$node = $this->nodeOperations->move($node, $targetNode, $position);
if ($this->request->getHttpRequest()->isMethodSafe() === false) {
$this->persistenceManager->persistAll();
}
$data = array('newNodePath' => $node->getContextPath());
if ($node->getNodeType()->isOfType('Neos.Neos:Document')) {
$data['nextUri'] = $this->uriBuilder->reset()->setFormat('html')->setCreateAbsoluteUri(true)->uriFor('show', array('node' => $node), 'Frontend\\Node', 'Neos.Neos');
}
$this->view->assign('value', array('data' => $data, 'success' => true));
}