On 11.2.15 4:29 , Andrei Dulvac wrote:
Not a biggie, but it's odd that doesn't exist on the NodeBuilder or
something.

You can use NodeBuilder#setChildNode(String, NodeState) to efficiently copy a node. Under the hood this method uses value sharing to save space and time.

Note however, that this method doesn't respect JCR semantics and thus can't be used to implement javax.jcr.Workspace#copy(String, String) and the like.

Michael

Reply via email to