moveChild

abstract fun moveChild(newParentId: Long, newRole: String?, newIndex: Int, childId: Long): ITree

Moves a node within this tree.

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