Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 83184 invoked from network); 3 Feb 2009 18:33:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Feb 2009 18:33:35 -0000 Received: (qmail 26978 invoked by uid 500); 3 Feb 2009 18:33:34 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 26958 invoked by uid 500); 3 Feb 2009 18:33:34 -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 26947 invoked by uid 99); 3 Feb 2009 18:33:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Feb 2009 10:33:34 -0800 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: domain of aklimets@day.com designates 207.126.148.181 as permitted sender) Received: from [207.126.148.181] (HELO eu3sys201aog001.obsmtp.com) (207.126.148.181) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 03 Feb 2009 18:33:25 +0000 Received: from source ([74.125.46.31]) by eu3sys201aob001.postini.com ([207.126.154.11]) with SMTP ID DSNKSYiN3uSKNGoYGzM6izXuvmIGNNkTJJVu@postini.com; Tue, 03 Feb 2009 18:33:04 UTC Received: by yw-out-2324.google.com with SMTP id 3so909394ywj.7 for ; Tue, 03 Feb 2009 10:33:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.100.14.2 with SMTP id 2mr291107ann.13.1233685981004; Tue, 03 Feb 2009 10:33:01 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Feb 2009 19:33:00 +0100 Message-ID: Subject: Re: Permissions in JackRabbit 1.5 From: Alexander Klimetschek To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jan 30, 2009 at 5:08 PM, Miros=B3aw Ochodek wrote: > Could you please give me a reference to materials about permissions > management in JR 1.5 (something more comprehensible than what is in > configuraiton section on page). There is not much documentation yet. A starting point is the original issue [1]. If you plan to write your custom authorization, you should also search the users and dev mailing lists, eg. at http://jackrabbit.markmail.org > I have seen that there is yet another interface - SecurityManager. I know > that authorization should be handled externally with the use of own > implamation of AccessManager and LoginManager. Starting with JR 1.5, the default implementation is based on storing users and ACLs in the repository, so there is no need to implement your own classes for that purpose (except if you want to do it differently). Citing JCR-1171: Default Implementation =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The Default Implementation uses the Repository itself to store its security data. The Users are stored within a dedicated workspace. The ACL are attached to the Nodes they relate to. The ACLs are inherited along the Item-Hierarchy. The Principals are taken from the Authorables. > My question is what SecurityManager is for? The security manager technically manages the auhtorization part of the security implementation, ie. the AccessManager, PrincipleManager and UserManager, it's not directly mapped to functionality (I hope I got it right ;-)). See the interface for that class [2]. There are two implementations, the DefaultSecurityManager [3] (the default impl mentioned above) and the SimpleSecurityManager [4]. [1] http://issues.apache.org/jira/browse/JCR-1171 [2] http://svn.apache.org/repos/asf/jackrabbit/tags/1.5.0/jackrabbit-core/s= rc/main/java/org/apache/jackrabbit/core/security/JackrabbitSecurityManager.= java [3] http://svn.apache.org/repos/asf/jackrabbit/tags/1.5.0/jackrabbit-core/s= rc/main/java/org/apache/jackrabbit/core/DefaultSecurityManager.java [4] http://svn.apache.org/repos/asf/jackrabbit/tags/1.5.0/jackrabbit-core/s= rc/main/java/org/apache/jackrabbit/core/security/simple/SimpleSecurityManag= er.java Regards, Alex --=20 Alexander Klimetschek alexander.klimetschek@day.com