jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: Multiple inheritance
Date Wed, 16 Aug 2006 19:02:56 GMT
> Hi;
> If this question was already answered, my apologies, but I don't find such answer and
need to know if Jackrabbit is ready for multiple inheritance.
> For instance, if I have declared the following structure of node types:
>
>       nt:base
>             |
>       node:base
>       ____|________________________
>       |                      |                        |
>    node:file     node:folder       node:added
>                              |______________|
>                                         |
>                                   node:final
>
> So, the xml for the node:final would be like:
>
> <nodeType name="node:final" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
>         <supertypes>
>                        <supertype>node:folder</supertype>
>                        <supertype>node:added</supertype>
>         </supertypes>
> ...
> </nodeType>
>
> Will it work in Jackrabbit? I saw some declarations that use two supertypes but one of
them is mixin, is the same thing putting more than one supertype of custom node type?
yes. this should work.

> If it is ok for Jackrabbit, so when I query for node:base I will get node:final too?
yes.

regards, toby
-- 
-----------------------------------------< tobias.bocanegra@day.com >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Mime
View raw message