Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 30186 invoked from network); 12 Jun 2005 18:51:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jun 2005 18:51:13 -0000 Received: (qmail 6985 invoked by uid 500); 12 Jun 2005 18:51:11 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 6968 invoked by uid 99); 12 Jun 2005 18:51:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of tobias.strasser@gmail.com designates 64.233.184.200 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.200) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 12 Jun 2005 11:51:09 -0700 Received: by wproxy.gmail.com with SMTP id 69so987552wri for ; Sun, 12 Jun 2005 11:51:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gL5fXsI73GgKBTQGKCvIaL+XPU6hXvsOtQfdkrSKE+7WzNuQ01axFOAB7//8Ey4T76SzX44J2bUaiBdexgKqQWy4O1QfEnEt92r0ENRPB639cxu/te/x1Q6endDfKoON8dA+Q+3mnA1qoGv9N+DYpkae1C8g1XdnOoaOv+1Y8o8= Received: by 10.54.27.40 with SMTP id a40mr2334899wra; Sun, 12 Jun 2005 11:51:07 -0700 (PDT) Received: by 10.54.63.3 with HTTP; Sun, 12 Jun 2005 11:51:07 -0700 (PDT) Message-ID: <8be731880506121151400825fe@mail.gmail.com> Date: Sun, 12 Jun 2005 20:51:07 +0200 From: Tobias Strasser Reply-To: tobias.strasser@day.com To: jackrabbit-dev@incubator.apache.org Subject: Re: Getting VersionHistory after removing of a Node In-Reply-To: <42AAFEC4.4080508@anyware-tech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42A9B4D4.1050806@anyware-tech.com> <42AAFEC4.4080508@anyware-tech.com> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > He may want to purge intermediate work versions of documents between > each release (VersionGistory.removeVersion() is perfect for that), but > also delete a document *and all its past revisions*, due to some legal > requirements. For this last point, it seems JCR lacks a few > functionnalities, as you also point out. hi cederic, since the creation of a VersionHistory is triggered by the creation of a mix:versionable node, the removal should happen automatically, as soon as no references to that version histroy exist anymore. this is the case, when all mix:versionable nodes (in all workspaces) belonging to that VH are deleted, and all the versions in the VH are removed i.e. only the jcr:rootVersion is left. IMO, it is then safe to delete the version history aswell. i created a jira issue for this [JCR-134]. cheers, tobi --=20 ------------------------------------------< tobias.strasser@day.com >--- Tobias Strasser, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97=20 -----------------------------------------------< http://www.day.com >---