cancel
Showing results for 
Search instead for 
Did you mean: 

Counting the Top viewed documents in alfresco

ranj
Champ on-the-rise
Champ on-the-rise
Hi All,

I wan to count all the top viewed documents. Is it possible to do it by audit trail and how to get the hit count?


Can anyone help me to fix this issue?

Thanks,
Ranj
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
You can do it by adding behavior on the content services where you can update keep the counter on each node to keep track of no of hits.
then you can fire query based on that property to find out the document viewed max no of times. 😎

ranj
Champ on-the-rise
Champ on-the-rise
Hi,

Thanks for the quick reply Smiley Very Happy. I want to create a behaviour class now. Can you please give me more details on how to create the behaviour class, which super class i should extend?

mitpatoliya
Star Collaborator
Star Collaborator
You need to implement the policies from the available policies under ContentServicePolicies .
then on the policy component you need to bind your behavior.
For creating behaviour just you need to create the instance of class org.alfresco.repo.policy.JavaBehaviour.

ranj
Champ on-the-rise
Champ on-the-rise
You need to implement the policies from the available policies under ContentServicePolicies .
then on the policy component you need to bind your behavior.
For creating behaviour just you need to create the instance of class org.alfresco.repo.policy.JavaBehaviour.
Thanks Mitpatoliya.. Smiley Very Happy  Smiley Very Happy