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 Thu, 17 Sep 2009 14:44:08 GMT

Hello,

Can you have some pointers or line of codes on proper way to versioned a
file? im little bit confused now.

Thanks a lot.
Cheers.


Alexander Klimetschek wrote:
> 
> On Thu, Sep 17, 2009 at 07:34, freak182 <eman.nollase@gmail.com> wrote:
>>  Node childNode = rootNode.getNode(baseVersion);
>>  childNode.checkout();
>>  childNode.setProperty(JcrConstants.JCR_FROZENNODE, fileStream);
>>
>> javax.jcr.nodetype.ConstraintViolationException: no matching property
>> definition found for {http://www.jcp.org/jcr/1.0}frozenNode
>>        at
>> org.apache.jackrabbit.core.nodetype.EffectiveNodeType.getApplicablePropertyDef(EffectiveNodeType.java:768)
> 
> It's called jcr:frozenNode because it's meant to be a node and not a
> property... Anyway, this node is created as the subnode of the Version
> node after checkin, ie. if you retrieve a version and want to access
> the original node, you have to get the jcr:frozenNode child of the
> version node. This is because the version needs its own metadata which
> is stored directly on the version node.
> 
> This node will always be read-only.
> 
> Regards,
> Alex
> 
> -- 
> Alexander Klimetschek
> alexander.klimetschek@day.com
> 
> 

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


Mime
View raw message