cancel
Showing results for 
Search instead for 
Did you mean: 

Association value and Reference object

xsp
Champ in-the-making
Champ in-the-making
Hi,

I have got a custom type that has an pier association with another type. When I get the value for the association field, the value is like:

workspace://SpacesStore/7f6585f8-8758-4dec-33b2-4f5ac345645

Then, how can I retrieve the referenced objec using a Reference? …as it would need either the uuid or the path? …do I need to parse myself the returned value to just get the uuid?

Thanks,
Xavi
3 REPLIES 3

smicyk
Champ in-the-making
Champ in-the-making
Hi,

which api do you use? Webservice or Java API?

Thanks

xsp
Champ in-the-making
Champ in-the-making
I'm using webservices.

smicyk
Champ in-the-making
Champ in-the-making
Hi,

probably you need something like this:


RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();

Store store = new Store("workspace", "SpacesStore");
Node[] nodes = repositoryService.get(new Predicate(new Reference[] {new Reference(store, "7f6585f8-8758-4dec-33b2-4f5ac345645", null) }, store, null));


Of course the number of returned nodes depends on number of references in predicate.

Thanks