org.exoplatform.forum.ext.activity
Class ForumActivityContext

java.lang.Object
  extended by 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 Summary
ForumActivityContext()
           
 
Method Summary
 String getCategoryId()
          Gets categoryId
 String getForumId()
          Gets forumId
 org.exoplatform.commons.utils.PropertyChangeSupport getPcs()
           
 org.exoplatform.forum.service.Post getPost()
          Gets Post
 String[] getRemoveActivities()
          Gets ActivityId array which will be removed
 org.exoplatform.forum.service.Topic getSplitedTopic()
          Gets splitedTopic for split topic
 String getToCategoryName()
          get toCategoryName for Move Topic
 String getToForumName()
           
 org.exoplatform.forum.service.Topic getTopic()
          Gets Topic
 String getTopicId()
          Ges topicId
 int getUpdateType()
          Gets Update Type for updating topic
static ForumActivityContext makeContextForAddPost(org.exoplatform.forum.service.Post post)
          create ForumActivityContext for add post case
static ForumActivityContext makeContextForAddTopic(org.exoplatform.forum.service.Topic topic)
          create ForumActivityContext for create new topic case
static ForumActivityContext makeContextForMergeTopic(org.exoplatform.forum.service.Topic newTopic, String removeActivityId1, String removeActivityId2)
          create ForumActivityContext for merge topic case
static ForumActivityContext makeContextForMoveTopic(org.exoplatform.forum.service.Topic topic, String toCategoryName, String toForumName)
          create ForumActivityContext for move topic case
static ForumActivityContext makeContextForSplitTopic(org.exoplatform.forum.service.Topic newTopic, org.exoplatform.forum.service.Topic splitedTopic, String removeActivityId)
          create ForumActivityContext for merge topic case
static ForumActivityContext makeContextForUpdatePost(org.exoplatform.forum.service.Post post)
          create ForumActivityContext for add post case
static ForumActivityContext makeContextForUpdateStatusTopic(org.exoplatform.forum.service.Topic topic, int updateType)
          create ForumActivityContext for update type of topic case
static ForumActivityContext makeContextForUpdateTopic(org.exoplatform.forum.service.Topic topic)
          create ForumActivityContext for update content of topic case
 void setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs)
           
 void setPost(org.exoplatform.forum.service.Post post)
           
 void setTopic(org.exoplatform.forum.service.Topic topic)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumActivityContext

public ForumActivityContext()
Method Detail

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)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.