Class ForumActivityContext
java.lang.Object
org.exoplatform.forum.ext.activity.ForumActivityContext
Created by The eXo Platform SAS
Author : thanh_vucong
thanh_vucong@exoplatform.com
Jan 9, 2013
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets categoryIdGets forumIdorg.exoplatform.commons.utils.PropertyChangeSupportgetPcs()org.exoplatform.forum.service.PostgetPost()Gets PostString[]Gets ActivityId array which will be removedorg.exoplatform.forum.service.TopicGets splitedTopic for split topicget toCategoryName for Move Topicorg.exoplatform.forum.service.TopicgetTopic()Gets TopicGes topicIdintGets Update Type for updating topicstatic ForumActivityContextmakeContextForAddPost(org.exoplatform.forum.service.Post post) create ForumActivityContext for add post casestatic ForumActivityContextmakeContextForAddTopic(org.exoplatform.forum.service.Topic topic) create ForumActivityContext for create new topic casestatic ForumActivityContextmakeContextForMergeTopic(org.exoplatform.forum.service.Topic newTopic, String removeActivityId1, String removeActivityId2) create ForumActivityContext for merge topic casestatic ForumActivityContextmakeContextForMoveTopic(org.exoplatform.forum.service.Topic topic, String toCategoryName, String toForumName) create ForumActivityContext for move topic casestatic ForumActivityContextmakeContextForSplitTopic(org.exoplatform.forum.service.Topic newTopic, org.exoplatform.forum.service.Topic splitedTopic, String removeActivityId) create ForumActivityContext for merge topic casestatic ForumActivityContextmakeContextForUpdatePost(org.exoplatform.forum.service.Post post) create ForumActivityContext for add post casestatic ForumActivityContextmakeContextForUpdateStatusTopic(org.exoplatform.forum.service.Topic topic, int updateType) create ForumActivityContext for update type of topic casestatic ForumActivityContextmakeContextForUpdateTopic(org.exoplatform.forum.service.Topic topic) create ForumActivityContext for update content of topic casevoidsetPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs) voidsetPost(org.exoplatform.forum.service.Post post) voidsetTopic(org.exoplatform.forum.service.Topic topic)
-
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
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
Gets categoryId- Returns:
-
getForumId
Gets forumId- Returns:
-
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
get toCategoryName for Move Topic- Returns:
-
getToForumName
-
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)
-