Get noderef userhome subspace

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2013 05:48 AM
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!
- 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!
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2013 04:42 PM
redbull,
The node browser gives you wings!
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
The node browser gives you wings!

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
