cancel
Showing results for 
Search instead for 
Did you mean: 

Get noderef userhome subspace

redbull
Champ in-the-making
Champ in-the-making
Hi, this is my Alfresco spaces structure:
- Company Home
— Space_1
— Space_2
— User Homes
——- user1_space
——- user2_space
——- user3_space
———- user3_subspace1
———- user3_subspace2

In my java bean I need to get "user3_subspace1" noderef.
How can I get it?  The only element that I have is user3_space noderef.

I tried to build the path string for a searchService.query using XPATH/LUCENE but I'm a little confused…
string_query = "app:company_home/app:user_homes/…………"???

Thanks!
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
redbull,

The node browser gives you wings! Smiley Happy It's a great tool for figuring stuff like this out. There is a node browser in the Explorer client and one in Share (starting in 3.4? or was it 4.0?).

In any case, navigate to the node in question and you can see its path. For example, in your case, the node in question is at:

app:company_home/app:user_homes/cm:user3_space/cm:user3_subspace1

You can also use the node browser to test your AlfrescoFTS, Lucene, and CMIS queries, which is quite handy.

Jeff
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.