cancel
Showing results for 
Search instead for 
Did you mean: 

when OnContentRead behavior trigger

kevinchen
Champ in-the-making
Champ in-the-making

hi everyone:

      I want to implement Click through rate of a content ,   I use the sample "ContentHitsAspect"  

public class ContentHitsAspect implements ContentServicePolicies.OnContentReadPolicy,
                                                                        ContentServicePolicies.OnContentUpdatePolicy,
                                                                        NodeServicePolicies.OnAddAspectPolicy

but  when I visit  this address "http://localhost:8080/share/page/site/swsdp/inline-edit?nodeRef=workspace://SpacesStore/286ec938-240..."  ,   the OnContentRead behavior  triggered  

not this address "http://localhost:8080/share/page/site/swsdp/document-details?nodeRef=workspace://SpacesStore/286ec93..."

in my mind  "inline-edit" should be the oncontentupdate  behavior  and the OnContentRead behavior should be the "document-details"

what behavior can trigger when i visit  document-details address,  anybody can help me about this  problem  

1 ACCEPTED ANSWER

afaust
Legendary Innovator
Legendary Innovator

Minor correction: The OnContentRead policy is triggered when a reader is obtained from the ContentService. The policy does not require that the content is actually read.

View answer in original post

10 REPLIES 10

kaynezhang
World-Class Innovator
World-Class Innovator

Good luck.