|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.forum.ext.activity.ForumActivityUtils
public class ForumActivityUtils
Created by The eXo Platform SAS Author : thanh_vucong thanh_vucong@exoplatform.com Jan 10, 2013
| Constructor Summary | |
|---|---|
ForumActivityUtils()
|
|
| Method Summary | |
|---|---|
static String |
getActivityId(ForumActivityContext ctx)
Gets ActivityId from existing Topic in Context. |
static org.exoplatform.social.core.manager.ActivityManager |
getActivityManager()
|
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
getActivityOfPollTopic(ForumActivityContext ctx)
Gets ActivityId of poll from existing Topic in Context. |
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
getActivityOfTopic(ForumActivityContext ctx)
Gets ActivityId from existing Topic in Context. |
static org.exoplatform.social.core.activity.model.ExoSocialActivity |
getCommentOfPost(ForumActivityContext ctx)
Gets activity's comment from existing post in Context. |
static org.exoplatform.forum.service.ForumService |
getForumService()
|
static org.exoplatform.social.core.identity.model.Identity |
getIdentity(String remoteId)
|
static org.exoplatform.social.core.manager.IdentityManager |
getIdentityManager()
|
static String |
getSpaceGroupId(String forumId)
|
static org.exoplatform.social.core.identity.model.Identity |
getSpaceIdentity(String forumId)
|
static org.exoplatform.social.core.space.spi.SpaceService |
getSpaceService()
|
static org.exoplatform.forum.service.Topic |
getTopic(ForumActivityContext ctx)
|
static boolean |
hasSpace(String forumId)
|
static boolean |
isCategoryPublic(org.exoplatform.forum.service.Category category)
|
static boolean |
isForumPublic(org.exoplatform.forum.service.Forum forum)
|
static boolean |
isPostPublic(org.exoplatform.forum.service.Post post)
|
static boolean |
isTopicPublic(org.exoplatform.forum.service.Topic topic)
|
static ForumActivityContext |
processBBCode(ForumActivityContext ctx)
|
static void |
removeActivities(String... activityIds)
Deletes Activities |
static void |
removeComment(String activityId,
String commentId)
Deletes comment |
static void |
saveTopicActivity(org.exoplatform.social.core.identity.model.Identity poster,
org.exoplatform.social.core.identity.model.Identity streamOwner,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.forum.service.Topic topic)
|
static void |
takeActivityBack(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
|
static void |
takeCommentBack(org.exoplatform.forum.service.Post post,
org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
|
static void |
updateActivities(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
|
static void |
updateActivityByTopic(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForumActivityUtils()
| Method Detail |
|---|
public static org.exoplatform.social.core.identity.model.Identity getSpaceIdentity(String forumId)
public static String getSpaceGroupId(String forumId)
public static boolean hasSpace(String forumId)
public static boolean isCategoryPublic(org.exoplatform.forum.service.Category category)
public static boolean isForumPublic(org.exoplatform.forum.service.Forum forum)
public static boolean isTopicPublic(org.exoplatform.forum.service.Topic topic)
public static boolean isPostPublic(org.exoplatform.forum.service.Post post)
public static org.exoplatform.forum.service.Topic getTopic(ForumActivityContext ctx)
throws Exception
Exception
public static void takeActivityBack(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public static void takeCommentBack(org.exoplatform.forum.service.Post post,
org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
public static void updateActivityByTopic(org.exoplatform.forum.service.Topic topic,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
throws Exception
Exception
public static void saveTopicActivity(org.exoplatform.social.core.identity.model.Identity poster,
org.exoplatform.social.core.identity.model.Identity streamOwner,
org.exoplatform.social.core.activity.model.ExoSocialActivity activity,
org.exoplatform.forum.service.Topic topic)
throws Exception
Exceptionpublic static String getActivityId(ForumActivityContext ctx)
ctx -
public static org.exoplatform.social.core.activity.model.ExoSocialActivity getActivityOfTopic(ForumActivityContext ctx)
ctx -
public static ForumActivityContext processBBCode(ForumActivityContext ctx)
public static org.exoplatform.social.core.activity.model.ExoSocialActivity getCommentOfPost(ForumActivityContext ctx)
ctx -
public static void removeActivities(String... activityIds)
activityIds -
public static void removeComment(String activityId,
String commentId)
activityId - commentId - public static void updateActivities(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public static org.exoplatform.forum.service.ForumService getForumService()
public static org.exoplatform.social.core.manager.ActivityManager getActivityManager()
public static org.exoplatform.social.core.manager.IdentityManager getIdentityManager()
public static org.exoplatform.social.core.space.spi.SpaceService getSpaceService()
public static org.exoplatform.social.core.identity.model.Identity getIdentity(String remoteId)
public static org.exoplatform.social.core.activity.model.ExoSocialActivity getActivityOfPollTopic(ForumActivityContext ctx)
ctx -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||