From dev-return-7629-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Jun 29 16:23:36 2006 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 84830 invoked from network); 29 Jun 2006 16:23:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 16:23:36 -0000 Received: (qmail 45155 invoked by uid 500); 29 Jun 2006 16:23:35 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 44906 invoked by uid 500); 29 Jun 2006 16:23:34 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 44897 invoked by uid 99); 29 Jun 2006 16:23:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 09:23:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.85.152.61] (HELO tamise.nuxeo.com) (212.85.152.61) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 09:23:33 -0700 Received: from [192.168.2.139] (gateway.nuxeo.com [213.56.215.224]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by tamise.nuxeo.com (Postfix) with ESMTP id D329D5DED4 for ; Thu, 29 Jun 2006 18:23:11 +0200 (CEST) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <123401EF-4B57-4A93-8545-4182A30B5DCA@nuxeo.com> Content-Transfer-Encoding: 7bit From: Florent Guillaume Subject: Re: Restoring from version Date: Thu, 29 Jun 2006 18:23:07 +0200 To: dev@jackrabbit.apache.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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