You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by janandith jayawardena <ja...@gmail.com> on 2011/01/22 08:58:15 UTC
JCR-2859 - need some clarifications to provide a patch
Hi,
I'm working on submitting a patch to JCR-2859 - Make open scoped locks
recoverable. The solution I'm working on is as follows,
1. Store lock tokens when a node is locked using LockManager.
2. Add the locked tokens from the stored location to the session when
session is created if principal is AdminPrincipal.
3. Remove the lock token from the store when the node is unlocked using
admin session.
I would like to know the following,
1. Will there be any consequences in above solution ?.
2. What is the best place to store the lock tokens ? . (Right now I'm
thinking of saving as properties in a node /locktokens)
3. Any improvements, suggestions ?.
Best Regards,
Janandith