jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Re: modifying a versionable node
Date Thu, 08 Jun 2006 09:06:45 GMT
El jue, 08-06-2006 a las 10:51 +0200, Tobias Bocanegra escribió:
> > > 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.

Yes, I'm reading this chapters but I didn't understant well the
repository behaviour with the previous two user case.

Thanks again.
-- 
Paco Avila <pavila@git.es>


Mime
View raw message