cancel
Showing results for 
Search instead for 
Did you mean: 

Total Number of documents per user

themarcuz
Champ in-the-making
Champ in-the-making
Hi folks, I'm working on an Alfresco project and our customer ask me to create a page where the administrator can see how many documents has been uploaded per user.
What's the best way to achieve that? I start looking at lucene query, but I discovers that it only returns max 1000 results… so if a user uploaded more documents, the information will be useless. Any idea? I can use a custom jsp inside Alfresco, a webscript, or something external that uses REST service… I haven't any restriction… I just need to do such reporting page.
Any clue?
Oh, I'm working on Alfresco CE 3.2r
2 REPLIES 2

hsohaib
Champ on-the-rise
Champ on-the-rise
Extends the "AddContentDialog" bean, in the finishImplement method increment the number of documents uploaded by the current user, you can either store that value by extending the user model, or simply storing the statistics in your database.

This way it will be alot faster than using Lucene for each and every user, which  can be very time and ressources consuming.

themarcuz
Champ in-the-making
Champ in-the-making
Thanks for your reply.
This could be a great advice in general… but doesn't fit for my situation, where the system is in production from almost a year. I need to know how many documents has been uploaded sine then.  Smiley Sad
There isn't a way to do a xpath query or something like that to retrieve that numbers?