jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand LEGA <legabertr...@yahoo.fr>
Subject Re: Getting nodes from a multivalued reference property [solved]
Date Wed, 20 Apr 2005 12:11:42 GMT

Edgar Poce wrote:

> Hi Bertrand
>
> Bertrand LEGA wrote:
>
>> The code is very simple :
>>
>>   Property myProperty = // some initialization code here
>>   Value[] values = myProperty.getValues() ;
>>
>> The surprising part is that there is no getNode() method in the Value 
>> class.
>> How am I supposed to retreive my nodes ?
>
>
> I think that for each value in the array you must get the uuid of the 
> referenced node:
> e.g. (not tested)
> String uuid = value.getString() ;
> Node referencedNode = session.getNodeByUUID(uuid);
>
That works for me.

Tanks for your help.
Bertrand.

> regards
> edgar
>
>>
>> Do you have any idea ?
>>
>> Cheers,
>> Bertrand.
>>
>> This message contains information that may be privileged or 
>> confidential and is the property of the Capgemini Group. It is 
>> intended only for the person to whom it is addressed. If you are not 
>> the intended recipient,  you are not authorized to read, print, 
>> retain, copy, disseminate,  distribute, or use this message or any 
>> part thereof. If you receive this  message in error, please notify 
>> the sender immediately and delete all  copies of this message.
>>
>>
>

Mime
View raw message