Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 95471 invoked from network); 2 Mar 2010 08:58:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 08:58:43 -0000 Received: (qmail 44399 invoked by uid 500); 2 Mar 2010 08:58:40 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 44378 invoked by uid 500); 2 Mar 2010 08:58:40 -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 44369 invoked by uid 99); 2 Mar 2010 08:58:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 08:58:40 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anchela@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 02 Mar 2010 08:58:30 +0000 Received: from source ([209.85.220.211]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKS4zTIAgTvOP4LbrxNZRrO0OugGFjWOcY@postini.com; Tue, 02 Mar 2010 08:58:10 UTC Received: by fxm3 with SMTP id 3so19325fxm.18 for ; Tue, 02 Mar 2010 00:58:08 -0800 (PST) Received: by 10.87.45.35 with SMTP id x35mr4547986fgj.4.1267520288245; Tue, 02 Mar 2010 00:58:08 -0800 (PST) Received: from bslm-074.corp.day.com (bsl-rtr.day.com [62.192.10.254]) by mx.google.com with ESMTPS id d6sm2904614fga.27.2010.03.02.00.58.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 00:58:07 -0800 (PST) Message-ID: <4B8CD321.5050605@day.com> Date: Tue, 02 Mar 2010 09:58:09 +0100 From: Angela Schreiber User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: AccessManager changes in Jackrabbit 1.5 References: <8f70391003010846j34ecb8a2jdcd82d79da6d3ec4@mail.gmail.com> In-Reply-To: <8f70391003010846j34ecb8a2jdcd82d79da6d3ec4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Paco Avila wrote: > There is a deprecated method > > - isGranted(ItemId id, int permissions) > > And two new: > > - isGranted(Path absPath, int permissions) > - isGranted(Path parentPath, Name childName, int permissions) > > I have some doubs: When are called the new method and when the old > one? In my experiments, the only method called is the old one, so I am > not sure if I need to implement the new one. in jackrabbit-core i replaced all calls to the deprecated method with a few exceptions. the problem with the deprecated method is that it uses the deprecated constants from AccessManager and it needs to convert the itemID to a path before passing it over to the access control provider. > Another question: wich is the difference between isGranted(Path > absPath, int permissions) and isGranted(Path parentPath, Name > childName, int permissions) ? I mean, when is invoked either one? the second is just a convenience method. regards angela