jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Bobby <dvbob...@yahoo.com>
Subject Re: Locallized labels
Date Sun, 06 Aug 2006 14:23:56 GMT
JavaJ,

This is an interesting question, did you get a
solution to this question?

Dave

--- JavaJ <ponfar99@yahoo.com> wrote:

> 
> For each node, I'd like to define properties that
> basically collections of
> label-locale pairs.  In Java, I would do something
> like this:
> 
> class LocalizedLabel {
>   String label;
>   String locale;
> }
> 
> class MyNode {
>   LocalizedLabel[] localizedNames;
>   LocalizedLabel[] localizedDescriptions;
>   ..
> 
> }
> 
> Is there a way to do this in Jackrabbit/JSR-170? 
> The closest I could come
> up with making the localized labels child nodes.  
> Something like this:
> 
> [cm:localizedLabel] >
> nt:base,mix:referenceable,mix:lockable
> - cm:locale (string) = 'en' mandatory autocreated
> copy
> - cm:label (string) mandatory copy 
> 
> [cm:MyNode] >
> nt:base,mix:referenceable,mix:versionable
> - cm:definitionName mandatory
> - cm:model mandatory
> - cm:shared (boolean) = 'false'
> + cm:title (cm:localizedLabel) = cm:localizedLabel
> copy 
> + cm:description (cm:localizedLabel) =
> cm:localizedLabel copy 
> 
> But this is kind of awkward because title and
> description should be
> properties on the node, not child nodes.  Has anyone
> come up with a better
> way on modeling this problem?
> 
> Thanks.
> -- 
> View this message in context:
>
http://www.nabble.com/Locallized-labels-tf2054152.html#a5659659
> Sent from the Jackrabbit - Users forum at
> Nabble.com.
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Mime
View raw message