To create an event handler that listens for changes to AEM Communities comments

Steps

The solution is to implement an OSGi event handler.  Here's a sample event handler implementation.

In your event handler you would listen for this event topic:
com/adobe/cq/social/comment

You could optionally filter for these event types using the Event Filters OSGi property (this is an optional property as you could use logic in your handleEvent method to do the same):

POST member creates a comment
ADD member replies to comment
UPDATE member's comment is edited
DELETE member's comment is deleted

ملاحظة:

Documentation on the topic can be found here.

تم ترخيص هذا العمل بموجب الترخيص العام غير المعدل الخاص بالإسناد وعدم التجارة والمشاركة الإصدار 3.0 ‏من ‏‏Creative Commons‏‏  إن بنود Creative Commons لا تشمل منشورات Twitter™‎ وFacebook.

إشعارات قانونية   |   سياسة الخصوصية على الإنترنت