You will get only the nodes on which the user has read access.
Check the catalog portlet, it does what you are trying to do
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067707#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...