Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 97949 invoked from network); 16 Aug 2010 17:03:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Aug 2010 17:03:54 -0000 Received: (qmail 75451 invoked by uid 500); 16 Aug 2010 17:03:54 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 75399 invoked by uid 500); 16 Aug 2010 17:03:53 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 75390 invoked by uid 99); 16 Aug 2010 17:03:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 17:03:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [217.24.201.138] (HELO mx01.innovations.de) (217.24.201.138) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Aug 2010 17:03:48 +0000 X-ASG-Debug-ID: 1281978206-1fe400b10000-L7RJYL X-Barracuda-URL: http://217.24.201.138:8000/cgi-bin/mark.cgi Received: from immpwamx01.innoimm.local (localhost [127.0.0.1]) by mx01.innovations.de (Spam Firewall) with ESMTP id A458C151D22 for ; Mon, 16 Aug 2010 19:03:26 +0200 (CEST) Received: from immpwamx01.innoimm.local ([192.168.18.25]) by mx01.innovations.de with ESMTP id LavSDd5NYsbiS9HN for ; Mon, 16 Aug 2010 19:03:26 +0200 (CEST) X-Barracuda-RBL-Trusted-Forwarder: 192.168.18.25 X-ASG-Whitelist: Client Received: from email.innoimm.local ([192.168.18.4]) by immpwamx01.innoimm.local with Microsoft SMTPSVC(6.0.3790.4675); Mon, 16 Aug 2010 19:03:04 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-ASG-Orig-Subj: AW: How to retrieve the node id in AccessManager of a removed node Subject: AW: How to retrieve the node id in AccessManager of a removed node Date: Mon, 16 Aug 2010 19:03:03 +0200 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to retrieve the node id in AccessManager of a removed node Thread-Index: Acs9YUFdfHYYlWWyQS+dUcD6ZrtiEwAAjsdA References: From: To: X-OriginalArrivalTime: 16 Aug 2010 17:03:04.0639 (UTC) FILETIME=[E44BD4F0:01CB3D64] X-Barracuda-Connect: UNKNOWN[192.168.18.25] X-Barracuda-Start-Time: 1281978206 X-Barracuda-Virus-Scanned: by Barracuda Spam Firewall at innovations.de Hi, our permissions are defined in a separate db scheme with its own = database tables. In these tables we reference only the node id of the = JCR nodes on which we have defined some own permissions because that id = is unique and is not changed when the node is renamed. When the user = removes a node we want to check the permission tables if the user is = allowed to do so. Therefore we need the uuid of the node that is being = deleted to check the permissions because we have to know what node is = deleted. Cheers, Sascha -----Urspr=FCngliche Nachricht----- Von: Alexander Klimetschek [mailto:aklimets@day.com]=20 Gesendet: Montag, 16. August 2010 18:37 An: users@jackrabbit.apache.org Betreff: Re: How to retrieve the node id in AccessManager of a removed = node On Mon, Aug 16, 2010 at 17:24, wrote: > we are implementing our own AccessManager that reflects our permission > constraints. These contraints depending all on the node id of the JCR > nodes. That works fine until we delete nodes and want to recover the > node id of the deleted node. When a node was deleted with = node.remove() > and after that the session was saved with session.save() we are unable > to access the node id (uuid) anymore. If the remove is persisted, why do you need to access the node id then? Your access manager should be able to cope with non-existing nodes then... Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com