Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 98193 invoked from network); 3 Sep 2007 15:21:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2007 15:21:20 -0000 Received: (qmail 53015 invoked by uid 500); 3 Sep 2007 15:21:13 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 53001 invoked by uid 500); 3 Sep 2007 15:21:13 -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 52992 invoked by uid 99); 3 Sep 2007 15:21:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 08:21:13 -0700 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: local policy) Received: from [81.19.98.213] (HELO eul0600252.eu.verio.net) (81.19.98.213) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 15:22:20 +0000 Received: from [192.168.1.3] (154.106.219.87.dynamic.jazztel.es [87.219.106.154]) by eul0600252.eu.verio.net (Postfix) with ESMTP id D015953B5C for ; Mon, 3 Sep 2007 17:20:24 +0200 (CEST) Subject: Re: How to add lock tokens From: Paco Avila To: users@jackrabbit.apache.org In-Reply-To: <12461651.post@talk.nabble.com> References: <12405970.post@talk.nabble.com> <1188540659.6446.1.camel@antares> <12422813.post@talk.nabble.com> <1188817051.5215.8.camel@antares> <12461651.post@talk.nabble.com> Content-Type: text/plain; charset=utf-8 Date: Mon, 03 Sep 2007 17:20:39 +0200 Message-Id: <1188832839.18504.0.camel@antares> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org El lun, 03-09-2007 a las 06:25 -0700, shepy escribió: > Hi, > This is something that i had in mind. But to do this i need to > intercept somewhere session creation and add lock tokens to session. Since i > use remote repository i need to change rmi SPI code distributed with > jackrabbit and i don't want to do this. Other solution is to store lock > token as property (with document node) and control access to this property > via access manager. OpenKM is an OpenSource project hosted at SourceForge, you can see the code in CVS. > > Paco Avila-2 wrote: > > > > El vie, 31-08-2007 a las 01:44 -0700, shepy escribió: > >> Hi, > >> > >> The question is where to execute session.addLockToken(lockToken) and > >> also > >> how to obtain lock tokens for specific user. And finnaly how to do this > >> without changing jackrabbit specific code. > > > > In OpenKM we store the lockTokens in the repository when an user > > logouts, and performs an addLockToken() in the login process. > > -- > > Paco Avila > > > > > > > -- Paco Avila