public class ForumActivityContext extends Object
| Constructor and Description |
|---|
ForumActivityContext() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public static ForumActivityContext makeContextForAddTopic(org.exoplatform.forum.service.Topic topic)
public static ForumActivityContext makeContextForUpdateTopic(org.exoplatform.forum.service.Topic topic)
public static ForumActivityContext makeContextForUpdateStatusTopic(org.exoplatform.forum.service.Topic topic, int updateType)
public static ForumActivityContext makeContextForMoveTopic(org.exoplatform.forum.service.Topic topic, String toCategoryName, String toForumName)
public static ForumActivityContext makeContextForMergeTopic(org.exoplatform.forum.service.Topic newTopic, String removeActivityId1, String removeActivityId2)
public static ForumActivityContext makeContextForSplitTopic(org.exoplatform.forum.service.Topic newTopic, org.exoplatform.forum.service.Topic splitedTopic, String removeActivityId)
public static ForumActivityContext makeContextForAddPost(org.exoplatform.forum.service.Post post)
public static ForumActivityContext makeContextForUpdatePost(org.exoplatform.forum.service.Post post)
public void setPost(org.exoplatform.forum.service.Post post)
public void setTopic(org.exoplatform.forum.service.Topic topic)
public String getCategoryId()
public String getForumId()
public String getTopicId()
public org.exoplatform.forum.service.Topic getTopic()
public org.exoplatform.forum.service.Post getPost()
public int getUpdateType()
public String getToCategoryName()
public String getToForumName()
public String[] getRemoveActivities()
public org.exoplatform.forum.service.Topic getSplitedTopic()
public org.exoplatform.commons.utils.PropertyChangeSupport getPcs()
public void setPcs(org.exoplatform.commons.utils.PropertyChangeSupport pcs)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.