public class GamificationForumListener extends org.exoplatform.forum.service.ForumEventListener implements GamificationListener
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.social.core.manager.ActivityManager |
activityManager |
protected org.exoplatform.forum.service.ForumService |
forumService |
protected GamificationProcessor |
gamificationProcessor |
protected GamificationService |
gamificationService |
protected org.exoplatform.social.core.manager.IdentityManager |
identityManager |
protected RuleService |
ruleService |
protected org.exoplatform.social.core.space.spi.SpaceService |
spaceService |
GAMIFICATION_FORUM_ADD_POST, GAMIFICATION_FORUM_ADD_TOPIC, GAMIFICATION_SOCIAL_ADD_ACTIVITY_MY_STREAM, GAMIFICATION_SOCIAL_ADD_ACTIVITY_NETWORK_STREAM, GAMIFICATION_SOCIAL_ADD_ACTIVITY_SPACE_STREAM, GAMIFICATION_SOCIAL_ADD_ACTIVITY_SPACE_TARGET, GAMIFICATION_SOCIAL_ADD_ACTIVITY_TARGET_USER_STREAM, GAMIFICATION_SOCIAL_COMMENT_ADD, GAMIFICATION_SOCIAL_COMMENT_NETWORK_STREAM, GAMIFICATION_SOCIAL_COMMENT_SPACE_STREAM, GAMIFICATION_SOCIAL_LIKE_ACTIVITY_NETWORK_STREAM, GAMIFICATION_SOCIAL_LIKE_ACTIVITY_SPACE_STREAM, GAMIFICATION_SOCIAL_LIKE_ACTIVITY_SPACE_TARGET, GAMIFICATION_SOCIAL_LIKE_ACTIVITY_TARGET_USER_STREAM, GAMIFICATION_SOCIAL_LIKE_COMMENT, GAMIFICATION_SOCIAL_LIKE_COMMENT_NETWORK_STREAM, GAMIFICATION_SOCIAL_LIKE_COMMENT_SPACE_STREAM, GAMIFICATION_SOCIAL_PROFILE_ADD_ABOUTME, GAMIFICATION_SOCIAL_PROFILE_ADD_AVATAR, GAMIFICATION_SOCIAL_PROFILE_ADD_BANNER, GAMIFICATION_SOCIAL_RELATIONSHIP_RECEIVER, GAMIFICATION_SOCIAL_RELATIONSHIP_SENDER, GAMIFICATION_SOCIAL_SPACE_ADD, GAMIFICATION_SOCIAL_SPACE_GRANT_AS_LEAD, GAMIFICATION_SOCIAL_SPACE_JOIN| Constructor and Description |
|---|
GamificationForumListener(RuleService ruleService,
GamificationProcessor gamificationProcessor,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
GamificationService gamificationService,
org.exoplatform.social.core.manager.ActivityManager activityManager,
org.exoplatform.forum.service.ForumService forumService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPost(org.exoplatform.forum.service.Post post) |
void |
addTopic(org.exoplatform.forum.service.Topic topic) |
List<GamificationContextHolder> |
gamify(RuleDTO ruleDto,
String actor) |
void |
mergeTopic(org.exoplatform.forum.service.Topic newTopic,
String removeActivityId1,
String removeActivityId2) |
void |
movePost(List<org.exoplatform.forum.service.Post> list,
List<String> list1,
String s) |
void |
moveTopic(org.exoplatform.forum.service.Topic topic,
String toCategoryName,
String toForumName) |
void |
removeActivity(String activityId) |
void |
removeComment(String activityId,
String commentId) |
void |
saveCategory(org.exoplatform.forum.service.Category category) |
void |
saveForum(org.exoplatform.forum.service.Forum forum) |
void |
splitTopic(org.exoplatform.forum.service.Topic newTopic,
org.exoplatform.forum.service.Topic splitedTopic,
String removeActivityId) |
void |
updatePost(org.exoplatform.forum.service.Post post) |
void |
updatePost(org.exoplatform.forum.service.Post post,
int type) |
void |
updateTopic(org.exoplatform.forum.service.Topic topic) |
void |
updateTopics(List<org.exoplatform.forum.service.Topic> topics,
boolean isLock) |
getDescription, getName, setDescription, setNameprotected RuleService ruleService
protected GamificationProcessor gamificationProcessor
protected org.exoplatform.social.core.manager.IdentityManager identityManager
protected org.exoplatform.social.core.space.spi.SpaceService spaceService
protected GamificationService gamificationService
protected org.exoplatform.social.core.manager.ActivityManager activityManager
protected org.exoplatform.forum.service.ForumService forumService
public GamificationForumListener(RuleService ruleService, GamificationProcessor gamificationProcessor, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, GamificationService gamificationService, org.exoplatform.social.core.manager.ActivityManager activityManager, org.exoplatform.forum.service.ForumService forumService)
public void saveCategory(org.exoplatform.forum.service.Category category)
saveCategory in interface org.exoplatform.forum.service.ForumEventLifeCyclesaveCategory in class org.exoplatform.forum.service.ForumEventListenerpublic void saveForum(org.exoplatform.forum.service.Forum forum)
saveForum in interface org.exoplatform.forum.service.ForumEventLifeCyclesaveForum in class org.exoplatform.forum.service.ForumEventListenerpublic void addPost(org.exoplatform.forum.service.Post post)
addPost in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void updatePost(org.exoplatform.forum.service.Post post)
updatePost in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void updatePost(org.exoplatform.forum.service.Post post,
int type)
updatePost in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void addTopic(org.exoplatform.forum.service.Topic topic)
addTopic in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void updateTopic(org.exoplatform.forum.service.Topic topic)
updateTopic in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void updateTopics(List<org.exoplatform.forum.service.Topic> topics, boolean isLock)
updateTopics in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void moveTopic(org.exoplatform.forum.service.Topic topic,
String toCategoryName,
String toForumName)
moveTopic in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void mergeTopic(org.exoplatform.forum.service.Topic newTopic,
String removeActivityId1,
String removeActivityId2)
mergeTopic in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void splitTopic(org.exoplatform.forum.service.Topic newTopic,
org.exoplatform.forum.service.Topic splitedTopic,
String removeActivityId)
splitTopic in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void removeActivity(String activityId)
removeActivity in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void removeComment(String activityId, String commentId)
removeComment in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic void movePost(List<org.exoplatform.forum.service.Post> list, List<String> list1, String s)
movePost in interface org.exoplatform.forum.service.ForumEventLifeCyclepublic List<GamificationContextHolder> gamify(RuleDTO ruleDto, String actor) throws Exception
gamify in interface GamificationListenerExceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.