public interface ForumService
extends org.exoplatform.forum.service.ForumServiceLegacy
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBanIP(String ip)
Adds an Ip to the list of banned Ips.
|
boolean |
addBanIPForum(String ip,
String forumId)
Adds an Ip to the list of banned Ips in a forum.
|
void |
addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a plugin which initializes data when Forums is started at first time.
|
void |
addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a plugin which initializes the default data when Forums is started at first time.
|
void |
addListenerPlugin(org.exoplatform.forum.service.ForumEventListener listener)
Adds a listener plugin.
|
void |
addMember(User user,
org.exoplatform.forum.service.UserProfile profileTemplate)
Adds a new member to a forum.
|
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a component plugin which keeps email configuration for Forums.
|
void |
addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
Adds a role plugin which defines role rules in Forums.
|
void |
addTag(List<org.exoplatform.forum.service.Tag> tags,
String userName,
String topicPath)
Adds a list of tags to a specific topic.
|
void |
addWatch(int watchType,
String path,
List<String> values,
String currentUser)
Adds a watch.
|
void |
calculateDeletedGroup(String groupId,
String groupName)
Updates statistics when a group is deleted.
|
void |
calculateDeletedUser(String userName)
Updates statistics when a user is deleted.
|
void |
calculateModerator(String categoryPath,
boolean isNew)
Checks information about a moderator of a category.
|
long |
checkPrune(org.exoplatform.forum.service.PruneSetting pSetting)
Checks if settings of a prune is applied to topics or not.
|
InputStream |
createForumRss(String objectId,
String link)
Creates an RSS of Forums.
|
void |
createUserProfile(User user)
Creates a new user profile.
|
InputStream |
createUserRss(String userId,
String link)
Creates an RSS of a user.
|
void |
evaluateActiveUsers(String query)
Evaluates a list of active users by a query statement.
|
Object |
exportXML(String categoryId,
String forumId,
List<String> objectIds,
String nodePath,
ByteArrayOutputStream bos,
boolean isExportAll)
Exports data of a category or a forum to an XML file.
|
List<org.exoplatform.forum.service.filter.model.CategoryFilter> |
filterForumByName(String filterKey,
String userName,
int maxSize)
Gets a list of category filters by a forum name and userName.
|
String |
getActivityIdForOwnerId(String ownerId)
Gets information of a forum activity by the owner Id that is used for processing the activity streams.
|
String |
getActivityIdForOwnerPath(String ownerPath)
Gets information of a forum activity by the owner path that is used for processing the activity streams.
|
List<org.exoplatform.forum.service.ForumSearchResult> |
getAdvancedSearch(org.exoplatform.forum.service.ForumEventQuery eventQuery,
List<String> listCateIds,
List<String> listForumIds)
Gets an advanced search.
|
List<org.exoplatform.forum.service.ForumLinkData> |
getAllLink(String strQueryCate,
String strQueryForum)
Gets all links of a given forum.
|
List<org.exoplatform.forum.service.PruneSetting> |
getAllPruneSetting()
Gets settings of all prunes.
|
List<String> |
getAllTagName(String strQuery,
String userAndTopicId)
Gets all tag names by query statement and topic Id.
|
List<org.exoplatform.forum.service.Tag> |
getAllTags()
Gets all tags.
|
List<org.exoplatform.forum.service.Topic> |
getAllTopicsOld(long date,
String forumPatch)
Gets a list of topics which were created before a given date.
|
long |
getAvailablePost(String categoryId,
String forumId,
String topicId,
String isApproved,
String isHidden,
String userLogin)
Gets the number of available posts which match with conditions, including "Approved", "Hidden" and query statement.
|
List<String> |
getBanList()
Gets a list of banned Ips.
|
List<String> |
getBookmarks(String userName)
Gets bookmarks of a user.
|
List<org.exoplatform.forum.service.Category> |
getCategories()
Gets categories in Forums.
|
org.exoplatform.forum.service.Category |
getCategory(String categoryId)
Gets a category by its provided Id.
|
org.exoplatform.forum.service.Category |
getCategoryIncludedSpace()
Gets a category which contains the forum spaces.
|
String |
getCommentIdForOwnerId(String ownerId)
Gets information of a comment by the owner Id.
|
String |
getCommentIdForOwnerPath(String ownerPath)
Gets information of a comment by the owner path.
|
org.exoplatform.forum.service.UserProfile |
getDefaultUserProfile(String userName,
String ip)
Gets the default profile information of a user.
|
org.exoplatform.forum.service.Forum |
getForum(String categoryId,
String forumId)
Gets a forum by a specific category Id and forum Id.
|
org.exoplatform.forum.service.ForumAdministration |
getForumAdministration()
Gets the administration settings of Forums.
|
List<String> |
getForumBanList(String forumId)
Gets a list of banned Ips in a forum.
|
String |
getForumHomePath()
Gets the home path of a given forum.
|
List<org.exoplatform.forum.service.Forum> |
getForums(org.exoplatform.forum.service.filter.model.ForumFilter filter)
Gets a list forums by filter.
|
List<org.exoplatform.forum.service.Forum> |
getForums(String categoryId,
String strQuery)
Deprecated.
|
org.exoplatform.forum.service.ForumStatistic |
getForumStatistic()
Gets statistics of Forums.
|
org.exoplatform.forum.service.ForumSubscription |
getForumSubscription(String userId)
Gets information subscribed by a user.
|
List<org.exoplatform.forum.service.Forum> |
getForumSummaries(String categoryId,
String strQuery)
Deprecated.
|
List<org.exoplatform.forum.service.ForumSearchResult> |
getJobWattingForModerator(String[] paths)
Gets a waiting job which needs to be moderated by the current user.
|
int |
getJobWattingForModeratorByUser(String userId)
Gets the number of waiting jobs which need to be moderated by the current user.
|
String |
getLastLogin()
Gets the last login.
|
org.exoplatform.forum.service.Topic |
getLastPostOfForum(String lastTopicPath)
Gets the last post of a forum.
|
long |
getLastReadIndex(String path,
String isApproved,
String isHidden,
String userLogin)
Gets an index of the last read post in a specific topic.
|
org.exoplatform.forum.service.JCRPageList |
getListPostsByIP(String ip,
String strOrderBy)
Gets a list of posts by a given Ip.
|
org.exoplatform.forum.service.SendMessageInfo |
getMessageInfo(String name)
Gets information to build a message.
|
List<org.exoplatform.forum.service.Tag> |
getMyTagInTopic(String[] tagIds)
Gets a list of tags by their Ids.
|
List<org.exoplatform.forum.service.Post> |
getNewPosts(int number)
Gets a list of new public posts with a given limit.
|
long |
getNewPrivateMessage(String userName)
Gets the count of new private messages.
|
Object |
getObjectNameById(String id,
String type)
Gets the object name by its path.
|
Object |
getObjectNameByPath(String path)
Gets the object name by its path.
|
List<String> |
getOnlineUsers()
Gets users who are online.
|
org.exoplatform.forum.service.JCRPageList |
getPageListUserProfile()
Deprecated.
Use
searchUserProfileByFilter(UserProfileFilter) instead of. |
org.exoplatform.forum.service.JCRPageList |
getPagePostByUser(String userName,
String userId,
boolean isMod,
String strOrderBy)
Gets a list of posts by a specific user.
|
org.exoplatform.forum.service.JCRPageList |
getPageTopic(String categoryId,
String forumId,
String strQuery,
String strOrderBy)
Gets a list of topics by a specific category Id, forum Id and query condition.
|
org.exoplatform.forum.service.JCRPageList |
getPageTopicByUser(String userName,
boolean isMod,
String strOrderBy)
Deprecated.
|
ListAccess<org.exoplatform.forum.service.Topic> |
getPageTopicByUser(org.exoplatform.forum.service.impl.model.TopicFilter filter)
Gets a list access of topics by a given userName returned as ListAccess.
|
org.exoplatform.forum.service.JCRPageList |
getPageTopicOld(long date,
String forumPatch)
Deprecated.
|
Iterator<org.exoplatform.forum.service.SendMessageInfo> |
getPendingMessages()
Gets messages which are pending (not sent).
|
String[] |
getPermissionTopicByCategory(String categoryId,
String type)
Gets users or groups who have permission to edit topics in a category.
|
org.exoplatform.forum.service.Post |
getPost(String categoryId,
String forumId,
String topicId,
String postId)
Gets a post based on category Id, forum Id, topic Id and post Id.
|
org.exoplatform.forum.service.JCRPageList |
getPostForSplitTopic(String topicPath)
Gets a list of posts in a given topic.
|
ListAccess<org.exoplatform.forum.service.Post> |
getPosts(org.exoplatform.forum.service.impl.model.PostFilter filter)
Gets posts which are returned as ListAccess.
|
org.exoplatform.forum.service.JCRPageList |
getPosts(String categoryId,
String forumId,
String topicId,
String isApproved,
String isHidden,
String strQuery,
String userLogin)
Gets a list of posts in a given forum that match with conditions, including "Approved", "Hidden" and query statement.
|
org.exoplatform.forum.service.JCRPageList |
getPrivateMessage(String userName,
String type)
Gets private messages of a user.
|
org.exoplatform.forum.service.PruneSetting |
getPruneSetting(String forumPath)
Gets settings of a prune by a forum path.
|
org.exoplatform.forum.service.UserProfile |
getQuickProfile(String userName)
Gets basic profiles of a user.
|
List<org.exoplatform.forum.service.UserProfile> |
getQuickProfiles(List<String> userList)
Gets basic profiles of users.
|
List<org.exoplatform.forum.service.ForumSearchResult> |
getQuickSearch(String textQuery,
String type,
String pathQuery,
String userId,
List<String> listCateIds,
List<String> listForumIds,
List<String> forumIdsOfModerator)
Gets a quick search.
|
List<org.exoplatform.forum.service.Post> |
getRecentPostsForUser(String userName,
int number)
Gets a list of recent posts by a user with a given limit.
|
String |
getScreenName(String userName)
Gets a screen name.
|
org.exoplatform.forum.service.Tag |
getTag(String tagId)
Gets a tag by its Id.
|
List<String> |
getTagNameInTopic(String userAndTopicId)
Gets all tag names in a given topic.
|
org.exoplatform.forum.service.Topic |
getTopic(String categoryId,
String forumId,
String topicId,
String userRead)
Gets a topic by category Id, forum Id and topic Id.
|
org.exoplatform.forum.service.JCRPageList |
getTopicByMyTag(String userIdAndtagId,
String strOrderBy)
Gets topics by a given tag.
|
org.exoplatform.forum.service.Topic |
getTopicByPath(String topicPath,
boolean isLastPost)
Gets a topic by its path and post condition.
|
org.exoplatform.forum.service.LazyPageList<org.exoplatform.forum.service.Topic> |
getTopicList(String categoryId,
String forumId,
String string,
String strOrderBy,
int pageSize)
Gets a list of topics.
|
List<org.exoplatform.forum.service.Topic> |
getTopics(String categoryId,
String forumId)
Gets a list of topics by category Id and forum Id.
|
ListAccess<org.exoplatform.forum.service.Topic> |
getTopics(org.exoplatform.forum.service.impl.model.TopicFilter filter)
Gets posts which are returned as ListAccess.
|
ListAccess<org.exoplatform.forum.service.Topic> |
getTopicsByDate(long date,
String forumPath)
Gets a list access of topics which were created before a given date.
|
org.exoplatform.forum.service.Topic |
getTopicSummary(String topicPath)
Gets a topic by its path.
|
org.exoplatform.forum.service.Topic |
getTopicUpdate(org.exoplatform.forum.service.Topic topic,
boolean isSummary)
Gets more information about a given topic.
|
long |
getTotalTopicOld(long date,
String forumPatch)
Gets the total number of topics which were created before a given date.
|
org.exoplatform.forum.service.ForumAttachment |
getUserAvatar(String userName)
Gets an avatar by a given username.
|
org.exoplatform.forum.service.UserProfile |
getUserInfo(String userName)
Gets information about a user.
|
org.exoplatform.forum.service.UserProfile |
getUserInformations(org.exoplatform.forum.service.UserProfile userProfile)
Gets detailed profile information of a user.
|
List<String> |
getUserModerator(String userName,
boolean isModeCate)
Gets Ids of forums or categories where the user is moderator.
|
org.exoplatform.forum.service.UserProfile |
getUserProfileManagement(String userName)
Gets the management information of a user profile.
|
org.exoplatform.forum.service.UserProfile |
getUserSettingProfile(String userName)
Gets the profile settings by a user Id.
|
List<org.exoplatform.forum.service.Watch> |
getWatchByUser(String userId)
Gets a list of watches by a user.
|
void |
importXML(String nodePath,
ByteArrayInputStream bis,
int typeImport)
Imports data into a category or a forum.
|
boolean |
isAdminRole(String userName)
Checks if a user is administrator or not.
|
boolean |
isAdminRoleConfig(String userName)
Checks if a user is administrator or not in the XML configuration.
|
boolean |
isOnline(String userId)
Deprecated.
use
UserStateService.isOnline(String) |
void |
mergeTopic(String srcTopicPath,
String destTopicPath,
String mailContent,
String link,
String topicMergeTitle)
Merges two topics into one.
|
void |
modifyForum(org.exoplatform.forum.service.Forum forum,
int type)
Modifies an existing forum with various types.
|
void |
modifyMergedTopic(List<org.exoplatform.forum.service.Topic> topics,
int type)
Modifies a list of merged topics with various types.
|
void |
modifyPost(List<org.exoplatform.forum.service.Post> posts,
int type)
Modifies a list of posts with various types.
|
void |
modifyTopic(List<org.exoplatform.forum.service.Topic> topics,
int type)
Modifies a list of topics with various types.
|
void |
moveForum(List<org.exoplatform.forum.service.Forum> forums,
String destCategoryPath)
Moves a list of forums to a specific category.
|
void |
movePost(String[] postPaths,
String destTopicPath,
boolean isCreatNewTopic,
String mailContent,
String link)
Moves a list of posts to a given topic.
|
void |
moveTopic(List<org.exoplatform.forum.service.Topic> topics,
String destForumPath,
String mailContent,
String link)
Moves a list of topics to a forum.
|
void |
processEnabledUser(String userName,
String email,
boolean isEnabled)
Process when a user update information disabled or enabled.
|
void |
removeBan(String ip)
Removes a banned Ip.
|
void |
removeBanIPForum(String ip,
String forumId)
Removes an Ip from the list of banned Ips in a forum.
|
void |
removeCacheUserProfile(String userName)
Removes data of user profile from cache of a user.
|
org.exoplatform.forum.service.Category |
removeCategory(String categoryId)
Removes a category by its provided Id.
|
org.exoplatform.forum.service.Forum |
removeForum(String categoryId,
String forumId)
Removes a forum by its category Id and forum Id.
|
void |
removeMember(User user)
Removes an existing member from a forum.
|
org.exoplatform.forum.service.Post |
removePost(String categoryId,
String forumId,
String topicId,
String postId)
Removes a post.
|
void |
removePrivateMessage(String messageId,
String userName,
String type)
Removes a private message.
|
org.exoplatform.forum.service.Topic |
removeTopic(String categoryId,
String forumId,
String topicId)
Removes a topic.
|
void |
removeWatch(int watchType,
String path,
String values)
Removes a watch.
|
void |
runPrune(org.exoplatform.forum.service.PruneSetting pSetting)
Runs settings of a prune.
|
void |
runPrune(String forumPath)
Runs settings of a prune by a forum path.
|
void |
saveActivityIdForOwnerId(String ownerId,
String activityId)
Saves information of a forum activity by the owner Id that is used for processing the activity streams.
|
void |
saveActivityIdForOwnerPath(String ownerPath,
String activityId)
Saves information of a forum activity by the owner path that is used for processing the activity streams.
|
void |
saveCategory(org.exoplatform.forum.service.Category category,
boolean isNew)
Saves a category which is added or updated.
|
void |
saveCollapsedCategories(String userName,
String categoryId,
boolean isAdd)
Saves a collapsed category.
|
void |
saveCommentIdForOwnerId(String ownerId,
String commentId)
Saves information of a comment by the owner Id.
|
void |
saveCommentIdForOwnerPath(String ownerPath,
String commentId)
Saves information of a comment by the owner path.
|
void |
saveForum(String categoryId,
org.exoplatform.forum.service.Forum forum,
boolean isNew)
Saves a forum into a specific category.
|
void |
saveForumAdministration(org.exoplatform.forum.service.ForumAdministration forumAdministration)
Saves the administration settings of Forums.
|
void |
saveForumStatistic(org.exoplatform.forum.service.ForumStatistic forumStatistic)
Saves statistics of Forums.
|
void |
saveForumSubscription(org.exoplatform.forum.service.ForumSubscription forumSubscription,
String userId)
Saves a subscription of a user.
|
void |
saveLastPostIdRead(String userId,
String[] lastReadPostOfForum,
String[] lastReadPostOfTopic)
Saves Ids of the last read posts into a topic or forum.
|
void |
saveModerateOfForums(List<String> forumPaths,
String userName,
boolean isDelete)
Saves or removes a moderator to/from a list of forums.
|
void |
saveModOfCategory(List<String> moderatorCate,
String userId,
boolean isAdd)
Sets a moderator for a category.
|
void |
savePost(String categoryId,
String forumId,
String topicId,
org.exoplatform.forum.service.Post post,
boolean isNew,
org.exoplatform.forum.service.MessageBuilder messageBuilder)
Saves or updates a post.
|
void |
savePrivateMessage(org.exoplatform.forum.service.ForumPrivateMessage privateMessage)
Saves a private message.
|
void |
savePruneSetting(org.exoplatform.forum.service.PruneSetting pruneSetting)
Saves settings of a prune.
|
void |
saveReadMessage(String messageId,
String userName,
String type)
Saves a read message.
|
void |
saveTag(org.exoplatform.forum.service.Tag newTag)
Saves a new tag.
|
void |
saveTopic(String categoryId,
String forumId,
org.exoplatform.forum.service.Topic topic,
boolean isNew,
boolean isMove,
org.exoplatform.forum.service.MessageBuilder messageBuilder)
Saves or updates a topic by category Id and forum Id.
|
void |
saveUserAvatar(String userId,
org.exoplatform.forum.service.ForumAttachment fileAttachment)
Saves an avatar for a user.
|
void |
saveUserBookmark(String userName,
String bookMark,
boolean isNew)
Saves a user's bookmark.
|
void |
saveUserModerator(String userName,
List<String> ids,
boolean isModeCate)
Sets the moderator role to a user in a forum or a category.
|
void |
saveUserProfile(org.exoplatform.forum.service.UserProfile userProfile,
boolean isOption,
boolean isBan)
Saves the user profile.
|
void |
saveUserSettingProfile(org.exoplatform.forum.service.UserProfile userProfile)
Saves the settings information of a user profile.
|
javax.jcr.NodeIterator |
search(String queryString)
Searches by a query statement.
|
org.exoplatform.forum.service.JCRPageList |
searchUserProfile(String userSearch)
Deprecated.
Use
searchUserProfileByFilter(UserProfileFilter) instead of. |
ListAccess<org.exoplatform.forum.service.UserProfile> |
searchUserProfileByFilter(org.exoplatform.forum.service.impl.model.UserProfileFilter userProfileFilter)
Searches for user profiles return as ListAccess.
|
void |
setDefaultAvatar(String userName)
Sets a default avatar.
|
void |
setViewCountTopic(String path,
String userRead)
Counts the number of topic viewers.
|
void |
splitTopic(org.exoplatform.forum.service.Topic newTopic,
org.exoplatform.forum.service.Post firstPost,
List<String> postPathMove,
String mailContent,
String link)
Splits a topic into 2 ones.
|
void |
unTag(String tagId,
String userName,
String topicPath)
Removes a tag from a given topic.
|
void |
updateEmailWatch(List<String> listNodeId,
String newEmailAdd,
String userId)
Updates an email address of a watch for a user.
|
void |
updateForum(String path)
Updates information of a forum.
|
void |
updateForumAccess(String userId,
String forumId)
Updates the access information to a forum of a user.
|
void |
updateLoggedinUsers()
Updates information of logged-in users.
|
void |
updateLoggedinUsers(String repoName) |
void |
updateStatisticCounts(long topicCoutn,
long postCount)
Updates information about topics and posts.
|
void |
updateTopicAccess(String userId,
String topicId)
Updates the access information to a topic of a user.
|
void |
updateUserProfile(User user)
Saves the user profile.
|
void |
updateUserProfileInfo(String name)
Updates the user profile information.
|
org.exoplatform.forum.service.UserProfile |
updateUserProfileSetting(org.exoplatform.forum.service.UserProfile userProfile)
Updates settings of the user profile.
|
void |
userLogin(String userId)
Sets the login information of a user.
|
void |
userLogin(String repoName,
String userId) |
void |
userLogout(String userId)
Sets the logout information of a user.
|
void |
writeReads()
Marks topics which have been read, then saves them into the user profile.
|
void |
writeViews()
Saves the number of topic viewers.
|
void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.Exception - the exceptionvoid addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.Exception - the exceptionvoid addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.Exception - the exceptionvoid addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
plugin - The plugin to be added.ExceptionList<org.exoplatform.forum.service.Category> getCategories()
org.exoplatform.forum.service.Category getCategory(String categoryId)
categoryId - Id of the category.Exception - the exceptionorg.exoplatform.forum.service.Category getCategoryIncludedSpace()
ExceptionString[] getPermissionTopicByCategory(String categoryId, String type) throws Exception
categoryId - Id of the category.type - Type of the category.Exception - the exceptionvoid saveCategory(org.exoplatform.forum.service.Category category,
boolean isNew)
throws Exception
category - The category to be saved.isNew - If "true", the new category is added. If "false", the category is updated.Exception - the exceptionvoid calculateModerator(String categoryPath, boolean isNew) throws Exception
categoryPath - Path to the category.isNew - If "true", the new information is added. If "false", the information is updated.Exception - the exceptionvoid saveModOfCategory(List<String> moderatorCate, String userId, boolean isAdd)
moderatorCate - The moderator.userId - Id of the moderator.isAdd - If "true", the moderator is added. If "false", the moderator is removed.Exception - the exceptionorg.exoplatform.forum.service.Category removeCategory(String categoryId) throws Exception
categoryId - Id of the category to be removed.Exception - the exceptionList<org.exoplatform.forum.service.Forum> getForums(String categoryId, String strQuery) throws Exception
getForums(ForumFilter)categoryId - Id of the category.strQuery - The query condition.Exception - the exceptionList<org.exoplatform.forum.service.Forum> getForumSummaries(String categoryId, String strQuery) throws Exception
getForums(ForumFilter)categoryId - Id of the category.strQuery - The statement to query forums.Exception - the exceptionList<org.exoplatform.forum.service.Forum> getForums(org.exoplatform.forum.service.filter.model.ForumFilter filter)
userName - Name of the user.filter - The condition to get forums.Exception - the exceptionList<org.exoplatform.forum.service.filter.model.CategoryFilter> filterForumByName(String filterKey, String userName, int maxSize) throws Exception
filterKey - The key to search for a forum.userName - Name of the user.maxSize - The maximum number of category filters which are returned.Exceptionorg.exoplatform.forum.service.Forum getForum(String categoryId, String forumId)
categoryId - Id of the category.forumId - Id of the forum.void modifyForum(org.exoplatform.forum.service.Forum forum,
int type)
throws Exception
Utils.CLOSE: Closes a given forum.Utils.LOCK: Locks a given forum.Utils.APPROVE: Approves a given forum.Utils.STICKY: Sticks a given forum.Utils.ACTIVE: Activates a given forum.Utils.WAITING: Waits for a given forum.Utils.HIDDEN: Hides a given forum.forum - The forum to be modified.type - A type to modify the forum.Exception - the exceptionvoid saveForum(String categoryId, org.exoplatform.forum.service.Forum forum, boolean isNew) throws Exception
categoryId - Id of the category.forum - The forum to be saved.isNew - If "true", the new forum is added. If "false", the forum is updated.Exception - the exceptionvoid saveModerateOfForums(List<String> forumPaths, String userName, boolean isDelete) throws Exception
forumPaths - Paths to the forums.userName - Name of the moderator.isDelete - If "true", the modertator is removed. If "false", the moderator is added.Exception - the exceptionorg.exoplatform.forum.service.Forum removeForum(String categoryId, String forumId) throws Exception
categoryId - Id of the category.forumId - Id of the forum to be removed.Exception - the exceptionvoid moveForum(List<org.exoplatform.forum.service.Forum> forums, String destCategoryPath) throws Exception
forums - Forums to be moved.destCategoryPath - Path to the target category.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPageTopic(String categoryId, String forumId, String strQuery, String strOrderBy) throws Exception
categoryId - Id of the category.forumId - Id of the forum.strQuery - The query condition.strOrderBy - The returned topics are shown by the ascending or descending order.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPageTopicByUser(String userName, boolean isMod, String strOrderBy) throws Exception
getPageTopicByUser(TopicFilter)userName - Name of the user.isMod - If "true", only topics moderated by the user is returned.strOrderBy - The order type for topics (ascending or descending).Exception - the exceptionListAccess<org.exoplatform.forum.service.Topic> getPageTopicByUser(org.exoplatform.forum.service.impl.model.TopicFilter filter) throws Exception
userName - Name of the user.filter - The condition to get posts.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPageTopicOld(long date,
String forumPatch)
throws Exception
getTopicsByDate(long, String)date - The given date.forumPatch - Path to the forum which contains topics.Exception - the exceptionListAccess<org.exoplatform.forum.service.Topic> getTopicsByDate(long date, String forumPath) throws Exception
date - The given date.forumPatch - Path to the forum which contains topics.Exception - the exceptionList<org.exoplatform.forum.service.Topic> getAllTopicsOld(long date, String forumPatch) throws Exception
date - The given date.forumPatch - Path to the forum which contains topics.Exception - the exceptionlong getTotalTopicOld(long date,
String forumPatch)
date - The given date.forumPatch - Path to the forum which contains topics.Exception - the exceptionList<org.exoplatform.forum.service.Topic> getTopics(String categoryId, String forumId) throws Exception
categoryId - Id of the category.forumId - Id of the forum.Exception - the exceptionorg.exoplatform.forum.service.Topic getTopic(String categoryId, String forumId, String topicId, String userRead) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.userRead - The user who views the topic.Exception - the exceptionListAccess<org.exoplatform.forum.service.Topic> getTopics(org.exoplatform.forum.service.impl.model.TopicFilter filter) throws Exception
filter - The condition to get posts.Exceptionvoid setViewCountTopic(String path, String userRead)
path - Path to the topic.userRead - The user who views the topic.void writeViews()
org.exoplatform.forum.service.Topic getTopicByPath(String topicPath, boolean isLastPost) throws Exception
topicPath - Path to the topic.isLastPost - If "true", the returned topic is one which has the last post.Exception - the exceptionorg.exoplatform.forum.service.Topic getLastPostOfForum(String lastTopicPath) throws Exception
lastTopicPath - Path to the topic which contains the last post.Exceptionorg.exoplatform.forum.service.Topic getTopicSummary(String topicPath) throws Exception
topicPath - Path to the topic.Exception - the exceptionorg.exoplatform.forum.service.Topic getTopicUpdate(org.exoplatform.forum.service.Topic topic,
boolean isSummary)
throws Exception
topic - The topic which is required to have more information.isSummary - If "true", the summary information about the topic is included.Exception - the exceptionvoid modifyTopic(List<org.exoplatform.forum.service.Topic> topics, int type)
Utils.CLOSE: Closes a given topic.Utils.LOCK: Locks a given topic.Utils.APPROVE: Approves a given topic.Utils.STICKY: Sticks a given topic.Utils.ACTIVE: Activates a given topic.Utils.WAITING: Waits for a given topic.Utils.HIDDEN: Hides a given topic.topics - Topics to be modified.type - The selected modification type.void modifyMergedTopic(List<org.exoplatform.forum.service.Topic> topics, int type)
Utils.CLOSE: Closes the given list of merged topics.Utils.LOCK: Locks the given list of merged topics.Utils.APPROVE: Approves the given list of merged topics.Utils.STICKY: Sticks the given list of merged topics.Utils.ACTIVE: Activates the given list of merged topics.Utils.WAITING: Waits for the given list of merged topics.Utils.HIDDEN: Hides the given list of merged topics.topics - Merged topics.type - The selected modification type.void saveTopic(String categoryId, String forumId, org.exoplatform.forum.service.Topic topic, boolean isNew, boolean isMove, org.exoplatform.forum.service.MessageBuilder messageBuilder) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topic - The topic to be saved or updated.isNew - If "true", the new topic is added. If "false", the topic is updated.isMove - If "true", the topic is moved.messageBuilder - Builds an email message.Exception - the exceptionorg.exoplatform.forum.service.Topic removeTopic(String categoryId, String forumId, String topicId) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.Exception - the exceptionvoid moveTopic(List<org.exoplatform.forum.service.Topic> topics, String destForumPath, String mailContent, String link) throws Exception
topics - Topics to be moved.destForumPath - Path to the target forum.mailContent - Content of the email notification.link - Link to a specific topic.Exception - the exceptionvoid mergeTopic(String srcTopicPath, String destTopicPath, String mailContent, String link, String topicMergeTitle) throws Exception
srcTopicPath - Path to the source topic.destTopicPath - Path to the target topic.mailContent - Content of the email notification.link - Link to a specific topic.topicMergeTitle - Title of new topic which has been merged.Exception - the exceptionvoid splitTopic(org.exoplatform.forum.service.Topic newTopic,
org.exoplatform.forum.service.Post firstPost,
List<String> postPathMove,
String mailContent,
String link)
throws Exception
newTopic - The new topic which is created after being split.firstPost - The fist post of the new topic.postPathMove - Path to the post which is moved to the topic.mailContent - Content of the email notification.link - Link to the new topic.Exceptionorg.exoplatform.forum.service.JCRPageList getPosts(String categoryId, String forumId, String topicId, String isApproved, String isHidden, String strQuery, String userLogin) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.isApproved - If "true", only approved posts are returned.isHidden - If "true", only hidden posts are returned.strQuery - The query statement.userLogin - Name of the user who logs in.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPostForSplitTopic(String topicPath) throws Exception
topicPath - Path to the topic.Exception - the exceptionListAccess<org.exoplatform.forum.service.Post> getPosts(org.exoplatform.forum.service.impl.model.PostFilter filter) throws Exception
filter - The condition to get posts.Exceptionlong getAvailablePost(String categoryId, String forumId, String topicId, String isApproved, String isHidden, String userLogin) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.isApproved - If "true", only approved posts are returned.isHidden - If "true", only hidden posts are returned.userLogin - Name of the user who logs in.Exception - the exceptionlong getLastReadIndex(String path, String isApproved, String isHidden, String userLogin) throws Exception
path - Path to the post.isApproved - If "true", the last read post must be an approved one.isHidden - If "true", the last read post must be a hidden one.userLogin - Name of the user who logs in.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPagePostByUser(String userName, String userId, boolean isMod, String strOrderBy) throws Exception
userName - Name of the current viewer.userId - Id of the poster.isMod - If "true", the poster is moderator.strOrderBy - The order type for posts (ascending or descending).Exception - the exceptionorg.exoplatform.forum.service.Post getPost(String categoryId, String forumId, String topicId, String postId) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.postId - Id of the post.Exception - the exceptionvoid savePost(String categoryId, String forumId, String topicId, org.exoplatform.forum.service.Post post, boolean isNew, org.exoplatform.forum.service.MessageBuilder messageBuilder) throws Exception
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.post - The post.isNew - If "true", the new post is added. If "false", the post is updated.messageBuilder - Builds an email message.Exception - the exceptionvoid modifyPost(List<org.exoplatform.forum.service.Post> posts, int type)
Utils.CLOSE: Closes the given post.Utils.LOCK: Locks the given post.Utils.APPROVE: Approves the given post.Utils.STICKY: Sticks the given post.Utils.ACTIVE: Activates the given post.Utils.WAITING: Waits for the given post.Utils.HIDDEN: Hides the given post.posts - The posts.type - The modification type.org.exoplatform.forum.service.Post removePost(String categoryId, String forumId, String topicId, String postId)
categoryId - Id of the category.forumId - Id of the forum.topicId - Id of the topic.postId - Id of the post.void movePost(String[] postPaths, String destTopicPath, boolean isCreatNewTopic, String mailContent, String link) throws Exception
postPaths - Paths to the moved posts.destTopicPath - Path to the destination topic.isCreatNewTopic - If "true", the new topic is created. If "false", the topic is updated.mailContent - Content of the email notification.link - Link to the topic.Exception - the exceptionObject getObjectNameByPath(String path) throws Exception
path - Path to the object name.Exception - the exceptionObject getObjectNameById(String id, String type) throws Exception
id - Identity to get the object name.type - Type of the object.Exception - the exceptionList<org.exoplatform.forum.service.ForumLinkData> getAllLink(String strQueryCate, String strQueryForum) throws Exception
strQueryCate - The query condition of the category.strQueryForum - The query condition of the forum.Exception - the exceptionString getForumHomePath() throws Exception
Exception - the exceptionvoid addTag(List<org.exoplatform.forum.service.Tag> tags, String userName, String topicPath) throws Exception
tags - Tags to be added.userName - Name of the current viewer.topicPath - Path to the topic.Exception - the exceptionvoid unTag(String tagId, String userName, String topicPath)
tagId - Id of the tag to be removed.userName - Name of the current viewer.topicPath - Path to the topic.org.exoplatform.forum.service.Tag getTag(String tagId) throws Exception
tagId - Id of the tag.Exception - the exceptionList<String> getAllTagName(String strQuery, String userAndTopicId) throws Exception
strQuery - The query statement.userAndTopicId - The 'userId,topicId' pattern.Exception - the exceptionList<String> getTagNameInTopic(String userAndTopicId) throws Exception
userAndTopicId - The 'userId,topicId' pattern.Exception - the exceptionList<org.exoplatform.forum.service.Tag> getAllTags() throws Exception
Exception - the exceptionList<org.exoplatform.forum.service.Tag> getMyTagInTopic(String[] tagIds) throws Exception
tagIds - Ids of the tags.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getTopicByMyTag(String userIdAndtagId, String strOrderBy) throws Exception
userIdAndtagId - The 'userId:tagId' pattern.strOrderBy - The order type for topics (ascending or descending).Exception - the exceptionvoid saveTag(org.exoplatform.forum.service.Tag newTag)
throws Exception
newTag - The tag to be saved.Exception - the exceptionvoid saveUserProfile(org.exoplatform.forum.service.UserProfile userProfile,
boolean isOption,
boolean isBan)
throws Exception
userProfile - The user profile to be saved.isOption - If "true", only some basic information is saved. If "false", all information is saved.isBan - If "true", the profile of the banned user is still saved.Exception - the exceptionvoid updateUserProfile(User user) throws Exception
user - The user who wants to update his profile.Exception - the exceptionvoid saveUserModerator(String userName, List<String> ids, boolean isModeCate) throws Exception
userName - Name of the user.ids - Ids in the forum or category.isModeCate - If "true", the moderator role of the category is set to the user. If "false", the moderator role of the forum is set to set to the user.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList searchUserProfile(String userSearch) throws Exception
searchUserProfileByFilter(UserProfileFilter) instead of.userSearch - The user who wants to search.Exception - the exceptionListAccess<org.exoplatform.forum.service.UserProfile> searchUserProfileByFilter(org.exoplatform.forum.service.impl.model.UserProfileFilter userProfileFilter) throws Exception
userProfileFilter - The filter objectException - the exceptionorg.exoplatform.forum.service.UserProfile getUserInfo(String userName) throws Exception
userName - Name of the user.Exception - the exceptionList<String> getUserModerator(String userName, boolean isModeCate) throws Exception
userName - Name of the user.isModeCate - If "true", Ids of categories are returned. If "false", Ids of forums are returned.Exception - the exceptionvoid saveUserBookmark(String userName, String bookMark, boolean isNew) throws Exception
userName - Name of the user who bookmarks.bookMark - The bookmark to be saved.isNew - If "true", the new bookmark is added. If "false", the bookmark is updated.Exception - the exceptionvoid saveLastPostIdRead(String userId, String[] lastReadPostOfForum, String[] lastReadPostOfTopic) throws Exception
userId - Name of the current user.lastReadPostOfForum - The number of the last read posts in a forum.lastReadPostOfTopic - The number of the last read posts in a topic.Exception - the exceptionvoid saveCollapsedCategories(String userName, String categoryId, boolean isAdd) throws Exception
userName - Name of the current user.categoryId - Id of the collapsed category.isAdd - If "true", the new collapsed category is added. If "false", the collapsed category is updated.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPageListUserProfile()
throws Exception
searchUserProfileByFilter(UserProfileFilter) instead of.Exception - the exception.List<org.exoplatform.forum.service.ForumSearchResult> getQuickSearch(String textQuery, String type, String pathQuery, String userId, List<String> listCateIds, List<String> listForumIds, List<String> forumIdsOfModerator) throws Exception
textQuery - The text query.type - Type of object to search (forum, topic or post).pathQuery - The path by which the quick search is performed.userId - The user who performs the quick search.listCateIds - A list of categories where the quick search is performed.listForumIds - A list of forums where the quick search is performed.forumIdsOfModerator - Ids of the forums where the user is moderator.Exception - the exceptionString getScreenName(String userName) throws Exception
userName - Name of the user.Exception - the exceptionList<org.exoplatform.forum.service.ForumSearchResult> getAdvancedSearch(org.exoplatform.forum.service.ForumEventQuery eventQuery, List<String> listCateIds, List<String> listForumIds)
eventQuery - The search condition.listCateIds - A list of categories where the advanced search is performed.listForumIds - A list of forums where the advanced search is performed.void saveForumStatistic(org.exoplatform.forum.service.ForumStatistic forumStatistic)
throws Exception
forumStatistic - The Forums statistics to be saved.Exception - the exception.org.exoplatform.forum.service.ForumStatistic getForumStatistic()
throws Exception
Exception - the exceptionvoid saveForumAdministration(org.exoplatform.forum.service.ForumAdministration forumAdministration)
throws Exception
forumAdministration - The Forums administration settings to be saved.Exception - the exceptionorg.exoplatform.forum.service.ForumAdministration getForumAdministration()
throws Exception
Exception - the exceptionvoid updateStatisticCounts(long topicCoutn,
long postCount)
throws Exception
topicCoutn - The number of topics.postCount - The number of posts.Exception - the exceptionvoid userLogin(String userId) throws Exception
userId - Id of the current user.Exception - the exceptionvoid userLogout(String userId) throws Exception
userId - Id of the user.Exception - the exceptionboolean isOnline(String userId) throws Exception
UserStateService.isOnline(String)userId - Id of the user.Exception - the exceptionList<String> getOnlineUsers() throws Exception
Exception - the exceptionString getLastLogin() throws Exception
Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getPrivateMessage(String userName, String type) throws Exception
userName - Name of the user.type - Two message types: Sent or Received.Exception - the exceptionlong getNewPrivateMessage(String userName) throws Exception
userName - Name of the user.Exception - the exceptionvoid savePrivateMessage(org.exoplatform.forum.service.ForumPrivateMessage privateMessage)
throws Exception
privateMessage - The private message to be saved.Exception - the exceptionvoid saveReadMessage(String messageId, String userName, String type) throws Exception
messageId - Id of the message to be saved.userName - Name of the current user.type - Two message types: Sent or Received.Exception - the exceptionvoid removePrivateMessage(String messageId, String userName, String type) throws Exception
messageId - Id of the message.userName - Name of the current user.type - Two message types: Sent or Received.Exception - the exceptionorg.exoplatform.forum.service.ForumSubscription getForumSubscription(String userId)
userId - Id of the current user.void saveForumSubscription(org.exoplatform.forum.service.ForumSubscription forumSubscription,
String userId)
throws Exception
forumSubscription - The subscription information to be saved.userId - Id of the current user.Exception - the exceptionvoid addWatch(int watchType,
String path,
List<String> values,
String currentUser)
throws Exception
watchType - Type of watch
+ It is 1: watch the email notification
+ It is -1: watch the RSSpath - Path to the watched object.values - Content of the email notification.currentUser - Information about the current user.Exception - the exceptionvoid removeWatch(int watchType,
String path,
String values)
throws Exception
watchType - Type of watch (RSS or Email).path - Path to the unwatched object.values - The value to remove.Exception - the exceptionList<org.exoplatform.forum.service.ForumSearchResult> getJobWattingForModerator(String[] paths)
paths - Paths in Forums where the user is moderator.int getJobWattingForModeratorByUser(String userId) throws Exception
userId - Id of the user.Exception - the exceptionorg.exoplatform.forum.service.SendMessageInfo getMessageInfo(String name) throws Exception
name - Name of the message.Exception - the exceptionIterator<org.exoplatform.forum.service.SendMessageInfo> getPendingMessages() throws Exception
Exception - the exceptionboolean isAdminRole(String userName) throws Exception
userName - Id of the checked user.Exception - the exceptionboolean isAdminRoleConfig(String userName) throws Exception
userName - Id of the checked user.Exception - the exceptionList<org.exoplatform.forum.service.Post> getNewPosts(int number) throws Exception
number - The limit size.Exception - the exceptionList<org.exoplatform.forum.service.Post> getRecentPostsForUser(String userName, int number) throws Exception
userName - Id of the user.number - The limit size.Exception - the exceptionjavax.jcr.NodeIterator search(String queryString) throws Exception
queryString - The query statement.Exception - the exceptionvoid evaluateActiveUsers(String query)
query - The query statement.void createUserProfile(User user) throws Exception
user - The user whose profile is created.Exception - the exceptionvoid updateTopicAccess(String userId, String topicId)
userId - Id of the user.topicId - Id of the topic.void updateForumAccess(String userId, String forumId)
userId - Id of the user.forumId - Id of the forum.void writeReads()
Object exportXML(String categoryId, String forumId, List<String> objectIds, String nodePath, ByteArrayOutputStream bos, boolean isExportAll) throws Exception
categoryId - Id of the category.forumId - Id of the forum.objectIds - Id of the category or forum.nodePath - Path to the category or forum which is exported.bos - The input byte stream. If this value is null, the output is a zip-typed file.isExportAll - If "true", all is exported.Exception - the exceptionvoid importXML(String nodePath, ByteArrayInputStream bis, int typeImport) throws Exception
nodePath - Path to the data which is imported.bis - The input stream to import.typeImport - Type of import. Refer to ImportUUIDBehavior.Exception - the exceptionList<org.exoplatform.forum.service.UserProfile> getQuickProfiles(List<String> userList) throws Exception
userList - Users.Exception - the exceptionorg.exoplatform.forum.service.UserProfile getQuickProfile(String userName) throws Exception
userName - Id of the user.Exception - the exceptionorg.exoplatform.forum.service.UserProfile getUserInformations(org.exoplatform.forum.service.UserProfile userProfile)
throws Exception
userProfile - The profile information of the user.Exception - the exceptionorg.exoplatform.forum.service.UserProfile getDefaultUserProfile(String userName, String ip) throws Exception
userName - Id of the user.ip - Ip of the user.Exception - the exceptionorg.exoplatform.forum.service.UserProfile updateUserProfileSetting(org.exoplatform.forum.service.UserProfile userProfile)
throws Exception
userProfile - The input user profile.Exception - the exceptionList<String> getBookmarks(String userName) throws Exception
userName - Id of the user.Exception - the exceptionorg.exoplatform.forum.service.UserProfile getUserSettingProfile(String userName) throws Exception
userName - Id of the user.Exception - the exceptionorg.exoplatform.forum.service.UserProfile getUserProfileManagement(String userName) throws Exception
userName - Id of the user.Exception - the exceptionvoid saveUserSettingProfile(org.exoplatform.forum.service.UserProfile userProfile)
throws Exception
userProfile - The user profile information to be saved.Exception - the exceptionvoid updateForum(String path) throws Exception
path - Path to the forum.Exception - the exceptionList<String> getBanList() throws Exception
Exception - the exceptionboolean addBanIP(String ip) throws Exception
ip - Ip to be added.Exception - the exceptionvoid removeBan(String ip) throws Exception
ip - Ip to be removed.Exception - the exceptionList<String> getForumBanList(String forumId) throws Exception
forumId - Id of the forum.Exception - the exceptionboolean addBanIPForum(String ip, String forumId) throws Exception
ip - Ip to be added.forumId - Id of the forum.Exception - the exceptionvoid removeBanIPForum(String ip, String forumId) throws Exception
ip - Ip to be removed.forumId - Id of the forum.Exception - the exceptionorg.exoplatform.forum.service.JCRPageList getListPostsByIP(String ip, String strOrderBy) throws Exception
ip - Ip to get the list of posts.strOrderBy - The returned posts are shown in the ascending or descending order.Exception - the exceptionorg.exoplatform.forum.service.ForumAttachment getUserAvatar(String userName) throws Exception
userName - Id of the user.Exception - the exceptionvoid saveUserAvatar(String userId, org.exoplatform.forum.service.ForumAttachment fileAttachment) throws Exception
userId - Id of the user.fileAttachment - The avatar data to be saved.Exception - the exceptionvoid setDefaultAvatar(String userName)
userName - Id of the user.List<org.exoplatform.forum.service.Watch> getWatchByUser(String userId) throws Exception
userId - Id of the user.Exception - the exceptionvoid updateEmailWatch(List<String> listNodeId, String newEmailAdd, String userId) throws Exception
listNodeId - A list of Ids of the watched nodes.newEmailAdd - The new email address to be updated.userId - Id of the user.Exception - the exceptionList<org.exoplatform.forum.service.PruneSetting> getAllPruneSetting() throws Exception
Exception - the exceptionorg.exoplatform.forum.service.PruneSetting getPruneSetting(String forumPath) throws Exception
forumPath - Path to the forum.Exception - the exceptionvoid savePruneSetting(org.exoplatform.forum.service.PruneSetting pruneSetting)
throws Exception
pruneSetting - The prune settings to be saved.Exception - the exceptionvoid runPrune(org.exoplatform.forum.service.PruneSetting pSetting)
throws Exception
pSetting - The prune setting to be run.Exception - the exceptionvoid runPrune(String forumPath) throws Exception
forumPath - Path to the forum.Exception - the exceptionlong checkPrune(org.exoplatform.forum.service.PruneSetting pSetting)
throws Exception
pSetting - The prune settings to be checked.Exception - the exceptionorg.exoplatform.forum.service.LazyPageList<org.exoplatform.forum.service.Topic> getTopicList(String categoryId, String forumId, String string, String strOrderBy, int pageSize) throws Exception
categoryId - Id of the category containing the topics.forumId - Id of the forum.string - The input condition.strOrderBy - The returned topics are shown in the ascending or descending order.pageSize - The limit size to get topics.Exception - the exceptionvoid updateUserProfileInfo(String name) throws Exception
name - Id of the user.Exception - the exceptionvoid addMember(User user, org.exoplatform.forum.service.UserProfile profileTemplate) throws Exception
user - The user to be added.profileTemplate - The user profile template to be used for default settings.Exceptionvoid removeMember(User user) throws Exception
user - The user who is removed from the forum.Exceptionvoid updateLoggedinUsers()
throws Exception
Exceptionvoid processEnabledUser(String userName, String email, boolean isEnabled)
userName - The userName of user.email - The email of user.isEnabled - The status of uservoid calculateDeletedUser(String userName) throws Exception
userName - Id of the removed user.Exception - the exceptionvoid calculateDeletedGroup(String groupId, String groupName) throws Exception
groupId - Id of the deleted group.groupName - Name of the deleted group.Exception - the exceptionInputStream createForumRss(String objectId, String link) throws Exception
objectId - Id of any object which needs to create RSS (forum, topic).link - The link to get RSS.Exception - the exceptionInputStream createUserRss(String userId, String link) throws Exception
userId - Id of the user.link - The link to get the RSS.Exception - the exceptionvoid addListenerPlugin(org.exoplatform.forum.service.ForumEventListener listener)
throws Exception
listener - The forum listener to be added.Exception - the exceptionvoid removeCacheUserProfile(String userName) throws Exception
userName - Id of the user.Exceptionvoid saveActivityIdForOwnerId(String ownerId, String activityId)
ownerId - Id of the user who has created the forum activity.activityId - Id of the forum activity.void saveActivityIdForOwnerPath(String ownerPath, String activityId)
ownerPath - Path to the user who has created the forum activity.activityId - Id of the forum activity.String getActivityIdForOwnerId(String ownerId)
ownerId - Id of the user who has created the forum activity.String getActivityIdForOwnerPath(String ownerPath)
ownerPath - Path to the user who has created the forum activity.void saveCommentIdForOwnerId(String ownerId, String commentId)
ownerId - Id of the user who has commented.commentId - Id of the comment.void saveCommentIdForOwnerPath(String ownerPath, String commentId)
ownerPath - Path to the user who has commented.commentId - Id of the comment.String getCommentIdForOwnerId(String ownerId)
ownerId - Id of the user who has commented.Copyright © 2003-2018 eXo Platform SAS. All Rights Reserved.