org.exoplatform.forum.service.impl
Class ForumServiceImpl

java.lang.Object
  extended by org.exoplatform.forum.service.impl.ForumServiceImpl
All Implemented Interfaces:
ForumService, ForumServiceLegacy, org.picocontainer.Startable

public class ForumServiceImpl
extends java.lang.Object
implements ForumService, org.picocontainer.Startable

Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 10, 2007


Constructor Summary
ForumServiceImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService rService, org.exoplatform.container.xml.InitParams params)
           
 
Method Summary
 boolean addBanIP(java.lang.String ip)
           
 boolean addBanIPForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String ip, java.lang.String forumId)
           
 boolean addBanIPForum(java.lang.String ip, java.lang.String forumId)
           
 void addInitBBCodePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
          Adds the plugin.
 void addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
          Adds the plugin.
 void addInitRssPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
           
 void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
          Adds the plugin.
 void addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
          Adds the plugin.
 void addTag(java.util.List<Tag> tags, java.lang.String userName, java.lang.String topicPath)
          Adds the topic in tag.
 void addTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<Tag> tags, java.lang.String userName, java.lang.String topicPath)
           
 void addWatch(int watchType, java.lang.String path, java.util.List<java.lang.String> values, java.lang.String currentUser)
           
 void addWatch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, int watchType, java.lang.String path, java.util.List<java.lang.String> values, java.lang.String currentUser)
           
 void calculateModerator(java.lang.String categoryPath, boolean isNew)
           
 long checkPrune(PruneSetting pSetting)
           
 void createUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, org.exoplatform.services.organization.User user)
           
 void createUserProfile(org.exoplatform.services.organization.User user)
           
 void evaluateActiveUsers(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String query)
           
 void evaluateActiveUsers(java.lang.String query)
           
 java.lang.Object exportXML(java.lang.String categoryId, java.lang.String forumId, java.util.List<java.lang.String> objectIds, java.lang.String nodePath, java.io.ByteArrayOutputStream bos, boolean isExportAll)
           
 java.lang.Object exportXML(java.lang.String categoryId, java.lang.String forumId, java.util.List<java.lang.String> objectIds, java.lang.String nodePath, java.io.ByteArrayOutputStream bos, boolean isExportAll, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 java.util.List<java.lang.String> getActiveBBCode()
           
 java.util.List<ForumSearch> getAdvancedSearch(ForumEventQuery eventQuery, java.util.List<java.lang.String> listCateIds, java.util.List<java.lang.String> listForumIds)
          Gets the advanced search.
 java.util.List<ForumSearch> getAdvancedSearch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, ForumEventQuery eventQuery, java.util.List<java.lang.String> listCateIds, java.util.List<java.lang.String> listForumIds)
           
 java.util.List<BBCode> getAllBBCode()
           
 java.util.List<ForumLinkData> getAllLink(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String strQueryCate, java.lang.String strQueryForum)
           
 java.util.List<ForumLinkData> getAllLink(java.lang.String strQueryCate, java.lang.String strQueryForum)
          Gets the all link.
 java.util.List<PruneSetting> getAllPruneSetting()
           
 java.util.List<PruneSetting> getAllPruneSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 java.util.List<java.lang.String> getAllTagName(java.lang.String strQuery, java.lang.String userAndTopicId)
           
 java.util.List<Tag> getAllTags()
          Gets the tags.
 java.util.List<Tag> getAllTags(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 java.util.List<Topic> getAllTopicsOld(long date, java.lang.String forumPatch)
           
 java.util.List<Topic> getAllTopicsOld(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, long date, java.lang.String forumPatch)
           
 long getAvailablePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String isApproved, java.lang.String isHidden, java.lang.String userLogin)
           
 long getAvailablePost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String isApproved, java.lang.String isHidden, java.lang.String userLogin)
           
 java.util.List<java.lang.String> getBanList()
           
 BBCode getBBcode(java.lang.String id)
           
 java.util.List<java.lang.String> getBookmarks(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName)
           
 java.util.List<java.lang.String> getBookmarks(java.lang.String userName)
           
 java.util.List<Category> getCategories()
          Gets the categories.
 java.util.List<Category> getCategories(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 Category getCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId)
           
 Category getCategory(java.lang.String categoryId)
          Gets the category.
 UserProfile getDefaultUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName, java.lang.String ip)
           
 UserProfile getDefaultUserProfile(java.lang.String userName, java.lang.String ip)
           
 Forum getForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId)
           
 Forum getForum(java.lang.String categoryId, java.lang.String forumId)
          Gets the forum in the category identify.
 ForumAdministration getForumAdministration()
          Gets the forum administration.
 ForumAdministration getForumAdministration(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 java.util.List<java.lang.String> getForumBanList(java.lang.String forumId)
           
 java.lang.String getForumHomePath()
          Gets the forum home path.
 java.lang.String getForumHomePath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 java.util.List<Forum> getForums(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String strQuery)
           
 java.util.List<Forum> getForums(java.lang.String categoryId, java.lang.String strQuery)
          Gets the forums in the category identify.
 ForumStatistic getForumStatistic()
          Gets the forum statistic.
 ForumStatistic getForumStatistic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 ForumSubscription getForumSubscription(java.lang.String userId)
          Adds the watch.
 java.util.List<Forum> getForumSummaries(java.lang.String categoryId, java.lang.String strQuery)
           
 java.util.List<ForumSearch> getJobWattingForModerator(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String[] paths)
           
 java.util.List<ForumSearch> getJobWattingForModerator(java.lang.String[] paths)
           
 int getJobWattingForModeratorByUser(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userId)
           
 int getJobWattingForModeratorByUser(java.lang.String userId)
           
 java.lang.String getLastLogin()
          Gets the last login.
 long getLastReadIndex(java.lang.String path, java.lang.String isApproved, java.lang.String isHidden, java.lang.String userLogin)
           
 JCRPageList getListPostsByIP(java.lang.String ip, java.lang.String strOrderBy)
           
 JCRPageList getListPostsByIP(java.lang.String ip, java.lang.String strOrderBy, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 SendMessageInfo getMessageInfo(java.lang.String name)
           
 java.util.List<Tag> getMyTagInTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String[] tagIds)
           
 java.util.List<Tag> getMyTagInTopic(java.lang.String[] tagIds)
          Gets the tags by user.
 java.util.List<Post> getNewPosts(int number)
          Select number of lasted public post.
 long getNewPrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName)
           
 long getNewPrivateMessage(java.lang.String userName)
           
 java.lang.Object getObjectNameById(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String path, java.lang.String type)
           
 java.lang.Object getObjectNameById(java.lang.String path, java.lang.String type)
          Gets the object name by path.
 java.lang.Object getObjectNameByPath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String path)
           
 java.lang.Object getObjectNameByPath(java.lang.String path)
          Gets the object name by path.
 java.util.List<java.lang.String> getOnlineUsers()
          Gets the online users.
 JCRPageList getPageListUserProfile()
          Gets the page list user profile.
 JCRPageList getPageListUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 JCRPageList getPagePostByUser(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName, java.lang.String userId, boolean isMod, java.lang.String strOrderBy)
           
 JCRPageList getPagePostByUser(java.lang.String userName, java.lang.String userId, boolean isMod, java.lang.String strOrderBy)
          Gets the page post by user.
 JCRPageList getPageTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String strQuery, java.lang.String strOrderBy)
           
 JCRPageList getPageTopic(java.lang.String categoryId, java.lang.String forumId, java.lang.String strQuery, java.lang.String strOrderBy)
          Gets the page topic in forum identify.
 JCRPageList getPageTopicByType(java.lang.String type)
           
 JCRPageList getPageTopicByUser(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName, boolean isMod, java.lang.String strOrderBy)
           
 JCRPageList getPageTopicByUser(java.lang.String userName, boolean isMod, java.lang.String strOrderBy)
          Gets the page topic by user.
 JCRPageList getPageTopicOld(long date, java.lang.String forumPatch)
          Gets the page topic old.
 JCRPageList getPageTopicOld(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, long date, java.lang.String forumPatch)
           
 java.lang.String[] getPermissionTopicByCategory(java.lang.String categoryId, java.lang.String type)
           
 Poll getPoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
           
 Poll getPoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
          Gets the poll.
 Post getPost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String postId)
           
 Post getPost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String postId)
          This method should: 1.
 JCRPageList getPostForSplitTopic(java.lang.String topicPath)
          Gets the posts.
 JCRPageList getPosts(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String isApproved, java.lang.String isHidden, java.lang.String strQuery, java.lang.String userLogin)
           
 JCRPageList getPosts(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String isApproved, java.lang.String isHidden, java.lang.String strQuery, java.lang.String userLogin)
           
 JCRPageList getPrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName, java.lang.String type)
           
 JCRPageList getPrivateMessage(java.lang.String userName, java.lang.String type)
          Gets the private message.
 PruneSetting getPruneSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String forumPath)
           
 PruneSetting getPruneSetting(java.lang.String forumPath)
           
 UserProfile getQuickProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName)
           
 UserProfile getQuickProfile(java.lang.String userName)
           
 java.util.List<UserProfile> getQuickProfiles(java.util.List<java.lang.String> userList)
           
 java.util.List<UserProfile> getQuickProfiles(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<java.lang.String> userList)
           
 java.util.List<ForumSearch> getQuickSearch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String textQuery, java.lang.String type, java.lang.String pathQuery, java.lang.String userId, java.util.List<java.lang.String> listCateIds, java.util.List<java.lang.String> listForumIds, java.util.List<java.lang.String> forumIdsOfModerator)
           
 java.util.List<ForumSearch> getQuickSearch(java.lang.String textQuery, java.lang.String type, java.lang.String pathQuery, java.lang.String userId, java.util.List<java.lang.String> listCateIds, java.util.List<java.lang.String> listForumIds, java.util.List<java.lang.String> forumIdsOfModerator)
          Gets the quick search.
 java.lang.String getScreenName(java.lang.String userName)
           
 Tag getTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String tagId)
           
 Tag getTag(java.lang.String tagId)
          Gets the tag.
 java.util.List<java.lang.String> getTagNameInTopic(java.lang.String userAndTopicId)
           
 Topic getTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String userRead)
           
 Topic getTopic(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String userRead)
          Gets the topic.
 JCRPageList getTopicByMyTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userIdAndtagId, java.lang.String strOrderBy)
           
 JCRPageList getTopicByMyTag(java.lang.String userIdAndtagId, java.lang.String strOrderBy)
          Gets the topics by tag.
 Topic getTopicByPath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String topicPath, boolean isLastPost)
           
 Topic getTopicByPath(java.lang.String topicPath, boolean isLastPost)
          Gets the topic by path.
 LazyPageList<Topic> getTopicList(java.lang.String categoryId, java.lang.String forumId, java.lang.String strQuery, java.lang.String strOrderBy, int pageSize)
           
 java.util.List<Topic> getTopics(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId)
           
 java.util.List<Topic> getTopics(java.lang.String categoryId, java.lang.String forumId)
          Gets the topics.
 Topic getTopicSummary(java.lang.String topicPath)
           
 TopicType getTopicType(java.lang.String Id)
           
 java.util.List<TopicType> getTopicTypes()
           
 long getTotalTopicOld(long date, java.lang.String forumPatch)
           
 long getTotalTopicOld(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, long date, java.lang.String forumPatch)
           
 ForumAttachment getUserAvatar(java.lang.String userName)
           
 ForumAttachment getUserAvatar(java.lang.String userName, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 UserProfile getUserInfo(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName)
           
 UserProfile getUserInfo(java.lang.String userName)
          Gets the user info.
 UserProfile getUserInformations(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, UserProfile userProfile)
           
 UserProfile getUserInformations(UserProfile userProfile)
           
 java.util.List<java.lang.String> getUserModerator(java.lang.String userName, boolean isModeCate)
           
 UserProfile getUserProfileManagement(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName)
           
 UserProfile getUserProfileManagement(java.lang.String userName)
           
 UserProfile getUserSettingProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName)
           
 UserProfile getUserSettingProfile(java.lang.String userName)
           
 java.util.List<Watch> getWatchByUser(java.lang.String userId)
           
 java.util.List<Watch> getWatchByUser(java.lang.String userId, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 void importXML(java.lang.String nodePath, java.io.InputStream is, java.lang.String mimeType)
           
 void importXML(java.lang.String nodePath, java.io.InputStream is, java.lang.String mimeType, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 boolean isAdminRole(java.lang.String userName)
           
 boolean isOnline(java.lang.String userId)
          Checks if is online.
 void mergeTopic(java.lang.String srcTopicPath, java.lang.String destTopicPath, java.lang.String mailContent, java.lang.String link)
           
 void modifyForum(Forum forum, int type)
          Modify this forum identify.
 void modifyForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, Forum forum, int type)
           
 void modifyPost(java.util.List<Post> posts, int type)
           
 void modifyPost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<Post> posts, int type)
           
 void modifyTopic(java.util.List<Topic> topics, int type)
          Modify topic.
 void modifyTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<Topic> topics, int type)
           
 void moveForum(java.util.List<Forum> forums, java.lang.String destCategoryPath)
          Move forum.
 void moveForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<Forum> forums, java.lang.String destCategoryPath)
           
 void movePost(java.util.List<Post> posts, java.lang.String destTopicPath, boolean isCreatNewTopic, java.lang.String mailContent, java.lang.String link)
           
 void movePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<Post> posts, java.lang.String destTopicPath, boolean isCreatNewTopic, java.lang.String mailContent, java.lang.String link)
           
 void movePost(java.lang.String[] postPaths, java.lang.String destTopicPath, boolean isCreatNewTopic, java.lang.String mailContent, java.lang.String link)
          Move post.
 void moveTopic(java.util.List<Topic> topics, java.lang.String destForumPath, java.lang.String mailContent, java.lang.String link)
          Move topic.
 void moveTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<Topic> topics, java.lang.String destForumPath, java.lang.String mailContent, java.lang.String link)
           
 void registerListenerForCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId)
           
 void registerListenerForCategory(java.lang.String categoryId)
           
 void removeBan(java.lang.String ip)
           
 void removeBanIPForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String ip, java.lang.String forumId)
           
 void removeBanIPForum(java.lang.String ip, java.lang.String forumId)
           
 void removeBBCode(java.lang.String bbcodeId)
           
 Category removeCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId)
           
 Category removeCategory(java.lang.String categoryId)
          Removes the category.
 Forum removeForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId)
           
 Forum removeForum(java.lang.String categoryId, java.lang.String forumId)
          Remove the forum in category identify.
 Poll removePoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
           
 Poll removePoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
          Removes the poll.
 Post removePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String postId)
           
 Post removePost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String postId)
          Removes the post.
 void removePrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String messageId, java.lang.String userName, java.lang.String type)
           
 void removePrivateMessage(java.lang.String messageId, java.lang.String userName, java.lang.String type)
          Removes the private message.
 void removeProfile(java.lang.String userId)
           
 Topic removeTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
           
 Topic removeTopic(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
          Removes the topic.
 void removeTopicType(java.lang.String topicTypeId)
           
 void removeWatch(int watchType, java.lang.String path, java.lang.String values)
           
 void removeWatch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, int watchType, java.lang.String path, java.lang.String values)
           
 void runPrune(PruneSetting pSetting)
           
 void runPrune(java.lang.String forumPath)
           
 void saveBBCode(java.util.List<BBCode> bbcodes)
           
 void saveCategory(Category category, boolean isNew)
          Save category.
 void saveCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, Category category, boolean isNew)
           
 void saveCollapsedCategories(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName, java.lang.String categoryId, boolean isAdd)
           
 void saveCollapsedCategories(java.lang.String userName, java.lang.String categoryId, boolean isAdd)
          Save user collapCategories.
 void saveEmailUserProfile(java.lang.String userId, java.lang.String email)
           
 void saveForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, Forum forum, boolean isNew)
           
 void saveForum(java.lang.String categoryId, Forum forum, boolean isNew)
          Save forum.Check exists forum, if not to create new else update exists forum
 void saveForumAdministration(ForumAdministration forumAdministration)
          Save forum administration.
 void saveForumAdministration(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, ForumAdministration forumAdministration)
           
 void saveForumStatistic(ForumStatistic forumStatistic)
          Save forum statistic.
 void saveForumStatistic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, ForumStatistic forumStatistic)
           
 void saveForumSubscription(ForumSubscription forumSubscription, java.lang.String userId)
           
 void saveLastPostIdRead(java.lang.String userId, java.lang.String[] lastReadPostOfForum, java.lang.String[] lastReadPostOfTopic)
           
 void saveModerateOfForums(java.util.List<java.lang.String> forumPaths, java.lang.String userName, boolean isDelete)
          Save user is moderator of list forum
 void saveModerateOfForums(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.util.List<java.lang.String> forumPaths, java.lang.String userName, boolean isDelete)
           
 void saveModOfCategory(java.util.List<java.lang.String> moderatorCate, java.lang.String userId, boolean isAdd)
           
 void savePoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Poll poll, boolean isNew, boolean isVote)
           
 void savePoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Poll poll, boolean isNew, boolean isVote)
          Save poll.
 void savePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Post post, boolean isNew, java.lang.String defaultEmailContent)
           
 void savePost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Post post, boolean isNew, java.lang.String defaultEmailContent)
          This method should: 1.
 void savePrivateMessage(ForumPrivateMessage privateMessage)
          Save private message.
 void savePrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, ForumPrivateMessage privateMessage)
           
 void savePruneSetting(PruneSetting pruneSetting)
           
 void savePruneSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, PruneSetting pruneSetting)
           
 void saveReadMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String messageId, java.lang.String userName, java.lang.String type)
           
 void saveReadMessage(java.lang.String messageId, java.lang.String userName, java.lang.String type)
          Save read message.
 void saveTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, Tag newTag)
           
 void saveTag(Tag newTag)
          Save tag.
 void saveTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, Topic topic, boolean isNew, boolean isMove, java.lang.String defaultEmailContent)
           
 void saveTopic(java.lang.String categoryId, java.lang.String forumId, Topic topic, boolean isNew, boolean isMove, java.lang.String defaultEmailContent)
          Save topic.
 void saveTopicType(TopicType topicType)
           
 void saveUserAvatar(java.lang.String userId, ForumAttachment fileAttachment)
           
 void saveUserAvatar(java.lang.String userId, ForumAttachment fileAttachment, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 void saveUserBookmark(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userName, java.lang.String bookMark, boolean isNew)
           
 void saveUserBookmark(java.lang.String userName, java.lang.String bookMark, boolean isNew)
          Save user bookmark.
 void saveUserModerator(java.lang.String userName, java.util.List<java.lang.String> ids, boolean isModeCate)
           
 void saveUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, UserProfile userProfile, boolean isOption, boolean isBan)
           
 void saveUserProfile(UserProfile userProfile, boolean isOption, boolean isBan)
          Save user profile.
 void saveUserSettingProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, UserProfile userProfile)
           
 void saveUserSettingProfile(UserProfile userProfile)
           
 javax.jcr.NodeIterator search(java.lang.String queryString)
           
 javax.jcr.NodeIterator search(java.lang.String queryString, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 JCRPageList searchUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String userSearch)
           
 JCRPageList searchUserProfile(java.lang.String userSearch)
          Gets the user profile.
 void setClosedPoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Poll poll)
           
 void setClosedPoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Poll poll)
          Sets the closed poll.
 void setDefaultAvatar(java.lang.String userName)
           
 void setDefaultAvatar(java.lang.String userName, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 void setViewCountTopic(java.lang.String path, java.lang.String userRead)
           
 void start()
           
 void stop()
           
 void unRegisterListenerForCategory(java.lang.String path)
           
 void unTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider, java.lang.String tagId, java.lang.String userName, java.lang.String topicPath)
           
 void unTag(java.lang.String tagId, java.lang.String userName, java.lang.String topicPath)
          UnTag the topic in tag.
 void updateDataImported()
           
 void updateEmailWatch(java.util.List<java.lang.String> listNodeId, java.lang.String newEmailAdd, java.lang.String userId)
           
 void updateEmailWatch(java.util.List<java.lang.String> listNodeId, java.lang.String newEmailAdd, java.lang.String userId, org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 void updateForum(java.lang.String path)
           
 void updateForumAccess(java.lang.String userId, java.lang.String forumId)
           
 void updateForumStatistic()
           
 void updateForumStatistic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 void updateLoggedinUsers()
           
 void updateStatisticCounts(long topicCount, long postCount)
           
 void updateTopicAccess(java.lang.String userId, java.lang.String topicId)
           
 void updateUserProfile(org.exoplatform.services.organization.User user)
           
 void updateUserProfileInfo(java.lang.String name)
           
 UserProfile updateUserProfileSetting(UserProfile userProfile)
           
 void userLogin(java.lang.String userId)
          User login.
 void userLogout(java.lang.String userId)
          User logout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForumServiceImpl

public ForumServiceImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                        org.exoplatform.services.jcr.RepositoryService rService,
                        org.exoplatform.container.xml.InitParams params)
                 throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

addInitRssPlugin

public void addInitRssPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                      throws java.lang.Exception
Specified by:
addInitRssPlugin in interface ForumService
Throws:
java.lang.Exception

addPlugin

public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
               throws java.lang.Exception
Description copied from interface: ForumService
Adds the plugin.

Specified by:
addPlugin in interface ForumService
Parameters:
plugin - the plugin
Throws:
java.lang.Exception - the exception

addRolePlugin

public void addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                   throws java.lang.Exception
Description copied from interface: ForumService
Adds the plugin.

Specified by:
addRolePlugin in interface ForumService
Parameters:
plugin - the plugin
Throws:
java.lang.Exception - the exception

addInitialDataPlugin

public void addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                          throws java.lang.Exception
Description copied from interface: ForumService
Adds the plugin.

Specified by:
addInitialDataPlugin in interface ForumService
Parameters:
plugin - the plugin
Throws:
java.lang.Exception - the exception

addInitBBCodePlugin

public void addInitBBCodePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                         throws java.lang.Exception
Description copied from interface: ForumService
Adds the plugin.

Specified by:
addInitBBCodePlugin in interface ForumService
Parameters:
plugin - the plugin
Throws:
java.lang.Exception - the exception

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

updateForumStatistic

public void updateForumStatistic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                          throws java.lang.Exception
Specified by:
updateForumStatistic in interface ForumServiceLegacy
Throws:
java.lang.Exception

updateForumStatistic

public void updateForumStatistic()
                          throws java.lang.Exception
Specified by:
updateForumStatistic in interface ForumService
Throws:
java.lang.Exception

createUserProfile

public void createUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                              org.exoplatform.services.organization.User user)
                       throws java.lang.Exception
Specified by:
createUserProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

createUserProfile

public void createUserProfile(org.exoplatform.services.organization.User user)
                       throws java.lang.Exception
Specified by:
createUserProfile in interface ForumService
Throws:
java.lang.Exception

saveEmailUserProfile

public void saveEmailUserProfile(java.lang.String userId,
                                 java.lang.String email)
                          throws java.lang.Exception
Specified by:
saveEmailUserProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

updateUserProfile

public void updateUserProfile(org.exoplatform.services.organization.User user)
                       throws java.lang.Exception
Specified by:
updateUserProfile in interface ForumService
Throws:
java.lang.Exception

saveCategory

public void saveCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                         Category category,
                         boolean isNew)
                  throws java.lang.Exception
Specified by:
saveCategory in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveCategory

public void saveCategory(Category category,
                         boolean isNew)
                  throws java.lang.Exception
Description copied from interface: ForumService
Save category. Check exists category, if not to create new else update exists category

Specified by:
saveCategory in interface ForumService
Parameters:
category - is the category
isNew - is the true when add new category or false when update category.
Throws:
java.lang.Exception - the exception

calculateModerator

public void calculateModerator(java.lang.String categoryPath,
                               boolean isNew)
                        throws java.lang.Exception
Specified by:
calculateModerator in interface ForumService
Throws:
java.lang.Exception

getCategory

public Category getCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                            java.lang.String categoryId)
                     throws java.lang.Exception
Specified by:
getCategory in interface ForumServiceLegacy
Throws:
java.lang.Exception

getCategory

public Category getCategory(java.lang.String categoryId)
                     throws java.lang.Exception
Description copied from interface: ForumService
Gets the category.

Specified by:
getCategory in interface ForumService
Parameters:
categoryId - is the id of category.
Returns:
the category
Throws:
java.lang.Exception - the exception

getPermissionTopicByCategory

public java.lang.String[] getPermissionTopicByCategory(java.lang.String categoryId,
                                                       java.lang.String type)
                                                throws java.lang.Exception
Specified by:
getPermissionTopicByCategory in interface ForumService
Throws:
java.lang.Exception

getCategories

public java.util.List<Category> getCategories(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                       throws java.lang.Exception
Specified by:
getCategories in interface ForumServiceLegacy
Throws:
java.lang.Exception

getCategories

public java.util.List<Category> getCategories()
                                       throws java.lang.Exception
Description copied from interface: ForumService
Gets the categories.

Specified by:
getCategories in interface ForumService
Returns:
the list category
Throws:
java.lang.Exception - the exception

removeCategory

public Category removeCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                               java.lang.String categoryId)
                        throws java.lang.Exception
Specified by:
removeCategory in interface ForumServiceLegacy
Throws:
java.lang.Exception

removeCategory

public Category removeCategory(java.lang.String categoryId)
                        throws java.lang.Exception
Description copied from interface: ForumService
Removes the category. Check exists of category and remove it

Specified by:
removeCategory in interface ForumService
Parameters:
categoryId - is the id of category removed
Returns:
the category
Throws:
java.lang.Exception - the exception

saveModOfCategory

public void saveModOfCategory(java.util.List<java.lang.String> moderatorCate,
                              java.lang.String userId,
                              boolean isAdd)
Specified by:
saveModOfCategory in interface ForumService

modifyForum

public void modifyForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                        Forum forum,
                        int type)
                 throws java.lang.Exception
Specified by:
modifyForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

modifyForum

public void modifyForum(Forum forum,
                        int type)
                 throws java.lang.Exception
Description copied from interface: ForumService
Modify this forum identify.

Specified by:
modifyForum in interface ForumService
Parameters:
forum - is the object forum that should be modified
type - is choose when modify this forum.
Throws:
java.lang.Exception - the exception

saveForum

public void saveForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                      java.lang.String categoryId,
                      Forum forum,
                      boolean isNew)
               throws java.lang.Exception
Specified by:
saveForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveForum

public void saveForum(java.lang.String categoryId,
                      Forum forum,
                      boolean isNew)
               throws java.lang.Exception
Description copied from interface: ForumService
Save forum.Check exists forum, if not to create new else update exists forum

Specified by:
saveForum in interface ForumService
Parameters:
categoryId - is the id of category identify.
forum - is the object forum need save.
isNew - is the new
Throws:
java.lang.Exception - the exception

saveModerateOfForums

public void saveModerateOfForums(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                 java.util.List<java.lang.String> forumPaths,
                                 java.lang.String userName,
                                 boolean isDelete)
                          throws java.lang.Exception
Specified by:
saveModerateOfForums in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveModerateOfForums

public void saveModerateOfForums(java.util.List<java.lang.String> forumPaths,
                                 java.lang.String userName,
                                 boolean isDelete)
                          throws java.lang.Exception
Description copied from interface: ForumService
Save user is moderator of list forum

Specified by:
saveModerateOfForums in interface ForumService
Parameters:
forumPaths - is the list path of forums, one forum have only path.
userName - is the userId of Account login of portal system.
isDelete - is false when you want to add userId into list moderator of forums isDelete is true when you want to remove userId from list moderator of forums.
Throws:
java.lang.Exception - the exception

moveForum

public void moveForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                      java.util.List<Forum> forums,
                      java.lang.String destCategoryPath)
               throws java.lang.Exception
Specified by:
moveForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

moveForum

public void moveForum(java.util.List<Forum> forums,
                      java.lang.String destCategoryPath)
               throws java.lang.Exception
Description copied from interface: ForumService
Move forum. Move list forum to category by path of category

Specified by:
moveForum in interface ForumService
Parameters:
forums - is the list object forum
destCategoryPath - is the destination path of category
Throws:
java.lang.Exception - the exception

getForum

public Forum getForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                      java.lang.String categoryId,
                      java.lang.String forumId)
               throws java.lang.Exception
Specified by:
getForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

getForum

public Forum getForum(java.lang.String categoryId,
                      java.lang.String forumId)
               throws java.lang.Exception
Description copied from interface: ForumService
Gets the forum in the category identify.

Specified by:
getForum in interface ForumService
Parameters:
categoryId - is the id of category identify.
forumId - is the id of forum identify.
Returns:
the forum
Throws:
java.lang.Exception - the exception

getForums

public java.util.List<Forum> getForums(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                       java.lang.String categoryId,
                                       java.lang.String strQuery)
                                throws java.lang.Exception
Specified by:
getForums in interface ForumServiceLegacy
Throws:
java.lang.Exception

getForums

public java.util.List<Forum> getForums(java.lang.String categoryId,
                                       java.lang.String strQuery)
                                throws java.lang.Exception
Description copied from interface: ForumService
Gets the forums in the category identify.

Specified by:
getForums in interface ForumService
Parameters:
categoryId - is the id of category have list forum
Returns:
the list forum
Throws:
java.lang.Exception - the exception

getForumSummaries

public java.util.List<Forum> getForumSummaries(java.lang.String categoryId,
                                               java.lang.String strQuery)
                                        throws java.lang.Exception
Specified by:
getForumSummaries in interface ForumService
Throws:
java.lang.Exception

removeForum

public Forum removeForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                         java.lang.String categoryId,
                         java.lang.String forumId)
                  throws java.lang.Exception
Specified by:
removeForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

removeForum

public Forum removeForum(java.lang.String categoryId,
                         java.lang.String forumId)
                  throws java.lang.Exception
Description copied from interface: ForumService
Remove the forum in category identify.

Specified by:
removeForum in interface ForumService
Parameters:
categoryId - is the id of category.
forumId - is the id of forum need remove.
Returns:
the forum
Throws:
java.lang.Exception - the exception

modifyTopic

public void modifyTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                        java.util.List<Topic> topics,
                        int type)
                 throws java.lang.Exception
Specified by:
modifyTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

modifyTopic

public void modifyTopic(java.util.List<Topic> topics,
                        int type)
                 throws java.lang.Exception
Description copied from interface: ForumService
Modify topic.

Specified by:
modifyTopic in interface ForumService
Parameters:
topics - the topics
type - the type
Throws:
java.lang.Exception - the exception

saveTopic

public void saveTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                      java.lang.String categoryId,
                      java.lang.String forumId,
                      Topic topic,
                      boolean isNew,
                      boolean isMove,
                      java.lang.String defaultEmailContent)
               throws java.lang.Exception
Specified by:
saveTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveTopic

public void saveTopic(java.lang.String categoryId,
                      java.lang.String forumId,
                      Topic topic,
                      boolean isNew,
                      boolean isMove,
                      java.lang.String defaultEmailContent)
               throws java.lang.Exception
Description copied from interface: ForumService
Save topic.

Specified by:
saveTopic in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topic - the topic
isNew - is the new
isMove - is the move
Throws:
java.lang.Exception - the exception

getTopic

public Topic getTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                      java.lang.String categoryId,
                      java.lang.String forumId,
                      java.lang.String topicId,
                      java.lang.String userRead)
               throws java.lang.Exception
Specified by:
getTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

getTopic

public Topic getTopic(java.lang.String categoryId,
                      java.lang.String forumId,
                      java.lang.String topicId,
                      java.lang.String userRead)
               throws java.lang.Exception
Description copied from interface: ForumService
Gets the topic.

Specified by:
getTopic in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
userRead - the user read
Returns:
the topic
Throws:
java.lang.Exception - the exception

setViewCountTopic

public void setViewCountTopic(java.lang.String path,
                              java.lang.String userRead)
                       throws java.lang.Exception
Specified by:
setViewCountTopic in interface ForumService
Throws:
java.lang.Exception

getTopicByPath

public Topic getTopicByPath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                            java.lang.String topicPath,
                            boolean isLastPost)
                     throws java.lang.Exception
Specified by:
getTopicByPath in interface ForumServiceLegacy
Throws:
java.lang.Exception

getTopicSummary

public Topic getTopicSummary(java.lang.String topicPath)
                      throws java.lang.Exception
Specified by:
getTopicSummary in interface ForumService
Throws:
java.lang.Exception

getTopicByPath

public Topic getTopicByPath(java.lang.String topicPath,
                            boolean isLastPost)
                     throws java.lang.Exception
Description copied from interface: ForumService
Gets the topic by path.

Specified by:
getTopicByPath in interface ForumService
Parameters:
topicPath - the topic path
isLastPost - is the last post
Returns:
the topic by path
Throws:
java.lang.Exception - the exception

getPageTopic

public JCRPageList getPageTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                java.lang.String categoryId,
                                java.lang.String forumId,
                                java.lang.String strQuery,
                                java.lang.String strOrderBy)
                         throws java.lang.Exception
Specified by:
getPageTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

getTopicList

public LazyPageList<Topic> getTopicList(java.lang.String categoryId,
                                        java.lang.String forumId,
                                        java.lang.String strQuery,
                                        java.lang.String strOrderBy,
                                        int pageSize)
                                 throws java.lang.Exception
Specified by:
getTopicList in interface ForumService
Throws:
java.lang.Exception

getPageTopic

public JCRPageList getPageTopic(java.lang.String categoryId,
                                java.lang.String forumId,
                                java.lang.String strQuery,
                                java.lang.String strOrderBy)
                         throws java.lang.Exception
Description copied from interface: ForumService
Gets the page topic in forum identify.

Specified by:
getPageTopic in interface ForumService
Parameters:
categoryId - is the id of category
forumId - is the id of forum
strQuery - is a string. It's content have command Query. This function will return page topic suitable to content of that strQuery
Returns:
the page topic
Throws:
java.lang.Exception - the exception

getTopics

public java.util.List<Topic> getTopics(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                       java.lang.String categoryId,
                                       java.lang.String forumId)
                                throws java.lang.Exception
Specified by:
getTopics in interface ForumServiceLegacy
Throws:
java.lang.Exception

getTopics

public java.util.List<Topic> getTopics(java.lang.String categoryId,
                                       java.lang.String forumId)
                                throws java.lang.Exception
Description copied from interface: ForumService
Gets the topics.

Specified by:
getTopics in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
Returns:
the topics
Throws:
java.lang.Exception - the exception

moveTopic

public void moveTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                      java.util.List<Topic> topics,
                      java.lang.String destForumPath,
                      java.lang.String mailContent,
                      java.lang.String link)
               throws java.lang.Exception
Specified by:
moveTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

moveTopic

public void moveTopic(java.util.List<Topic> topics,
                      java.lang.String destForumPath,
                      java.lang.String mailContent,
                      java.lang.String link)
               throws java.lang.Exception
Description copied from interface: ForumService
Move topic.

Specified by:
moveTopic in interface ForumService
Parameters:
topics - the topics
destForumPath - the dest forum path
Throws:
java.lang.Exception - the exception

removeTopic

public Topic removeTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                         java.lang.String categoryId,
                         java.lang.String forumId,
                         java.lang.String topicId)
                  throws java.lang.Exception
Specified by:
removeTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

removeTopic

public Topic removeTopic(java.lang.String categoryId,
                         java.lang.String forumId,
                         java.lang.String topicId)
                  throws java.lang.Exception
Description copied from interface: ForumService
Removes the topic.

Specified by:
removeTopic in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
Returns:
the topic
Throws:
java.lang.Exception - the exception

getPost

public Post getPost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                    java.lang.String categoryId,
                    java.lang.String forumId,
                    java.lang.String topicId,
                    java.lang.String postId)
             throws java.lang.Exception
Specified by:
getPost in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPost

public Post getPost(java.lang.String categoryId,
                    java.lang.String forumId,
                    java.lang.String topicId,
                    java.lang.String postId)
             throws java.lang.Exception
Description copied from interface: ForumService
This method should: 1. Check the user permission 2. Load the Page Post data from the database

Specified by:
getPost in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
postId - the post id
Returns:
the post
Throws:
java.lang.Exception - the exception

getLastReadIndex

public long getLastReadIndex(java.lang.String path,
                             java.lang.String isApproved,
                             java.lang.String isHidden,
                             java.lang.String userLogin)
                      throws java.lang.Exception
Specified by:
getLastReadIndex in interface ForumService
Throws:
java.lang.Exception

getPostForSplitTopic

public JCRPageList getPostForSplitTopic(java.lang.String topicPath)
                                 throws java.lang.Exception
Description copied from interface: ForumService
Gets the posts.

Specified by:
getPostForSplitTopic in interface ForumService
Returns:
the posts
Throws:
java.lang.Exception - the exception

getPosts

public JCRPageList getPosts(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                            java.lang.String categoryId,
                            java.lang.String forumId,
                            java.lang.String topicId,
                            java.lang.String isApproved,
                            java.lang.String isHidden,
                            java.lang.String strQuery,
                            java.lang.String userLogin)
                     throws java.lang.Exception
Specified by:
getPosts in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPosts

public JCRPageList getPosts(java.lang.String categoryId,
                            java.lang.String forumId,
                            java.lang.String topicId,
                            java.lang.String isApproved,
                            java.lang.String isHidden,
                            java.lang.String strQuery,
                            java.lang.String userLogin)
                     throws java.lang.Exception
Specified by:
getPosts in interface ForumService
Throws:
java.lang.Exception

getAvailablePost

public long getAvailablePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                             java.lang.String categoryId,
                             java.lang.String forumId,
                             java.lang.String topicId,
                             java.lang.String isApproved,
                             java.lang.String isHidden,
                             java.lang.String userLogin)
                      throws java.lang.Exception
Specified by:
getAvailablePost in interface ForumServiceLegacy
Throws:
java.lang.Exception

getAvailablePost

public long getAvailablePost(java.lang.String categoryId,
                             java.lang.String forumId,
                             java.lang.String topicId,
                             java.lang.String isApproved,
                             java.lang.String isHidden,
                             java.lang.String userLogin)
                      throws java.lang.Exception
Specified by:
getAvailablePost in interface ForumService
Throws:
java.lang.Exception

savePost

public void savePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                     java.lang.String categoryId,
                     java.lang.String forumId,
                     java.lang.String topicId,
                     Post post,
                     boolean isNew,
                     java.lang.String defaultEmailContent)
              throws java.lang.Exception
Specified by:
savePost in interface ForumServiceLegacy
Throws:
java.lang.Exception

savePost

public void savePost(java.lang.String categoryId,
                     java.lang.String forumId,
                     java.lang.String topicId,
                     Post post,
                     boolean isNew,
                     java.lang.String defaultEmailContent)
              throws java.lang.Exception
Description copied from interface: ForumService
This method should: 1. Check the user permission 2. Check the madatory field of the post 3. Save the post data into the database 4. Invalidate the TopicView data cache

Specified by:
savePost in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
post - the post
isNew - is the new
Throws:
java.lang.Exception - the exception

modifyPost

public void modifyPost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                       java.util.List<Post> posts,
                       int type)
                throws java.lang.Exception
Specified by:
modifyPost in interface ForumServiceLegacy
Throws:
java.lang.Exception

modifyPost

public void modifyPost(java.util.List<Post> posts,
                       int type)
                throws java.lang.Exception
Specified by:
modifyPost in interface ForumService
Throws:
java.lang.Exception

movePost

public void movePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                     java.util.List<Post> posts,
                     java.lang.String destTopicPath,
                     boolean isCreatNewTopic,
                     java.lang.String mailContent,
                     java.lang.String link)
              throws java.lang.Exception
Specified by:
movePost in interface ForumServiceLegacy
Throws:
java.lang.Exception

movePost

public void movePost(java.util.List<Post> posts,
                     java.lang.String destTopicPath,
                     boolean isCreatNewTopic,
                     java.lang.String mailContent,
                     java.lang.String link)
              throws java.lang.Exception
Specified by:
movePost in interface ForumServiceLegacy
Throws:
java.lang.Exception

movePost

public void movePost(java.lang.String[] postPaths,
                     java.lang.String destTopicPath,
                     boolean isCreatNewTopic,
                     java.lang.String mailContent,
                     java.lang.String link)
              throws java.lang.Exception
Description copied from interface: ForumService
Move post.

Specified by:
movePost in interface ForumService
destTopicPath - the dest topic path
Throws:
java.lang.Exception - the exception

mergeTopic

public void mergeTopic(java.lang.String srcTopicPath,
                       java.lang.String destTopicPath,
                       java.lang.String mailContent,
                       java.lang.String link)
                throws java.lang.Exception
Specified by:
mergeTopic in interface ForumService
Throws:
java.lang.Exception

removePost

public Post removePost(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                       java.lang.String categoryId,
                       java.lang.String forumId,
                       java.lang.String topicId,
                       java.lang.String postId)
                throws java.lang.Exception
Throws:
java.lang.Exception

removePost

public Post removePost(java.lang.String categoryId,
                       java.lang.String forumId,
                       java.lang.String topicId,
                       java.lang.String postId)
                throws java.lang.Exception
Description copied from interface: ForumService
Removes the post.

Specified by:
removePost in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
postId - the post id
Returns:
the post
Throws:
java.lang.Exception - the exception

getObjectNameByPath

public java.lang.Object getObjectNameByPath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                            java.lang.String path)
                                     throws java.lang.Exception
Specified by:
getObjectNameByPath in interface ForumServiceLegacy
Throws:
java.lang.Exception

getObjectNameByPath

public java.lang.Object getObjectNameByPath(java.lang.String path)
                                     throws java.lang.Exception
Description copied from interface: ForumService
Gets the object name by path.

Specified by:
getObjectNameByPath in interface ForumService
Parameters:
path - the path
Returns:
the object name by path
Throws:
java.lang.Exception - the exception

getObjectNameById

public java.lang.Object getObjectNameById(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                          java.lang.String path,
                                          java.lang.String type)
                                   throws java.lang.Exception
Specified by:
getObjectNameById in interface ForumServiceLegacy
Throws:
java.lang.Exception

getObjectNameById

public java.lang.Object getObjectNameById(java.lang.String path,
                                          java.lang.String type)
                                   throws java.lang.Exception
Description copied from interface: ForumService
Gets the object name by path.

Specified by:
getObjectNameById in interface ForumService
Returns:
the object name by path
Throws:
java.lang.Exception - the exception

getAllLink

public java.util.List<ForumLinkData> getAllLink(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                                java.lang.String strQueryCate,
                                                java.lang.String strQueryForum)
                                         throws java.lang.Exception
Specified by:
getAllLink in interface ForumServiceLegacy
Throws:
java.lang.Exception

getAllLink

public java.util.List<ForumLinkData> getAllLink(java.lang.String strQueryCate,
                                                java.lang.String strQueryForum)
                                         throws java.lang.Exception
Description copied from interface: ForumService
Gets the all link.

Specified by:
getAllLink in interface ForumService
Parameters:
strQueryCate - TODO
strQueryForum - TODO
Returns:
the all link
Throws:
java.lang.Exception - the exception

getForumHomePath

public java.lang.String getForumHomePath(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                  throws java.lang.Exception
Specified by:
getForumHomePath in interface ForumServiceLegacy
Throws:
java.lang.Exception

getForumHomePath

public java.lang.String getForumHomePath()
                                  throws java.lang.Exception
Description copied from interface: ForumService
Gets the forum home path.

Specified by:
getForumHomePath in interface ForumService
Returns:
the forum home path
Throws:
java.lang.Exception - the exception

getPoll

public Poll getPoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                    java.lang.String categoryId,
                    java.lang.String forumId,
                    java.lang.String topicId)
             throws java.lang.Exception
Specified by:
getPoll in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPoll

public Poll getPoll(java.lang.String categoryId,
                    java.lang.String forumId,
                    java.lang.String topicId)
             throws java.lang.Exception
Description copied from interface: ForumService
Gets the poll.

Specified by:
getPoll in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
Returns:
the poll
Throws:
java.lang.Exception - the exception

removePoll

public Poll removePoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                       java.lang.String categoryId,
                       java.lang.String forumId,
                       java.lang.String topicId)
                throws java.lang.Exception
Specified by:
removePoll in interface ForumServiceLegacy
Throws:
java.lang.Exception

removePoll

public Poll removePoll(java.lang.String categoryId,
                       java.lang.String forumId,
                       java.lang.String topicId)
                throws java.lang.Exception
Description copied from interface: ForumService
Removes the poll.

Specified by:
removePoll in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
Returns:
the poll
Throws:
java.lang.Exception - the exception

savePoll

public void savePoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                     java.lang.String categoryId,
                     java.lang.String forumId,
                     java.lang.String topicId,
                     Poll poll,
                     boolean isNew,
                     boolean isVote)
              throws java.lang.Exception
Specified by:
savePoll in interface ForumServiceLegacy
Throws:
java.lang.Exception

savePoll

public void savePoll(java.lang.String categoryId,
                     java.lang.String forumId,
                     java.lang.String topicId,
                     Poll poll,
                     boolean isNew,
                     boolean isVote)
              throws java.lang.Exception
Description copied from interface: ForumService
Save poll.

Specified by:
savePoll in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
poll - the poll
isNew - is the new
isVote - is the vote
Throws:
java.lang.Exception - the exception

setClosedPoll

public void setClosedPoll(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                          java.lang.String categoryId,
                          java.lang.String forumId,
                          java.lang.String topicId,
                          Poll poll)
                   throws java.lang.Exception
Specified by:
setClosedPoll in interface ForumServiceLegacy
Throws:
java.lang.Exception

setClosedPoll

public void setClosedPoll(java.lang.String categoryId,
                          java.lang.String forumId,
                          java.lang.String topicId,
                          Poll poll)
                   throws java.lang.Exception
Description copied from interface: ForumService
Sets the closed poll.

Specified by:
setClosedPoll in interface ForumService
Parameters:
categoryId - the category id
forumId - the forum id
topicId - the topic id
poll - the poll
Throws:
java.lang.Exception - the exception

addTag

public void addTag(java.util.List<Tag> tags,
                   java.lang.String userName,
                   java.lang.String topicPath)
            throws java.lang.Exception
Description copied from interface: ForumService
Adds the topic in tag.

Specified by:
addTag in interface ForumService
Parameters:
tags - the list tag is add
topicPath - the topic path
Throws:
java.lang.Exception - the exception

getAllTags

public java.util.List<Tag> getAllTags()
                               throws java.lang.Exception
Description copied from interface: ForumService
Gets the tags.

Specified by:
getAllTags in interface ForumService
Returns:
the tags
Throws:
java.lang.Exception - the exception

getMyTagInTopic

public java.util.List<Tag> getMyTagInTopic(java.lang.String[] tagIds)
                                    throws java.lang.Exception
Description copied from interface: ForumService
Gets the tags by user.

Specified by:
getMyTagInTopic in interface ForumService
Parameters:
tagIds - the list tag id of user tag in topic.
Returns:
the tags by user add in topic
Throws:
java.lang.Exception - the exception

getTag

public Tag getTag(java.lang.String tagId)
           throws java.lang.Exception
Description copied from interface: ForumService
Gets the tag.

Specified by:
getTag in interface ForumService
Parameters:
tagId - the tag id
Returns:
the tag
Throws:
java.lang.Exception - the exception

getAllTagName

public java.util.List<java.lang.String> getAllTagName(java.lang.String strQuery,
                                                      java.lang.String userAndTopicId)
                                               throws java.lang.Exception
Specified by:
getAllTagName in interface ForumService
Throws:
java.lang.Exception

getTagNameInTopic

public java.util.List<java.lang.String> getTagNameInTopic(java.lang.String userAndTopicId)
                                                   throws java.lang.Exception
Specified by:
getTagNameInTopic in interface ForumService
Throws:
java.lang.Exception

getTopicByMyTag

public JCRPageList getTopicByMyTag(java.lang.String userIdAndtagId,
                                   java.lang.String strOrderBy)
                            throws java.lang.Exception
Description copied from interface: ForumService
Gets the topics by tag.

Specified by:
getTopicByMyTag in interface ForumService
Parameters:
userIdAndtagId - the user id and tag id (userId:tagId)
strOrderBy - the topic order by
Returns:
the topics by tag of user tag
Throws:
java.lang.Exception - the exception

saveTag

public void saveTag(Tag newTag)
             throws java.lang.Exception
Description copied from interface: ForumService
Save tag.

Specified by:
saveTag in interface ForumService
Parameters:
newTag - the new tag
Throws:
java.lang.Exception - the exception

unTag

public void unTag(java.lang.String tagId,
                  java.lang.String userName,
                  java.lang.String topicPath)
           throws java.lang.Exception
Description copied from interface: ForumService
UnTag the topic in tag.

Specified by:
unTag in interface ForumService
Parameters:
tagId - the tag id
userName - the user id
topicPath - the topic path
Throws:
java.lang.Exception - the exception

addTag

public void addTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                   java.util.List<Tag> tags,
                   java.lang.String userName,
                   java.lang.String topicPath)
            throws java.lang.Exception
Specified by:
addTag in interface ForumServiceLegacy
Throws:
java.lang.Exception

getAllTags

public java.util.List<Tag> getAllTags(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                               throws java.lang.Exception
Specified by:
getAllTags in interface ForumServiceLegacy
Throws:
java.lang.Exception

getMyTagInTopic

public java.util.List<Tag> getMyTagInTopic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                           java.lang.String[] tagIds)
                                    throws java.lang.Exception
Specified by:
getMyTagInTopic in interface ForumServiceLegacy
Throws:
java.lang.Exception

getTag

public Tag getTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                  java.lang.String tagId)
           throws java.lang.Exception
Specified by:
getTag in interface ForumServiceLegacy
Throws:
java.lang.Exception

getTopicByMyTag

public JCRPageList getTopicByMyTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                   java.lang.String userIdAndtagId,
                                   java.lang.String strOrderBy)
                            throws java.lang.Exception
Specified by:
getTopicByMyTag in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveTag

public void saveTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                    Tag newTag)
             throws java.lang.Exception
Specified by:
saveTag in interface ForumServiceLegacy
Throws:
java.lang.Exception

unTag

public void unTag(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                  java.lang.String tagId,
                  java.lang.String userName,
                  java.lang.String topicPath)
           throws java.lang.Exception
Specified by:
unTag in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveUserModerator

public void saveUserModerator(java.lang.String userName,
                              java.util.List<java.lang.String> ids,
                              boolean isModeCate)
                       throws java.lang.Exception
Specified by:
saveUserModerator in interface ForumService
Throws:
java.lang.Exception

saveUserProfile

public void saveUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                            UserProfile userProfile,
                            boolean isOption,
                            boolean isBan)
                     throws java.lang.Exception
Specified by:
saveUserProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveUserProfile

public void saveUserProfile(UserProfile userProfile,
                            boolean isOption,
                            boolean isBan)
                     throws java.lang.Exception
Description copied from interface: ForumService
Save user profile.

Specified by:
saveUserProfile in interface ForumService
Parameters:
userProfile - the user profile
isOption - is the option
isBan - is the ban
Throws:
java.lang.Exception - the exception

getUserInfo

public UserProfile getUserInfo(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                               java.lang.String userName)
                        throws java.lang.Exception
Specified by:
getUserInfo in interface ForumServiceLegacy
Throws:
java.lang.Exception

getUserInfo

public UserProfile getUserInfo(java.lang.String userName)
                        throws java.lang.Exception
Description copied from interface: ForumService
Gets the user info.

Specified by:
getUserInfo in interface ForumService
Parameters:
userName - the user name
Returns:
the user info
Throws:
java.lang.Exception - the exception

getUserModerator

public java.util.List<java.lang.String> getUserModerator(java.lang.String userName,
                                                         boolean isModeCate)
                                                  throws java.lang.Exception
Specified by:
getUserModerator in interface ForumService
Throws:
java.lang.Exception

getUserProfileManagement

public UserProfile getUserProfileManagement(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                            java.lang.String userName)
                                     throws java.lang.Exception
Specified by:
getUserProfileManagement in interface ForumServiceLegacy
Throws:
java.lang.Exception

getUserProfileManagement

public UserProfile getUserProfileManagement(java.lang.String userName)
                                     throws java.lang.Exception
Specified by:
getUserProfileManagement in interface ForumService
Throws:
java.lang.Exception

saveLastPostIdRead

public void saveLastPostIdRead(java.lang.String userId,
                               java.lang.String[] lastReadPostOfForum,
                               java.lang.String[] lastReadPostOfTopic)
                        throws java.lang.Exception
Specified by:
saveLastPostIdRead in interface ForumService
Throws:
java.lang.Exception

saveUserBookmark

public void saveUserBookmark(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                             java.lang.String userName,
                             java.lang.String bookMark,
                             boolean isNew)
                      throws java.lang.Exception
Specified by:
saveUserBookmark in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveUserBookmark

public void saveUserBookmark(java.lang.String userName,
                             java.lang.String bookMark,
                             boolean isNew)
                      throws java.lang.Exception
Description copied from interface: ForumService
Save user bookmark.

Specified by:
saveUserBookmark in interface ForumService
Parameters:
userName - the user name
bookMark - the book mark
isNew - is the new
Throws:
java.lang.Exception - the exception

saveCollapsedCategories

public void saveCollapsedCategories(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                    java.lang.String userName,
                                    java.lang.String categoryId,
                                    boolean isAdd)
                             throws java.lang.Exception
Specified by:
saveCollapsedCategories in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveCollapsedCategories

public void saveCollapsedCategories(java.lang.String userName,
                                    java.lang.String categoryId,
                                    boolean isAdd)
                             throws java.lang.Exception
Description copied from interface: ForumService
Save user collapCategories.

Specified by:
saveCollapsedCategories in interface ForumService
Parameters:
userName - the user name
categoryId - the book mark
Throws:
java.lang.Exception - the exception

getPageListUserProfile

public JCRPageList getPageListUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                   throws java.lang.Exception
Specified by:
getPageListUserProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPageListUserProfile

public JCRPageList getPageListUserProfile()
                                   throws java.lang.Exception
Description copied from interface: ForumService
Gets the page list user profile.

Specified by:
getPageListUserProfile in interface ForumService
Returns:
the page list user profile
Throws:
java.lang.Exception - the exception

getPrivateMessage

public JCRPageList getPrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                     java.lang.String userName,
                                     java.lang.String type)
                              throws java.lang.Exception
Specified by:
getPrivateMessage in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPrivateMessage

public JCRPageList getPrivateMessage(java.lang.String userName,
                                     java.lang.String type)
                              throws java.lang.Exception
Description copied from interface: ForumService
Gets the private message.

Specified by:
getPrivateMessage in interface ForumService
Parameters:
userName - the user name
type - the type
Returns:
the private message
Throws:
java.lang.Exception - the exception

getNewPrivateMessage

public long getNewPrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                 java.lang.String userName)
                          throws java.lang.Exception
Specified by:
getNewPrivateMessage in interface ForumServiceLegacy
Throws:
java.lang.Exception

getNewPrivateMessage

public long getNewPrivateMessage(java.lang.String userName)
                          throws java.lang.Exception
Specified by:
getNewPrivateMessage in interface ForumService
Throws:
java.lang.Exception

removePrivateMessage

public void removePrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                 java.lang.String messageId,
                                 java.lang.String userName,
                                 java.lang.String type)
                          throws java.lang.Exception
Specified by:
removePrivateMessage in interface ForumServiceLegacy
Throws:
java.lang.Exception

removePrivateMessage

public void removePrivateMessage(java.lang.String messageId,
                                 java.lang.String userName,
                                 java.lang.String type)
                          throws java.lang.Exception
Description copied from interface: ForumService
Removes the private message.

Specified by:
removePrivateMessage in interface ForumService
Parameters:
messageId - the message id
userName - the user name
type - the type
Throws:
java.lang.Exception - the exception

saveReadMessage

public void saveReadMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                            java.lang.String messageId,
                            java.lang.String userName,
                            java.lang.String type)
                     throws java.lang.Exception
Specified by:
saveReadMessage in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveReadMessage

public void saveReadMessage(java.lang.String messageId,
                            java.lang.String userName,
                            java.lang.String type)
                     throws java.lang.Exception
Description copied from interface: ForumService
Save read message.

Specified by:
saveReadMessage in interface ForumService
Parameters:
messageId - the message id
userName - the user name
type - the type
Throws:
java.lang.Exception - the exception

savePrivateMessage

public void savePrivateMessage(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                               ForumPrivateMessage privateMessage)
                        throws java.lang.Exception
Specified by:
savePrivateMessage in interface ForumServiceLegacy
Throws:
java.lang.Exception

savePrivateMessage

public void savePrivateMessage(ForumPrivateMessage privateMessage)
                        throws java.lang.Exception
Description copied from interface: ForumService
Save private message.

Specified by:
savePrivateMessage in interface ForumService
Parameters:
privateMessage - the private message
Throws:
java.lang.Exception - the exception

getForumSubscription

public ForumSubscription getForumSubscription(java.lang.String userId)
                                       throws java.lang.Exception
Description copied from interface: ForumService
Adds the watch.

Specified by:
getForumSubscription in interface ForumService
Throws:
java.lang.Exception - the exception

saveForumSubscription

public void saveForumSubscription(ForumSubscription forumSubscription,
                                  java.lang.String userId)
                           throws java.lang.Exception
Specified by:
saveForumSubscription in interface ForumService
Throws:
java.lang.Exception

getPageTopicOld

public JCRPageList getPageTopicOld(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                   long date,
                                   java.lang.String forumPatch)
                            throws java.lang.Exception
Specified by:
getPageTopicOld in interface ForumServiceLegacy
forumPatch - Patch of forum Node
Throws:
java.lang.Exception

getPageTopicOld

public JCRPageList getPageTopicOld(long date,
                                   java.lang.String forumPatch)
                            throws java.lang.Exception
Description copied from interface: ForumService
Gets the page topic old.

Specified by:
getPageTopicOld in interface ForumService
Parameters:
date - the date
forumPatch - TODO
Returns:
the page topic old
Throws:
java.lang.Exception - the exception

getAllTopicsOld

public java.util.List<Topic> getAllTopicsOld(long date,
                                             java.lang.String forumPatch)
                                      throws java.lang.Exception
Specified by:
getAllTopicsOld in interface ForumService
Throws:
java.lang.Exception

getAllTopicsOld

public java.util.List<Topic> getAllTopicsOld(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                             long date,
                                             java.lang.String forumPatch)
                                      throws java.lang.Exception
Specified by:
getAllTopicsOld in interface ForumServiceLegacy
forumPatch - Patch of forum Node
Throws:
java.lang.Exception

getTotalTopicOld

public long getTotalTopicOld(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                             long date,
                             java.lang.String forumPatch)
                      throws java.lang.Exception
Specified by:
getTotalTopicOld in interface ForumServiceLegacy
forumPatch - Patch of forum Node
Throws:
java.lang.Exception

getTotalTopicOld

public long getTotalTopicOld(long date,
                             java.lang.String forumPatch)
Specified by:
getTotalTopicOld in interface ForumService

getPageTopicByUser

public JCRPageList getPageTopicByUser(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                      java.lang.String userName,
                                      boolean isMod,
                                      java.lang.String strOrderBy)
                               throws java.lang.Exception
Specified by:
getPageTopicByUser in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPageTopicByUser

public JCRPageList getPageTopicByUser(java.lang.String userName,
                                      boolean isMod,
                                      java.lang.String strOrderBy)
                               throws java.lang.Exception
Description copied from interface: ForumService
Gets the page topic by user.

Specified by:
getPageTopicByUser in interface ForumService
Parameters:
userName - the user name
strOrderBy - TODO
Returns:
the page topic by user
Throws:
java.lang.Exception - the exception

getPagePostByUser

public JCRPageList getPagePostByUser(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                     java.lang.String userName,
                                     java.lang.String userId,
                                     boolean isMod,
                                     java.lang.String strOrderBy)
                              throws java.lang.Exception
Specified by:
getPagePostByUser in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPagePostByUser

public JCRPageList getPagePostByUser(java.lang.String userName,
                                     java.lang.String userId,
                                     boolean isMod,
                                     java.lang.String strOrderBy)
                              throws java.lang.Exception
Description copied from interface: ForumService
Gets the page post by user.

Specified by:
getPagePostByUser in interface ForumService
Parameters:
userName - the user name
userId - TODO
isMod - TODO
Returns:
the page post by user
Throws:
java.lang.Exception - the exception

getForumStatistic

public ForumStatistic getForumStatistic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                 throws java.lang.Exception
Specified by:
getForumStatistic in interface ForumServiceLegacy
Throws:
java.lang.Exception

getForumStatistic

public ForumStatistic getForumStatistic()
                                 throws java.lang.Exception
Description copied from interface: ForumService
Gets the forum statistic.

Specified by:
getForumStatistic in interface ForumService
Returns:
the forum statistic
Throws:
java.lang.Exception - the exception

saveForumStatistic

public void saveForumStatistic(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                               ForumStatistic forumStatistic)
                        throws java.lang.Exception
Specified by:
saveForumStatistic in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveForumStatistic

public void saveForumStatistic(ForumStatistic forumStatistic)
                        throws java.lang.Exception
Description copied from interface: ForumService
Save forum statistic.

Specified by:
saveForumStatistic in interface ForumService
Parameters:
forumStatistic - the forum statistic
Throws:
java.lang.Exception - the exception

updateStatisticCounts

public void updateStatisticCounts(long topicCount,
                                  long postCount)
                           throws java.lang.Exception
Specified by:
updateStatisticCounts in interface ForumService
Throws:
java.lang.Exception

getQuickSearch

public java.util.List<ForumSearch> getQuickSearch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                                  java.lang.String textQuery,
                                                  java.lang.String type,
                                                  java.lang.String pathQuery,
                                                  java.lang.String userId,
                                                  java.util.List<java.lang.String> listCateIds,
                                                  java.util.List<java.lang.String> listForumIds,
                                                  java.util.List<java.lang.String> forumIdsOfModerator)
                                           throws java.lang.Exception
Specified by:
getQuickSearch in interface ForumServiceLegacy
Throws:
java.lang.Exception

getQuickSearch

public java.util.List<ForumSearch> getQuickSearch(java.lang.String textQuery,
                                                  java.lang.String type,
                                                  java.lang.String pathQuery,
                                                  java.lang.String userId,
                                                  java.util.List<java.lang.String> listCateIds,
                                                  java.util.List<java.lang.String> listForumIds,
                                                  java.util.List<java.lang.String> forumIdsOfModerator)
                                           throws java.lang.Exception
Description copied from interface: ForumService
Gets the quick search.

Specified by:
getQuickSearch in interface ForumService
Parameters:
textQuery - the text query
type - is type user and type object(forum, topic and post)
pathQuery - the path query
forumIdsOfModerator - TODO
Returns:
the quick search
Throws:
java.lang.Exception - the exception

getAdvancedSearch

public java.util.List<ForumSearch> getAdvancedSearch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                                     ForumEventQuery eventQuery,
                                                     java.util.List<java.lang.String> listCateIds,
                                                     java.util.List<java.lang.String> listForumIds)
                                              throws java.lang.Exception
Specified by:
getAdvancedSearch in interface ForumServiceLegacy
Throws:
java.lang.Exception

getAdvancedSearch

public java.util.List<ForumSearch> getAdvancedSearch(ForumEventQuery eventQuery,
                                                     java.util.List<java.lang.String> listCateIds,
                                                     java.util.List<java.lang.String> listForumIds)
                                              throws java.lang.Exception
Description copied from interface: ForumService
Gets the advanced search.

Specified by:
getAdvancedSearch in interface ForumService
Parameters:
eventQuery - the event query
Returns:
the advanced search
Throws:
java.lang.Exception - the exception

getForumAdministration

public ForumAdministration getForumAdministration(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                           throws java.lang.Exception
Specified by:
getForumAdministration in interface ForumServiceLegacy
Throws:
java.lang.Exception

getForumAdministration

public ForumAdministration getForumAdministration()
                                           throws java.lang.Exception
Description copied from interface: ForumService
Gets the forum administration.

Specified by:
getForumAdministration in interface ForumService
Returns:
the forum administration
Throws:
java.lang.Exception - the exception

saveForumAdministration

public void saveForumAdministration(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                    ForumAdministration forumAdministration)
                             throws java.lang.Exception
Specified by:
saveForumAdministration in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveForumAdministration

public void saveForumAdministration(ForumAdministration forumAdministration)
                             throws java.lang.Exception
Description copied from interface: ForumService
Save forum administration.

Specified by:
saveForumAdministration in interface ForumService
Parameters:
forumAdministration - the forum administration
Throws:
java.lang.Exception - the exception

addWatch

public void addWatch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                     int watchType,
                     java.lang.String path,
                     java.util.List<java.lang.String> values,
                     java.lang.String currentUser)
              throws java.lang.Exception
Specified by:
addWatch in interface ForumServiceLegacy
Throws:
java.lang.Exception

addWatch

public void addWatch(int watchType,
                     java.lang.String path,
                     java.util.List<java.lang.String> values,
                     java.lang.String currentUser)
              throws java.lang.Exception
Specified by:
addWatch in interface ForumService
Throws:
java.lang.Exception

removeWatch

public void removeWatch(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                        int watchType,
                        java.lang.String path,
                        java.lang.String values)
                 throws java.lang.Exception
Specified by:
removeWatch in interface ForumServiceLegacy
Throws:
java.lang.Exception

removeWatch

public void removeWatch(int watchType,
                        java.lang.String path,
                        java.lang.String values)
                 throws java.lang.Exception
Specified by:
removeWatch in interface ForumService
Throws:
java.lang.Exception

getJobWattingForModerator

public java.util.List<ForumSearch> getJobWattingForModerator(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                                             java.lang.String[] paths)
                                                      throws java.lang.Exception
Specified by:
getJobWattingForModerator in interface ForumServiceLegacy
Throws:
java.lang.Exception

getJobWattingForModerator

public java.util.List<ForumSearch> getJobWattingForModerator(java.lang.String[] paths)
                                                      throws java.lang.Exception
Specified by:
getJobWattingForModerator in interface ForumService
Throws:
java.lang.Exception

getJobWattingForModeratorByUser

public int getJobWattingForModeratorByUser(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                           java.lang.String userId)
                                    throws java.lang.Exception
Specified by:
getJobWattingForModeratorByUser in interface ForumServiceLegacy
Throws:
java.lang.Exception

getJobWattingForModeratorByUser

public int getJobWattingForModeratorByUser(java.lang.String userId)
                                    throws java.lang.Exception
Specified by:
getJobWattingForModeratorByUser in interface ForumService
Throws:
java.lang.Exception

removeProfile

public void removeProfile(java.lang.String userId)
                   throws java.lang.Exception
Specified by:
removeProfile in interface ForumService
Throws:
java.lang.Exception

updateLoggedinUsers

public void updateLoggedinUsers()
                         throws java.lang.Exception
Specified by:
updateLoggedinUsers in interface ForumService
Throws:
java.lang.Exception

userLogin

public void userLogin(java.lang.String userId)
               throws java.lang.Exception
Description copied from interface: ForumService
User login.

Specified by:
userLogin in interface ForumService
Parameters:
userId - the user id
Throws:
java.lang.Exception - the exception

userLogout

public void userLogout(java.lang.String userId)
                throws java.lang.Exception
Description copied from interface: ForumService
User logout.

Specified by:
userLogout in interface ForumService
Parameters:
userId - the user id
Throws:
java.lang.Exception - the exception

isOnline

public boolean isOnline(java.lang.String userId)
                 throws java.lang.Exception
Description copied from interface: ForumService
Checks if is online.

Specified by:
isOnline in interface ForumService
Parameters:
userId - the user id
Returns:
true, if is online
Throws:
java.lang.Exception - the exception

getOnlineUsers

public java.util.List<java.lang.String> getOnlineUsers()
                                                throws java.lang.Exception
Description copied from interface: ForumService
Gets the online users.

Specified by:
getOnlineUsers in interface ForumService
Returns:
the online users
Throws:
java.lang.Exception - the exception

getLastLogin

public java.lang.String getLastLogin()
                              throws java.lang.Exception
Description copied from interface: ForumService
Gets the last login.

Specified by:
getLastLogin in interface ForumService
Returns:
the last login
Throws:
java.lang.Exception - the exception

getMessageInfo

public SendMessageInfo getMessageInfo(java.lang.String name)
                               throws java.lang.Exception
Specified by:
getMessageInfo in interface ForumService
Throws:
java.lang.Exception

searchUserProfile

public JCRPageList searchUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                     java.lang.String userSearch)
                              throws java.lang.Exception
Specified by:
searchUserProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

searchUserProfile

public JCRPageList searchUserProfile(java.lang.String userSearch)
                              throws java.lang.Exception
Description copied from interface: ForumService
Gets the user profile.

Specified by:
searchUserProfile in interface ForumService
Returns:
the user profile
Throws:
java.lang.Exception - the exception

isAdminRole

public boolean isAdminRole(java.lang.String userName)
                    throws java.lang.Exception
Specified by:
isAdminRole in interface ForumService
Throws:
java.lang.Exception

getNewPosts

public java.util.List<Post> getNewPosts(int number)
                                 throws java.lang.Exception
Description copied from interface: ForumService
Select number of lasted public post.

Specified by:
getNewPosts in interface ForumService
Throws:
java.lang.Exception - the exception

search

public javax.jcr.NodeIterator search(java.lang.String queryString,
                                     org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                              throws java.lang.Exception
Specified by:
search in interface ForumServiceLegacy
Throws:
java.lang.Exception

search

public javax.jcr.NodeIterator search(java.lang.String queryString)
                              throws java.lang.Exception
Specified by:
search in interface ForumService
Throws:
java.lang.Exception

evaluateActiveUsers

public void evaluateActiveUsers(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                java.lang.String query)
                         throws java.lang.Exception
Specified by:
evaluateActiveUsers in interface ForumServiceLegacy
Throws:
java.lang.Exception

evaluateActiveUsers

public void evaluateActiveUsers(java.lang.String query)
                         throws java.lang.Exception
Specified by:
evaluateActiveUsers in interface ForumService
Throws:
java.lang.Exception

updateTopicAccess

public void updateTopicAccess(java.lang.String userId,
                              java.lang.String topicId)
                       throws java.lang.Exception
Specified by:
updateTopicAccess in interface ForumService
Throws:
java.lang.Exception

updateForumAccess

public void updateForumAccess(java.lang.String userId,
                              java.lang.String forumId)
                       throws java.lang.Exception
Specified by:
updateForumAccess in interface ForumService
Throws:
java.lang.Exception

exportXML

public java.lang.Object exportXML(java.lang.String categoryId,
                                  java.lang.String forumId,
                                  java.util.List<java.lang.String> objectIds,
                                  java.lang.String nodePath,
                                  java.io.ByteArrayOutputStream bos,
                                  boolean isExportAll,
                                  org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                           throws java.lang.Exception
Specified by:
exportXML in interface ForumServiceLegacy
Throws:
java.lang.Exception

exportXML

public java.lang.Object exportXML(java.lang.String categoryId,
                                  java.lang.String forumId,
                                  java.util.List<java.lang.String> objectIds,
                                  java.lang.String nodePath,
                                  java.io.ByteArrayOutputStream bos,
                                  boolean isExportAll)
                           throws java.lang.Exception
Specified by:
exportXML in interface ForumService
Throws:
java.lang.Exception

getQuickProfiles

public java.util.List<UserProfile> getQuickProfiles(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                                    java.util.List<java.lang.String> userList)
                                             throws java.lang.Exception
Specified by:
getQuickProfiles in interface ForumServiceLegacy
Throws:
java.lang.Exception

getQuickProfiles

public java.util.List<UserProfile> getQuickProfiles(java.util.List<java.lang.String> userList)
                                             throws java.lang.Exception
Specified by:
getQuickProfiles in interface ForumService
Throws:
java.lang.Exception

getQuickProfile

public UserProfile getQuickProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                   java.lang.String userName)
                            throws java.lang.Exception
Specified by:
getQuickProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

getQuickProfile

public UserProfile getQuickProfile(java.lang.String userName)
                            throws java.lang.Exception
Specified by:
getQuickProfile in interface ForumService
Throws:
java.lang.Exception

getScreenName

public java.lang.String getScreenName(java.lang.String userName)
                               throws java.lang.Exception
Specified by:
getScreenName in interface ForumService
Throws:
java.lang.Exception

getUserInformations

public UserProfile getUserInformations(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                       UserProfile userProfile)
                                throws java.lang.Exception
Specified by:
getUserInformations in interface ForumServiceLegacy
Throws:
java.lang.Exception

getUserInformations

public UserProfile getUserInformations(UserProfile userProfile)
                                throws java.lang.Exception
Specified by:
getUserInformations in interface ForumService
Throws:
java.lang.Exception

getDefaultUserProfile

public UserProfile getDefaultUserProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                         java.lang.String userName,
                                         java.lang.String ip)
                                  throws java.lang.Exception
Specified by:
getDefaultUserProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

getDefaultUserProfile

public UserProfile getDefaultUserProfile(java.lang.String userName,
                                         java.lang.String ip)
                                  throws java.lang.Exception
Specified by:
getDefaultUserProfile in interface ForumService
Throws:
java.lang.Exception

updateUserProfileSetting

public UserProfile updateUserProfileSetting(UserProfile userProfile)
                                     throws java.lang.Exception
Specified by:
updateUserProfileSetting in interface ForumService
Throws:
java.lang.Exception

getBookmarks

public java.util.List<java.lang.String> getBookmarks(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                                     java.lang.String userName)
                                              throws java.lang.Exception
Specified by:
getBookmarks in interface ForumServiceLegacy
Throws:
java.lang.Exception

getBookmarks

public java.util.List<java.lang.String> getBookmarks(java.lang.String userName)
                                              throws java.lang.Exception
Specified by:
getBookmarks in interface ForumService
Throws:
java.lang.Exception

getUserSettingProfile

public UserProfile getUserSettingProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                         java.lang.String userName)
                                  throws java.lang.Exception
Specified by:
getUserSettingProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

getUserSettingProfile

public UserProfile getUserSettingProfile(java.lang.String userName)
                                  throws java.lang.Exception
Specified by:
getUserSettingProfile in interface ForumService
Throws:
java.lang.Exception

saveUserSettingProfile

public void saveUserSettingProfile(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                   UserProfile userProfile)
                            throws java.lang.Exception
Specified by:
saveUserSettingProfile in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveUserSettingProfile

public void saveUserSettingProfile(UserProfile userProfile)
                            throws java.lang.Exception
Specified by:
saveUserSettingProfile in interface ForumService
Throws:
java.lang.Exception

importXML

public void importXML(java.lang.String nodePath,
                      java.io.InputStream is,
                      java.lang.String mimeType,
                      org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
               throws java.lang.Exception
Specified by:
importXML in interface ForumServiceLegacy
Throws:
java.lang.Exception

importXML

public void importXML(java.lang.String nodePath,
                      java.io.InputStream is,
                      java.lang.String mimeType)
               throws java.lang.Exception
Specified by:
importXML in interface ForumService
Throws:
java.lang.Exception

updateDataImported

public void updateDataImported()
                        throws java.lang.Exception
Specified by:
updateDataImported in interface ForumServiceLegacy
Throws:
java.lang.Exception

updateForum

public void updateForum(java.lang.String path)
                 throws java.lang.Exception
Specified by:
updateForum in interface ForumService
Throws:
java.lang.Exception

getBanList

public java.util.List<java.lang.String> getBanList()
                                            throws java.lang.Exception
Specified by:
getBanList in interface ForumService
Throws:
java.lang.Exception

addBanIP

public boolean addBanIP(java.lang.String ip)
                 throws java.lang.Exception
Specified by:
addBanIP in interface ForumService
Throws:
java.lang.Exception

removeBan

public void removeBan(java.lang.String ip)
               throws java.lang.Exception
Specified by:
removeBan in interface ForumService
Throws:
java.lang.Exception

getListPostsByIP

public JCRPageList getListPostsByIP(java.lang.String ip,
                                    java.lang.String strOrderBy,
                                    org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                             throws java.lang.Exception
Specified by:
getListPostsByIP in interface ForumServiceLegacy
Throws:
java.lang.Exception

getListPostsByIP

public JCRPageList getListPostsByIP(java.lang.String ip,
                                    java.lang.String strOrderBy)
                             throws java.lang.Exception
Specified by:
getListPostsByIP in interface ForumService
Throws:
java.lang.Exception

getForumBanList

public java.util.List<java.lang.String> getForumBanList(java.lang.String forumId)
                                                 throws java.lang.Exception
Specified by:
getForumBanList in interface ForumService
Throws:
java.lang.Exception

addBanIPForum

public boolean addBanIPForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                             java.lang.String ip,
                             java.lang.String forumId)
                      throws java.lang.Exception
Specified by:
addBanIPForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

addBanIPForum

public boolean addBanIPForum(java.lang.String ip,
                             java.lang.String forumId)
                      throws java.lang.Exception
Specified by:
addBanIPForum in interface ForumService
Throws:
java.lang.Exception

removeBanIPForum

public void removeBanIPForum(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                             java.lang.String ip,
                             java.lang.String forumId)
                      throws java.lang.Exception
Specified by:
removeBanIPForum in interface ForumServiceLegacy
Throws:
java.lang.Exception

removeBanIPForum

public void removeBanIPForum(java.lang.String ip,
                             java.lang.String forumId)
                      throws java.lang.Exception
Specified by:
removeBanIPForum in interface ForumService
Throws:
java.lang.Exception

registerListenerForCategory

public void registerListenerForCategory(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                        java.lang.String categoryId)
                                 throws java.lang.Exception
Specified by:
registerListenerForCategory in interface ForumServiceLegacy
Throws:
java.lang.Exception

registerListenerForCategory

public void registerListenerForCategory(java.lang.String categoryId)
                                 throws java.lang.Exception
Specified by:
registerListenerForCategory in interface ForumService
Throws:
java.lang.Exception

unRegisterListenerForCategory

public void unRegisterListenerForCategory(java.lang.String path)
                                   throws java.lang.Exception
Specified by:
unRegisterListenerForCategory in interface ForumService
Throws:
java.lang.Exception

getUserAvatar

public ForumAttachment getUserAvatar(java.lang.String userName,
                                     org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                              throws java.lang.Exception
Specified by:
getUserAvatar in interface ForumServiceLegacy
Throws:
java.lang.Exception

getUserAvatar

public ForumAttachment getUserAvatar(java.lang.String userName)
                              throws java.lang.Exception
Specified by:
getUserAvatar in interface ForumService
Throws:
java.lang.Exception

saveUserAvatar

public void saveUserAvatar(java.lang.String userId,
                           ForumAttachment fileAttachment,
                           org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                    throws java.lang.Exception
Specified by:
saveUserAvatar in interface ForumServiceLegacy
Throws:
java.lang.Exception

saveUserAvatar

public void saveUserAvatar(java.lang.String userId,
                           ForumAttachment fileAttachment)
                    throws java.lang.Exception
Specified by:
saveUserAvatar in interface ForumService
Throws:
java.lang.Exception

setDefaultAvatar

public void setDefaultAvatar(java.lang.String userName,
                             org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                      throws java.lang.Exception
Specified by:
setDefaultAvatar in interface ForumServiceLegacy
Throws:
java.lang.Exception

setDefaultAvatar

public void setDefaultAvatar(java.lang.String userName)
                      throws java.lang.Exception
Specified by:
setDefaultAvatar in interface ForumService
Throws:
java.lang.Exception

getWatchByUser

public java.util.List<Watch> getWatchByUser(java.lang.String userId,
                                            org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                     throws java.lang.Exception
Specified by:
getWatchByUser in interface ForumServiceLegacy
Throws:
java.lang.Exception

getWatchByUser

public java.util.List<Watch> getWatchByUser(java.lang.String userId)
                                     throws java.lang.Exception
Specified by:
getWatchByUser in interface ForumService
Throws:
java.lang.Exception

updateEmailWatch

public void updateEmailWatch(java.util.List<java.lang.String> listNodeId,
                             java.lang.String newEmailAdd,
                             java.lang.String userId,
                             org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                      throws java.lang.Exception
Specified by:
updateEmailWatch in interface ForumServiceLegacy
Throws:
java.lang.Exception

updateEmailWatch

public void updateEmailWatch(java.util.List<java.lang.String> listNodeId,
                             java.lang.String newEmailAdd,
                             java.lang.String userId)
                      throws java.lang.Exception
Specified by:
updateEmailWatch in interface ForumService
Throws:
java.lang.Exception

saveBBCode

public void saveBBCode(java.util.List<BBCode> bbcodes)
                throws java.lang.Exception
Specified by:
saveBBCode in interface ForumService
Throws:
java.lang.Exception

getAllBBCode

public java.util.List<BBCode> getAllBBCode()
                                    throws java.lang.Exception
Specified by:
getAllBBCode in interface ForumService
Throws:
java.lang.Exception

getActiveBBCode

public java.util.List<java.lang.String> getActiveBBCode()
                                                 throws java.lang.Exception
Specified by:
getActiveBBCode in interface ForumService
Throws:
java.lang.Exception

getBBcode

public BBCode getBBcode(java.lang.String id)
                 throws java.lang.Exception
Specified by:
getBBcode in interface ForumService
Throws:
java.lang.Exception

removeBBCode

public void removeBBCode(java.lang.String bbcodeId)
                  throws java.lang.Exception
Specified by:
removeBBCode in interface ForumService
Throws:
java.lang.Exception

getAllPruneSetting

public java.util.List<PruneSetting> getAllPruneSetting()
                                                throws java.lang.Exception
Specified by:
getAllPruneSetting in interface ForumService
Throws:
java.lang.Exception

getAllPruneSetting

public java.util.List<PruneSetting> getAllPruneSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                                throws java.lang.Exception
Specified by:
getAllPruneSetting in interface ForumServiceLegacy
Throws:
java.lang.Exception

savePruneSetting

public void savePruneSetting(PruneSetting pruneSetting)
                      throws java.lang.Exception
Specified by:
savePruneSetting in interface ForumService
Throws:
java.lang.Exception

savePruneSetting

public void savePruneSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                             PruneSetting pruneSetting)
                      throws java.lang.Exception
Specified by:
savePruneSetting in interface ForumServiceLegacy
Throws:
java.lang.Exception

getPruneSetting

public PruneSetting getPruneSetting(java.lang.String forumPath)
                             throws java.lang.Exception
Specified by:
getPruneSetting in interface ForumService
Throws:
java.lang.Exception

getPruneSetting

public PruneSetting getPruneSetting(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
                                    java.lang.String forumPath)
                             throws java.lang.Exception
Specified by:
getPruneSetting in interface ForumServiceLegacy
Throws:
java.lang.Exception

runPrune

public void runPrune(PruneSetting pSetting)
              throws java.lang.Exception
Specified by:
runPrune in interface ForumService
Throws:
java.lang.Exception

runPrune

public void runPrune(java.lang.String forumPath)
              throws java.lang.Exception
Specified by:
runPrune in interface ForumService
Throws:
java.lang.Exception

checkPrune

public long checkPrune(PruneSetting pSetting)
                throws java.lang.Exception
Specified by:
checkPrune in interface ForumService
Throws:
java.lang.Exception

getPageTopicByType

public JCRPageList getPageTopicByType(java.lang.String type)
                               throws java.lang.Exception
Specified by:
getPageTopicByType in interface ForumService
Throws:
java.lang.Exception

getTopicType

public TopicType getTopicType(java.lang.String Id)
                       throws java.lang.Exception
Specified by:
getTopicType in interface ForumService
Throws:
java.lang.Exception

getTopicTypes

public java.util.List<TopicType> getTopicTypes()
                                        throws java.lang.Exception
Specified by:
getTopicTypes in interface ForumService
Throws:
java.lang.Exception

removeTopicType

public void removeTopicType(java.lang.String topicTypeId)
                     throws java.lang.Exception
Specified by:
removeTopicType in interface ForumService
Throws:
java.lang.Exception

saveTopicType

public void saveTopicType(TopicType topicType)
                   throws java.lang.Exception
Specified by:
saveTopicType in interface ForumService
Throws:
java.lang.Exception

updateUserProfileInfo

public void updateUserProfileInfo(java.lang.String name)
                           throws java.lang.Exception
Specified by:
updateUserProfileInfo in interface ForumService
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.