Class ReportActivityProcessor

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.core.BaseActivityProcessorPlugin
io.meeds.social.report.processor.ReportActivityProcessor
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.social.core.ActivityProcessor

public class ReportActivityProcessor extends org.exoplatform.social.core.BaseActivityProcessorPlugin
Reports always anchor on the activity/comment itself. For a content-backed activity (e.g. a news post), the generic MetadataService processor loads metadata by the redirected content object, so the activity-anchored report items would be missing from the cached activity's metadata map — this processor loads them, keeping the derived report flags free of any dedicated read-path query.
  • Field Summary

    Fields inherited from class org.exoplatform.social.core.BaseActivityProcessorPlugin

    priority, TEMPLATE_PARAM_LIST_DELIM, TEMPLATE_PARAM_TO_PROCESS

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    ReportActivityProcessor(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.container.xml.InitParams params)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    processActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
     

    Methods inherited from class org.exoplatform.social.core.BaseActivityProcessorPlugin

    getPriority, getTemplateParamKeysToFilter, setPriority

    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.social.core.ActivityProcessor

    isPreActivityProcessor, isReadActivityProcessor

    Methods inherited from interface org.exoplatform.container.component.ComponentPlugin

    getDescription, getName, setDescription, setName
  • Constructor Details

    • ReportActivityProcessor

      public ReportActivityProcessor(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.container.xml.InitParams params)
  • Method Details

    • processActivity

      public void processActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
      Specified by:
      processActivity in interface org.exoplatform.social.core.ActivityProcessor
      Specified by:
      processActivity in class org.exoplatform.social.core.BaseActivityProcessorPlugin