cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a list of a user's favorite folders and documents

patorjk
Champ in-the-making
Champ in-the-making
In Alfresco Share you can favorite a document or folder by clicking a star.

I'm trying to write a webscript that will read back a list of favorited folders and documents. Is there a way to query for this information based on a user's username? I took a look at the Search and JavaScript API pages and nothing really jumped out at me on how to do this.

http://wiki.alfresco.com/wiki/Search
http://wiki.alfresco.com/wiki/3.4_JavaScript_API

Does anyone have any insights on how one would do this?
4 REPLIES 4

jordiv
Champ on-the-rise
Champ on-the-rise
Hi,

Take a look at My Documents dashlet, it has a filter to display only the user's favorites documents. Maybe it will help you.

You can find its source code in the public svn: http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/slingshot/config/alfr...


Cheers,
Jordi

patorjk
Champ in-the-making
Champ in-the-making
Just the type of thing I was looking for, thanks!

n_pancholi87
Champ in-the-making
Champ in-the-making
Hie!
Im working on the same thing.. I have seen the my-document related files. Im new to JSON and javascript.
Please can you provide some pointers on which code to edit?

Thanks!!

n_pancholi87
Champ in-the-making
Champ in-the-making
Hey..
As per my understanding till now, I know how to connect to alfresco repository from share (based on lucene, etc query), and i have seen the my-documents related files for fetching favorites in Share.

But i am not able to combine both these approaches. Please can anybody help me with this?

Thanks in advance..