jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikolay Georgiev <georgiev.niko...@gmail.com>
Subject Re: Jackrabbit Metadata + Inheritance
Date Thu, 01 Sep 2011 07:55:39 GMT
Hi Stefan,

what would be the advantage of meta data saved as Mixin over just a 
node. Can I search Mixings thourh XPath?

Thanks,
Nikolay

On 08/31/2011 10:40 AM, Stefan Guggisberg wrote:
> hi nikolay
>
> On Tue, Aug 30, 2011 at 10:29 AM, Nikolay Georgiev
> <georgiev.nikolay@gmail.com>  wrote:
>> Hello,
>>
>> I would like to implement 2 things and maybe you can give me some
>> advice how to do it:
>>
>> 1) I want to add Metadata to every node.
>> Possible solution: add a node called metaData and and the metaData as
>> properties belonging to this node. What do you think? Or are there
>> better ways?
> you could e.g. define  a custom mixin node type and assign it to specific nodes
> by calling Node.addMixin().
>
>> 2) Some specific nodes should inherit other nodes, in a way that the
>> metaData in the super node is also metaData in the subnode. How can I
>> implement this?
> if the 'super node' is always a parent of the 'derived' node you could
> write some custom code which does traverse the parent hierarchy until it
> finds the 'meta data'.
>
> cheers
> stefan
>
>> Thank you,
>>
>> Nikolay
>>

Mime
View raw message