jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shepy <vladosep...@yahoo.com>
Subject Re: How to add lock tokens
Date Fri, 31 Aug 2007 08:44:47 GMT

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.

Bye.


Paco Avila-2 wrote:
> 
> El jue, 30-08-2007 a las 05:16 -0700, shepy escribió:
>> Hi,
>> 
>>    I'm using open scoped locks. User should lock the node, log-out and
>> then
>> log-in and be able to unlock the node (if the lock was placed by him in
>> the
>> first place). Till now i came up with one solution: Store users lock
>> tokens
>> in filesystem and add the tokens upon creating new session. I don't like
>> it
>> because i need to extend RepositoryImpl. Is there some other, more
>> elegant
>> solution? 
>> 
> 
> Perhaps I missunderstood your problem, but you can add lock tokens to a
> user session easyly:
> 
> session.addLockToken(lockToken);
> 
> 
> -- 
> Paco Avila <pavila@git.es>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-lock-tokens-tf4353897.html#a12422813
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message