public class ForumActivityBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CATE_ID_KEY |
static String |
FORUM_ACTIVITY_TYPE |
static String |
FORUM_ID_KEY |
static String |
POST_ID_KEY |
static String |
POST_LINK_KEY |
static String |
POST_NAME_KEY |
static String |
POST_OWNER_KEY |
static String |
POST_TYPE |
static String |
SPACE_GROUP_ID |
static String |
TOPIC_ID_KEY |
static String |
TOPIC_LINK_KEY |
static String |
TOPIC_OWNER_KEY |
static String |
TOPIC_POST_COUNT_KEY |
static String |
TOPIC_VOTE_RATE_KEY |
| Modifier and Type | Method and Description |
|---|---|
static String |
decodeHTMLInput(String message) |
static String |
getFourFirstLines(String str) |
static String |
getNumberFirstLines(String content,
int line)
No more than 4 lines
No more than 430 characters
If the content is larger than these limits, we add "..." at the end of the abstract.
|
static String |
trunc(String str,
int head,
boolean needTail)
Truncates large Strings showing a portion of the String's head and tail
with the head cut out and replaced with '...'.
|
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
updateNumberOfReplies(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
boolean isDelete) |
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
updateNumberOfReplies(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity) |
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
updateVoteRate(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity) |
public static final String FORUM_ACTIVITY_TYPE
public static final String FORUM_ID_KEY
public static final String CATE_ID_KEY
public static final String POST_TYPE
public static final String POST_ID_KEY
public static final String POST_OWNER_KEY
public static final String POST_LINK_KEY
public static final String POST_NAME_KEY
public static final String TOPIC_ID_KEY
public static final String TOPIC_LINK_KEY
public static final String TOPIC_OWNER_KEY
public static final String TOPIC_POST_COUNT_KEY
public static final String TOPIC_VOTE_RATE_KEY
public static final String SPACE_GROUP_ID
public static String getNumberFirstLines(String content, int line)
content - line - public static final String trunc(String str, int head, boolean needTail)
str - the string to truncatehead - the amount of the head to displaypublic static org.exoplatform.social.core.activity.model.ExoSocialActivity updateNumberOfReplies(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public static org.exoplatform.social.core.activity.model.ExoSocialActivity updateNumberOfReplies(org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
boolean isDelete)
public static org.exoplatform.social.core.activity.model.ExoSocialActivity updateVoteRate(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.