setReferenceTarget

abstract fun setReferenceTarget(sourceId: Long, role: String, target: INodeReference?): ITree

Sets the reference target of the given node for the given reference role to the specified target.

Return

tree with changes

Parameters

sourceId

id of the source node

role

reference role, for which the target should be set

target

the new reference target


open fun setReferenceTarget(sourceId: Long, role: String, targetId: Long): ITree