jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Get versioned file data
Date Thu, 01 Mar 2007 16:47:45 GMT

On 3/1/07, Grizz Lee <grizz_lee@hotmail.com> wrote:
> I'm having trouble to get the file data of a specific version of a versioned file
> from the repository.
> [...]
> - Get the version history of jcr:content
> - Get the version with the correct version name from the history
> - Get the property jcr:data of the version throws a javax.jcr.PathNotFoundException

The frozen contents of the node at checkin time are stored as the
jcr:frozenNode child of the version node. Thus you can access the
versioned contents of the file as jcr:frozenNode/jcr:data.


Jukka Zitting

View raw message