Class ActivitySearchPlugin

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.core.jpa.search.ActivitySearchPlugin
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public abstract class ActivitySearchPlugin extends org.exoplatform.container.component.BaseComponentPlugin
  • Field Summary

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    formatSearchResult(org.exoplatform.social.core.activity.model.ActivitySearchResult activity)
    This is triggered before displaying search result of an activity to enrich or alter an attribute in the result
    abstract String
     
    void
    index(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.commons.search.domain.Document document)
    This is triggered before indexing an activity to enrich or alter an attribute to index

    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
  • Constructor Details

    • ActivitySearchPlugin

      public ActivitySearchPlugin()
  • Method Details

    • getActivityType

      public abstract String getActivityType()
    • index

      public void index(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.commons.search.domain.Document document)
      This is triggered before indexing an activity to enrich or alter an attribute to index
      Parameters:
      activity - ExoSocialActivity that will be indexed
      document - Document containing properties to index
    • formatSearchResult

      public void formatSearchResult(org.exoplatform.social.core.activity.model.ActivitySearchResult activity)
      This is triggered before displaying search result of an activity to enrich or alter an attribute in the result
      Parameters:
      activity - ActivitySearchResult that will be indexed