jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seidel. Robert" <Robert.Sei...@aeb.de>
Subject AW: Question about child nodes of a versioned node
Date Thu, 17 Feb 2011 12:16:03 GMT

the OPV for B is VERSION.

I've found this in the specification (C is a child node of a versioned node):

Under full versioning, if C is mix:versionable, then a special
nt:versionedChild node with a reference to the version history of C is
substituted in place of C as a child of the frozen node. The nt:versionedChild node has the
same name as C and, in a repository that supports orderable child nodes, the relative ordering
of any such child
node C is preserved. The definition of nt:versionedChild is:
- jcr:childVersionHistory (REFERENCE) mandatory
autocreated protected ABORT
< 'nt:versionHistory'
The property jcr:childVersionedHistory points to the nt:versionHistory of C.

My question now is how can I access this child node from the parent frozen node?

I fear I have to do something like


Is there an easier way to do so?

Regards, Robert

-----Urspr√ľngliche Nachricht-----
Von: Alexander Klimetschek [mailto:aklimets@adobe.com] 
Gesendet: Donnerstag, 17. Februar 2011 11:46
An: users@jackrabbit.apache.org
Betreff: Re: Question about child nodes of a versioned node

On 17.02.11 11:36, "Seidel. Robert" <Robert.Seidel@aeb.de> wrote:
>I've a node structure like this:
>A (top node)
>  B (nt:file)
>    C (nt:resource)
>The top node A is versionable (has the mixin type), the others have no
>mixin type.
>I've checked out and in the node A to create some versions and the
>version history for A shows correctly 3 versions.
>If I inspect a frozenNode of a version, than all properties are correct
>But if I look below the frozenNode, then I find nodes for B, but not for
>C and the B nodes lack of all properties, they have only two properties:
>Jcr:childVersionHistory | <some UUID>
>Jcr:primaryType | nt:versionedChild
>How can I get the the frozenNodes with all original set properties for B
>and C?

How "far" the subtree is included in the version depends on the
on-parent-version (OPV) setting of the involved node types.



Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel

View raw message