Hello,
how can i use API
GET /alfresco/api/-default-/public/alfresco/versions/1/nodes/{nodeId}/children
to show only my files?
An what if i don't have permission to show folder in sites/Test/documentLibrary/Documents, but someone moved there files where i am as Collaborator, how can i show files from this folder, without managing permissions on the folder?
Thanks
Solved! Go to Solution.
These requirements are where you would switch from the regular "children" navigation / listing operation and use the "search" API instead. This would allow you to combine a condition for "my files", which in AFTS query expression would look like this:
(=cm:creator:"myUserName" AND NOT PROPERTIES:"{http://www.alfresco.org/model/content/1.0}owner") OR =cm:owner:"myUserName"
..with the condition of "in folder X", which in AFTS query expression would be:
PARENT:"folderNodeRef"
If you wanted to find files in folders where you don't have access to the folder itself, but the files therein, then "search" is also about your only chance to find those.
These requirements are where you would switch from the regular "children" navigation / listing operation and use the "search" API instead. This would allow you to combine a condition for "my files", which in AFTS query expression would look like this:
(=cm:creator:"myUserName" AND NOT PROPERTIES:"{http://www.alfresco.org/model/content/1.0}owner") OR =cm:owner:"myUserName"
..with the condition of "in folder X", which in AFTS query expression would be:
PARENT:"folderNodeRef"
If you wanted to find files in folders where you don't have access to the folder itself, but the files therein, then "search" is also about your only chance to find those.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.