You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Florent Guillaume <fg...@nuxeo.com> on 2006/06/29 18:17:02 UTC

Restoring from version

I have a node D which has versions V1, V2 in its version history.
I have a node P (proxy) which has a reference to V2.
I then delete D from my workspace. There is no node with D's UUID  
anymore.
 From P and the reference to V2, how can I restore D at its V2 state?
I'm not finding any API that would help me do this directly.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg@nuxeo.com




Re: Restoring from version

Posted by Florent Guillaume <fg...@nuxeo.com>.
On 29 Jun 2006, at 18:17, Florent Guillaume wrote:
> I have a node D which has versions V1, V2 in its version history.
> I have a node P (proxy) which has a reference to V2.
> I then delete D from my workspace. There is no node with D's UUID  
> anymore.
> From P and the reference to V2, how can I restore D at its V2 state?
> I'm not finding any API that would help me do this directly.

Well of course 2 min after sending this I finally realized we have:
  restore(Version version, String relPath, boolean removeExisting)

Which does it... sorry.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   fg@nuxeo.com