jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar Poce <edgarp...@gmail.com>
Subject Re: Getting nodes from a multivalued reference property
Date Thu, 14 Apr 2005 16:51:42 GMT
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);


> 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.

View raw message