Package io.meeds.social.report.listener
Class ReportActivityListener
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.common.lifecycle.AbstractListenerPlugin
org.exoplatform.social.core.activity.ActivityListenerPlugin
io.meeds.social.report.listener.ReportActivityListener
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,org.exoplatform.social.common.lifecycle.LifeCycleListener<org.exoplatform.social.core.activity.ActivityLifeCycleEvent>,org.exoplatform.social.core.activity.ActivityListener
@Component
public class ReportActivityListener
extends org.exoplatform.social.core.activity.ActivityListenerPlugin
Glue listener, no business logic: when an activity or a comment is edited by
its author, delegates to
ActivityReportService so every active
report on it is flipped to stale and reporting becomes available again.-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()voidupdateActivity(org.exoplatform.social.core.activity.ActivityLifeCycleEvent event) voidupdateComment(org.exoplatform.social.core.activity.ActivityLifeCycleEvent event) Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.social.core.activity.ActivityListener
deleteActivity, deleteComment, deleteLikeActivity, deleteLikeComment, hideActivity, likeActivity, likeComment, pinActivity, saveActivity, saveComment, shareActivity, unpinActivity, updateCategoriesMethods inherited from interface org.exoplatform.social.common.lifecycle.LifeCycleListener
getDescription, getName, setDescription, setName
-
Constructor Details
-
ReportActivityListener
public ReportActivityListener()
-
-
Method Details
-
init
@PostConstruct public void init() -
updateActivity
public void updateActivity(org.exoplatform.social.core.activity.ActivityLifeCycleEvent event) -
updateComment
public void updateComment(org.exoplatform.social.core.activity.ActivityLifeCycleEvent event)
-