Class ReportNotificationListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<io.meeds.social.report.model.ActivityReport,Long>
io.meeds.social.report.notification.listener.ReportNotificationListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<io.meeds.social.report.model.ActivityReport,Long>

public class ReportNotificationListener extends org.exoplatform.services.listener.Listener<io.meeds.social.report.model.ActivityReport,Long>
Glue listener, no business logic: reacts to the generic ActivityReportService.EVENT_ACTIVITY_REPORTED event and triggers the moderation notification to the space managers through the existing pluggable notification mechanism.
  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReportNotificationListener(org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<io.meeds.social.report.model.ActivityReport,Long> event)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName
  • Constructor Details

    • ReportNotificationListener

      public ReportNotificationListener(org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService)
  • Method Details

    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<io.meeds.social.report.model.ActivityReport,Long> event) throws Exception
      Throws:
      Exception