jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: modifying a versionable node
Date Thu, 08 Jun 2006 08:51:07 GMT
> > the checkin/checkout process is the principal mechanism in versioning.
> > for example, you can't modify a file directly on a SVN server, you
> > need to do a checkout first.
>
> If the user A performs a checkout(), the user B can modify this node? If
> this is true, the user B can do a checkin before the user commits its
> changes.

versioning is not the same as locking. when a 'user' (i.e. the
session) does a checkout, the node is not locked, or owned by that
user. when the node is checkedin, it's content gets copied into the
version store and it becomes read-only. if you need locking, use
Node.lock().

maybe the chapters 8.2 (versioning) and 8.4 (locking) of the jsr170
specification could also help you.


-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message