Class ForumActivityContext

java.lang.Object
org.exoplatform.forum.ext.activity.ForumActivityContext

public class ForumActivityContext extends Object
Created by The eXo Platform SAS Author : thanh_vucong thanh_vucong@exoplatform.com Jan 9, 2013
  • Constructor Details

    • ForumActivityContext

      public ForumActivityContext()
  • Method Details

    • makeContextForAddTopic

      public static ForumActivityContext makeContextForAddTopic(org.exoplatform.forum.service.Topic topic)
      create ForumActivityContext for create new topic case
    • makeContextForUpdateTopic

      public static ForumActivityContext makeContextForUpdateTopic(org.exoplatform.forum.service.Topic topic)
      create ForumActivityContext for update content of topic case
    • makeContextForUpdateStatusTopic

      public static ForumActivityContext makeContextForUpdateStatusTopic(org.exoplatform.forum.service.Topic topic, int updateType)
      create ForumActivityContext for update type of topic case
    • makeContextForMoveTopic

      public static ForumActivityContext makeContextForMoveTopic(org.exoplatform.forum.service.Topic topic, String toCategoryName, String toForumName)
      create ForumActivityContext for move topic case
    • makeContextForMergeTopic

      public static ForumActivityContext makeContextForMergeTopic(org.exoplatform.forum.service.Topic newTopic, String removeActivityId1, String removeActivityId2)
      create ForumActivityContext for merge topic case
    • makeContextForSplitTopic

      public static ForumActivityContext makeContextForSplitTopic(org.exoplatform.forum.service.Topic newTopic, org.exoplatform.forum.service.Topic splitedTopic, String removeActivityId)
      create ForumActivityContext for merge topic case
    • makeContextForAddPost

      public static ForumActivityContext makeContextForAddPost(org.exoplatform.forum.service.Post post)
      create ForumActivityContext for add post case
    • makeContextForUpdatePost

      public static ForumActivityContext makeContextForUpdatePost(org.exoplatform.forum.service.Post post)
      create ForumActivityContext for add post case
    • setPost

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

      public void setTopic(org.exoplatform.forum.service.Topic topic)
    • getCategoryId

      public String getCategoryId()
      Gets categoryId
      Returns:
    • getForumId

      public String getForumId()
      Gets forumId
      Returns:
    • getTopicId

      public String getTopicId()
      Ges topicId
      Returns:
    • getTopic

      public org.exoplatform.forum.service.Topic getTopic()
      Gets Topic
      Returns:
    • getPost

      public org.exoplatform.forum.service.Post getPost()
      Gets Post
      Returns:
    • getUpdateType

      public int getUpdateType()
      Gets Update Type for updating topic
      Returns:
    • getToCategoryName

      public String getToCategoryName()
      get toCategoryName for Move Topic
      Returns:
    • getToForumName

      public String getToForumName()
    • getRemoveActivities

      public String[] getRemoveActivities()
      Gets ActivityId array which will be removed
      Returns:
    • getSplitedTopic

      public org.exoplatform.forum.service.Topic getSplitedTopic()
      Gets splitedTopic for split topic
      Returns:
    • getPcs

      public org.exoplatform.commons.utils.PropertyChangeSupport getPcs()
    • setPcs

      public void setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs)