jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kennedy <da...@us.ibm.com>
Subject Finding copies of nodes
Date Thu, 22 Jun 2006 18:26:00 GMT
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?

David
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message