Package io.meeds.social.report.processor
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_PROCESSFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionReportActivityProcessor(org.exoplatform.social.metadata.MetadataService metadataService, org.exoplatform.container.xml.InitParams params) -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity) Methods inherited from class org.exoplatform.social.core.BaseActivityProcessorPlugin
getPriority, getTemplateParamKeysToFilter, setPriorityMethods 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.ActivityProcessor
isPreActivityProcessor, isReadActivityProcessorMethods 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:
processActivityin interfaceorg.exoplatform.social.core.ActivityProcessor- Specified by:
processActivityin classorg.exoplatform.social.core.BaseActivityProcessorPlugin
-