Class GamificationForumListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.forum.service.ForumEventListener
org.exoplatform.forum.integration.gamification.GamificationForumListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.forum.service.ForumEventLifeCycle

public class GamificationForumListener extends org.exoplatform.forum.service.ForumEventListener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.exoplatform.social.core.manager.ActivityManager
     
    protected org.exoplatform.forum.service.ForumService
     
    protected org.exoplatform.social.core.manager.IdentityManager
     
    protected org.exoplatform.services.listener.ListenerService
     
    protected org.exoplatform.social.core.space.spi.SpaceService
     

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

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    GamificationForumListener(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.forum.service.ForumService forumService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addPost(org.exoplatform.forum.service.Post post)
     
    void
    addTopic(org.exoplatform.forum.service.Topic topic)
     
    void
    mergeTopic(org.exoplatform.forum.service.Topic newTopic, String removeActivityId1, String removeActivityId2)
     
    void
    movePost(List<org.exoplatform.forum.service.Post> list, List<String> list1, String s)
     
    void
    moveTopic(org.exoplatform.forum.service.Topic topic, String toCategoryName, String toForumName)
     
    void
    openTopic(String userId, String topicId)
     
    void
    removeActivity(String activityId)
     
    void
    removeComment(String activityId, String commentId)
     
    void
    saveCategory(org.exoplatform.forum.service.Category category)
     
    void
    saveForum(org.exoplatform.forum.service.Forum forum)
     
    void
    splitTopic(org.exoplatform.forum.service.Topic newTopic, org.exoplatform.forum.service.Topic splitedTopic, String removeActivityId)
     
    void
    updatePost(org.exoplatform.forum.service.Post post)
     
    void
    updatePost(org.exoplatform.forum.service.Post post, int type)
     
    void
    updateTopic(org.exoplatform.forum.service.Topic topic)
     
    void
    updateTopics(List<org.exoplatform.forum.service.Topic> topics, boolean isLock)
     

    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.forum.service.ForumEventLifeCycle

    addPrivatePost, updatePrivatePost
  • Field Details

    • identityManager

      protected org.exoplatform.social.core.manager.IdentityManager identityManager
    • spaceService

      protected org.exoplatform.social.core.space.spi.SpaceService spaceService
    • listenerService

      protected org.exoplatform.services.listener.ListenerService listenerService
    • activityManager

      protected org.exoplatform.social.core.manager.ActivityManager activityManager
    • forumService

      protected org.exoplatform.forum.service.ForumService forumService
  • Constructor Details

    • GamificationForumListener

      public GamificationForumListener(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.forum.service.ForumService forumService)
  • Method Details

    • saveCategory

      public void saveCategory(org.exoplatform.forum.service.Category category)
      Specified by:
      saveCategory in interface org.exoplatform.forum.service.ForumEventLifeCycle
      Specified by:
      saveCategory in class org.exoplatform.forum.service.ForumEventListener
    • saveForum

      public void saveForum(org.exoplatform.forum.service.Forum forum)
      Specified by:
      saveForum in interface org.exoplatform.forum.service.ForumEventLifeCycle
      Specified by:
      saveForum in class org.exoplatform.forum.service.ForumEventListener
    • addPost

      public void addPost(org.exoplatform.forum.service.Post post)
    • updatePost

      public void updatePost(org.exoplatform.forum.service.Post post)
    • updatePost

      public void updatePost(org.exoplatform.forum.service.Post post, int type)
    • addTopic

      public void addTopic(org.exoplatform.forum.service.Topic topic)
    • updateTopic

      public void updateTopic(org.exoplatform.forum.service.Topic topic)
    • updateTopics

      public void updateTopics(List<org.exoplatform.forum.service.Topic> topics, boolean isLock)
    • moveTopic

      public void moveTopic(org.exoplatform.forum.service.Topic topic, String toCategoryName, String toForumName)
    • mergeTopic

      public void mergeTopic(org.exoplatform.forum.service.Topic newTopic, String removeActivityId1, String removeActivityId2)
    • splitTopic

      public void splitTopic(org.exoplatform.forum.service.Topic newTopic, org.exoplatform.forum.service.Topic splitedTopic, String removeActivityId)
    • removeActivity

      public void removeActivity(String activityId)
    • removeComment

      public void removeComment(String activityId, String commentId)
    • movePost

      public void movePost(List<org.exoplatform.forum.service.Post> list, List<String> list1, String s)
    • openTopic

      public void openTopic(String userId, String topicId)