moveChild

open override fun moveChild(newParentId: Long, newRole: String?, newIndex: Int, childId: Long)

Moves a node within the tree of this transaction.

Parameters

newParentId

id of the new parent node

newRole

new role within the parent node

newIndex

index within the role

childId

id of the node to be moved

Throws

when trying to move the root node or if the node specified by newParentID is a descendant of the node specified by childId