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-2402-48fd-8faa-2e90a1b" , the OnContentRead behavior triggered
not this address "http://localhost:8080/share/page/site/swsdp/document-details?nodeRef=workspace://SpacesStore/286ec938-2402-48fd-8faa-2e90a1b5100b"
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
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.
Every time when the content is read by the content reader form content store.
hi,do you know how to display content download count
Key idea is we need to catch the event which occurs during download action happen.In this example we are invoking our piece of code whenever download API is called from core services.
i don't know how to do this
Download will also cause the OnContentRead policy but the problem is that one download can cause multiple invocations of the OnContentRead policy because clients may download chunks of a file in multiple requests (progressive loading).
finally, i implement it by webscript when click download button , I modify the action link to javascript
Good luck.