How can i get all childs of a node? Must i do a Recursive call to .getChildAssocs(nodeRef) ?
I want the deep listing! For example i have a folder who have 5 sub-folders and some files. That 5 sub-folders have sub-folders, and files; and so on! NodeService dont have methods who give the deep listing, for what i could see in the Api.
Yes, a PATH query with the double forward slash + asterisk will give you any children in any depth. But it will not be transactionally consistent as it relies on the search index which is asynchronously updated after changes occur. Also, a PATH query is traditionally one of the less performant selectors. An alternative is to use the ANCESTOR selector, which only requires the NodeRef of the folder for which you want to get all descendants. E.g. ANCESTOR:"workspace://SpacesStore/12345678". This avoids having to construct the path in the first place (which can be somewhat expensive depending on the depth of the root Folder, and avoid the reevaluation of the path by the index (path is fragmented and evaluated in various ways - front-to-back and back-to-front).
For examples about the ReST APIs please look at Alfresco 5.2. REST APIs. All operations will include permission checks as long as you do not explicitly disable them. ReST APIs typically do not support disabling permission checks via their parameters (unless you implement a custom API endpoint yourself with that feature).