jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From freak182 <eman.noll...@gmail.com>
Subject Re: Help on versioning
Date Fri, 18 Sep 2009 05:15:41 GMT

Hello Alex,

thanks, it works...my problem is to get the each versions and display each
image version.

jackrabbit rocks!

cheers.


Alexander Klimetschek wrote:
> 
> On Thu, Sep 17, 2009 at 16:44, freak182 <eman.nollase@gmail.com> wrote:
>> Can you have some pointers or line of codes on proper way to versioned a
>> file? im little bit confused now.
> 
> http://wiki.apache.org/jackrabbit/ExamplesPage
> 
> For overwriting the data of your existing nt:file node, simply do
> 
> file.checkout();
> file.getNode("jcr:content").setProperty("jcr:data", inputStream);
> // maybe update jcr:lastModified etc.
> file.save();
> file.checkin();
> 
> If you want to change existing versions (because I noted you did
> rootNode.getNode(baseVersion))  - that's not possible, versions are
> read-only.
> 
> Regards,
> Alex
> 
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Help-on-versioning-tp25469946p25503225.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message