Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 85266 invoked from network); 7 Sep 2006 09:34:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2006 09:34:23 -0000 Received: (qmail 83407 invoked by uid 500); 7 Sep 2006 09:34:22 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 83370 invoked by uid 500); 7 Sep 2006 09:34:22 -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 83361 invoked by uid 99); 7 Sep 2006 09:34:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 02:34:22 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FORGED_HOTMAIL_RCVD2,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 02:34:21 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GLGGk-0002Ro-At for dev@jackrabbit.apache.org; Thu, 07 Sep 2006 02:33:58 -0700 Message-ID: <6187272.post@talk.nabble.com> Date: Thu, 7 Sep 2006 02:33:58 -0700 (PDT) From: J Kuijpers To: dev@jackrabbit.apache.org Subject: Re: getting the latest version of a checkedout node In-Reply-To: <8be731880609061021j493021cahbafd9b9b5d9d7a61@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: japquip@hotmail.com References: <6173979.post@talk.nabble.com> <8be731880609061021j493021cahbafd9b9b5d9d7a61@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I don't think so. This is actually restoring the node, so the current node is overwritten with the older version. I just want to read the latest version of a node before it was checked out. In my application users are reading nodes, the checkedout state of a node shouldn't be visable for the users. When a user has checked out a node and is changing it, all other users should get the latest version before it was checked out, when they request the node. Only when the node is checked in again they get the one with changes. Tobias Bocanegra wrote: > > you're probably looking for: > > Node.restore(node.getBaseVersion()); > > regards, toby > > On 9/6/06, J Kuijpers wrote: >> >> Hello, when the property jcr:isCheckedOut of a node is true, I want to >> retrieve this node without the changes which are possibly made during the >> checkout state. So I want to retrieve the node as it was, when it was >> last >> checked in. Only when the checkedout node is checkedin the changes are >> final >> so then I want to retrieve the node with ithe changes. >> >> Is this possible? If so, how would I achieve this? I am looking at the >> frozennode property, am I on the right track? >> -- >> View this message in context: >> http://www.nabble.com/getting-the-latest-version-of-a-checkedout-node-tf2227841.html#a6173979 >> Sent from the Jackrabbit - Dev forum at Nabble.com. >> >> > > > -- > -----------------------------------------< tobias.bocanegra@day.com >--- > Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel > T +41 61 226 98 98, F +41 61 226 98 97 > -----------------------------------------------< http://www.day.com >--- > > -- View this message in context: http://www.nabble.com/getting-the-latest-version-of-a-checkedout-node-tf2227841.html#a6187272 Sent from the Jackrabbit - Dev forum at Nabble.com.