Package org.exoplatform.social.core
Class BaseActivityProcessorPlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.social.core.BaseActivityProcessorPlugin
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin,ActivityProcessor
public abstract class BaseActivityProcessorPlugin extends org.exoplatform.container.component.BaseComponentPlugin implements ActivityProcessor
A base plugin to configureActivityProcessors forActivityManager.- Version:
- $Revision$
- Author:
- Patrice Lamarque
-
-
Field Summary
Fields Modifier and Type Field Description protected intprioritystatic StringTEMPLATE_PARAM_LIST_DELIMstatic StringTEMPLATE_PARAM_TO_PROCESS
-
Constructor Summary
Constructors Constructor Description BaseActivityProcessorPlugin(org.exoplatform.container.xml.InitParams params)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intgetPriority()List<String>getTemplateParamKeysToFilter(ExoSocialActivity activity)This method is helper for ActivityProcessor incase we want to get list of template params to be filter.abstract voidprocessActivity(ExoSocialActivity activity)voidsetPriority(int priority)-
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
-
-
-
-
Field Detail
-
priority
protected int priority
-
TEMPLATE_PARAM_TO_PROCESS
public static final String TEMPLATE_PARAM_TO_PROCESS
- See Also:
- Constant Field Values
-
TEMPLATE_PARAM_LIST_DELIM
public static final String TEMPLATE_PARAM_LIST_DELIM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceActivityProcessor
-
setPriority
public void setPriority(int priority)
-
getTemplateParamKeysToFilter
public List<String> getTemplateParamKeysToFilter(ExoSocialActivity activity)
This method is helper for ActivityProcessor incase we want to get list of template params to be filter.- Parameters:
activity-- Returns:
-
processActivity
public abstract void processActivity(ExoSocialActivity activity)
- Specified by:
processActivityin interfaceActivityProcessor
-
-