jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <fmesc...@gmail.com>
Subject Re: Is there a way to set lockOwner
Date Thu, 02 Aug 2007 10:37:32 GMT

> In this scenario if i checkout any node the lockowner is always the
> "superuser" i.e session.getUserId()  .Is there a way to set the lockowner
> explicitly.

I am not actually sure, what you are referring to: Locking or
versioning. In case of Versioning, there is no lock owner, as checkout
only sets the checkedOut property. In case of Locking, the specification
is quite clear in section 8.4.4 Lock owner, that the lock owner is set
to the value of Session.getUserID(). There is now way to change this.

You are of course free to create a property where you set your
application level user ID in case of locking. But this is outside of the
spec and purely application level. So your are also responsible to
correctly manage such an added property.


View raw message