jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Finding copies of nodes
Date Fri, 23 Jun 2006 08:09:21 GMT
On 6/22/06, David Kennedy <davek@us.ibm.com> wrote:
> I have a parent node of a nodetype with a childNodeDefinition that allows
> same-name siblings.  I want to copy one of the children of the parent node
> to the same parent (with the same name...just different index).  The copy
> method does not return the copied node.  Is there a better way to get the
> copy other than the following?
> lock parent
> get parent child nodes
> get size of child nodes....storing last index
> copy child to same parent
> get node at stored index + 1
> unlock parent
> Why doesn't copy return the copied node?  Another candidate for an
> extension?

this issue is already addressed in jsr-283:


> David

View raw message