jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Re: How to add lock tokens
Date Fri, 31 Aug 2007 06:10:59 GMT
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>


Mime
View raw message