Hi all, We are developing an application containing a GUI which allows users to manipulate nodes in a JCR repository. We're wondering if there is a recommended way of restoring a node that has been deleted or removed. For example, if a user wishes to undo the deletion of a node. We've come across two different approaches, but neither of them seem to be the solution we're looking for.
The first approach was in a post ( http://www.nabble.com/restoring-removed-node-td8182449.html#a8203066) and it suggests using a 'Recycle Bin' type node to store the parent node path/uuid. The problem with this method is that you are left with the decision of when/how to clean up the nodes in the 'Recycle Bin'. The other approach we've been using is to store the state of the node just before deletion using Session.exportSystemView and to bring it back using Session.importXML. The problem with this method is that, after an importXML, the restored node is checked out with base version set to rootVersion. The expectation is that the user will have to check this node back in and the version history will branch each time this happens. So essentially, what we're looking for is a way to recreate a node with the same UUID without affecting the version history or storing a copy of it in another branch of the repository. Is this possible?
