On Jan 21, 2008 11:00 AM, Sridhar Raman <[EMAIL PROTECTED]> wrote: > Is there any command for me to clone/copy a node within the same workspace? > I tried out the Workspace.copy method, but it makes a copy of only persisted > nodes. Unfortunately, what I need is a copy of the transient node.
there's no api support for copying/cloning transient items. however, you could e.g. use javax.jcr.Session#exportSystemView & importXML to accomplish this. alternatively, you could do the same by just programmatically traversing the source tree and create new nodes/properties as required. cheers stefan > > Any ideas? > > Thanks in advance, > Sridhar >
