public class JCRDataStorage extends Object implements org.exoplatform.forum.service.DataStorage, org.exoplatform.forum.service.ForumNodeTypes
| Modifier and Type | Class and Description |
|---|---|
class |
JCRDataStorage.ResetAvatarTask
Task that reset the user avatar
|
ASC, ASCENDING, DESC, DESCENDING, EXO_ACTIVE_USERS, EXO_ADMINISTRATION, EXO_ADMINISTRATION_HOME, EXO_BAN_COUNTER, EXO_BAN_I_PS, EXO_BAN_IP_HOME, EXO_BAN_REASON, EXO_BAN_REASON_SUMMARY, EXO_BAN_UNTIL, EXO_BOOKMARK, EXO_CAN_POST, EXO_CAN_VIEW, EXO_CATEGORY_HOME, EXO_CATEGORY_IDS, EXO_CATEGORY_ORDER, EXO_CENSORED_KEYWORD, EXO_COLLAP_CATEGORIES, EXO_CREATE_TOPIC_ROLE, EXO_CREATED_DATE, EXO_CREATED_DATE_BAN, EXO_DESCRIPTION, EXO_DISABLED, EXO_EDIT_REASON, EXO_EMAIL, EXO_EMAIL_WATCHING, EXO_ENABLE_HEADER_SUBJECT, EXO_FILE_NAME, EXO_FILE_SIZE, EXO_FIRST_NAME, EXO_FORUM, EXO_FORUM_ATTACHMENT, EXO_FORUM_BB_CODE_HOME, EXO_FORUM_CATEGORY, EXO_FORUM_COUNT, EXO_FORUM_IDS, EXO_FORUM_ORDER, EXO_FORUM_RESOURCE, EXO_FORUM_SORT_BY, EXO_FORUM_SORT_BY_TYPE, EXO_FORUM_SUBSCRIPTION, EXO_FORUM_TAG, EXO_FORUM_USER_PROFILE, EXO_FORUM_WATCHING, EXO_FROM, EXO_FULL_NAME, EXO_HEADER_SUBJECT, EXO_ICON, EXO_ID, EXO_IN_ACTIVE_DAY, EXO_INCLUDED_SPACE, EXO_IPS, EXO_IS_ACTIVE, EXO_IS_ACTIVE_BY_FORUM, EXO_IS_ACTIVE_BY_TOPIC, EXO_IS_AGAIN_VOTE, EXO_IS_APPROVED, EXO_IS_AUTO_ADD_EMAIL_NOTIFY, EXO_IS_AUTO_WATCH_MY_TOPICS, EXO_IS_AUTO_WATCH_TOPIC_I_POST, EXO_IS_BANNED, EXO_IS_CLOSED, EXO_IS_DISABLED, EXO_IS_DISPLAY_AVATAR, EXO_IS_DISPLAY_SIGNATURE, EXO_IS_FIRST_POST, EXO_IS_HIDDEN, EXO_IS_LOCK, EXO_IS_MODERATE_POST, EXO_IS_MODERATE_TOPIC, EXO_IS_MULTI_CHECK, EXO_IS_NOTIFY_WHEN_ADD_POST, EXO_IS_POLL, EXO_IS_STICKY, EXO_IS_UNREAD, EXO_IS_WAITING, EXO_JOB_WATTING_FOR_MODERATOR, EXO_JOINED_DATE, EXO_LAST_LOGIN_DATE, EXO_LAST_NAME, EXO_LAST_POST_BY, EXO_LAST_POST_DATE, EXO_LAST_READ_POST_OF_FORUM, EXO_LAST_READ_POST_OF_TOPIC, EXO_LAST_RUN_DATE, EXO_LAST_TOPIC_PATH, EXO_LINK, EXO_LONG_DATEFORMAT, EXO_MAX_POST, EXO_MAX_TOPIC, EXO_MEMBERS_COUNT, EXO_MESSAGE, EXO_MODERATE_CATEGORY, EXO_MODERATE_FORUMS, EXO_MODERATORS, EXO_MODIFIED_BY, EXO_MODIFIED_DATE, EXO_MOST_USERS_ONLINE, EXO_NAME, EXO_NEW_MEMBERS, EXO_NEW_MESSAGE, EXO_NOTIFY_EMAIL_CONTENT, EXO_NOTIFY_EMAIL_MOVED, EXO_NOTIFY_WHEN_ADD_POST, EXO_NOTIFY_WHEN_ADD_TOPIC, EXO_NUMBER_ATTACH, EXO_NUMBER_ATTACHMENTS, EXO_OPTION, EXO_OWNER, EXO_PATH, EXO_PERIOD_TIME, EXO_POLL, EXO_POST, EXO_POST_COUNT, EXO_POSTER, EXO_PRIVATE_MESSAGE, EXO_PRUNE_SETTING, EXO_QUESTION, EXO_READ_FORUM, EXO_READ_TOPIC, EXO_RECEIVED_DATE, EXO_REMOTE_ADDR, EXO_RSS_WATCHING, EXO_SCREEN_NAME, EXO_SEND_TO, EXO_SHORT_DATEFORMAT, EXO_SIGNATURE, EXO_TAG_HOME, EXO_TAG_ID, EXO_TEMP_MODERATORS, EXO_TIME_FORMAT, EXO_TIME_OUT, EXO_TIME_ZONE, EXO_TOPIC, EXO_TOPIC_COUNT, EXO_TOPIC_IDS, EXO_TOPIC_SORT_BY, EXO_TOPIC_SORT_BY_TYPE, EXO_TOTAL_POST, EXO_TOTAL_TOPIC, EXO_TYPE, EXO_USE_COUNT, EXO_USER_DELETED, EXO_USER_ID, EXO_USER_PRI, EXO_USER_PRIVATE, EXO_USER_PROFILE_HOME, EXO_USER_ROLE, EXO_USER_TAG, EXO_USER_TITLE, EXO_USER_VOTE, EXO_USER_VOTE_RATING, EXO_USER_WATCHING, EXO_VIEW_COUNT, EXO_VIEWER, EXO_VOTE, EXO_VOTE_RATING, JCR_CONTENT, JCR_DATA, JCR_LAST_MODIFIED, JCR_MIME_TYPE, JCR_PATH, JCR_ROOT, JCR_SCORE, KNOWLEDGE_SUITE_FORUM_JOBS, MIXIN_FORUM_CATEGORY, MIXIN_REFERENCEABLE_TYPE, NT_FILE, NT_RESOURCE, REP_EXCERPT, REP_EXCERPT_PATTERN, TEXT_HTML| Constructor and Description |
|---|
JCRDataStorage() |
JCRDataStorage(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBanIP(String ip) |
boolean |
addBanIPForum(String ip,
String forumId) |
void |
addDeletedUserCalculateListener() |
void |
addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
void |
addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
void |
addPlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
void |
addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin) |
void |
addTag(List<org.exoplatform.forum.service.Tag> tags,
String userName,
String topicPath) |
void |
addWatch(int watchType,
String path,
List<String> values,
String currentUser) |
void |
calculateDeletedGroup(String groupId,
String groupName) |
void |
calculateDeletedUser(String userName) |
void |
calculateModerator(String nodePath,
boolean isNew) |
long |
checkPrune(org.exoplatform.forum.service.PruneSetting pSetting) |
static List<String> |
containsGroup(List<String> list,
String groupId) |
protected List<File> |
createAllForumFiles(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) |
protected List<File> |
createCategoryFiles(List<String> objectIds,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) |
protected List<File> |
createFilesFromNode(javax.jcr.Node node,
String type) |
protected List<File> |
createForumFiles(String categoryId,
List<String> objectIds,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) |
InputStream |
createForumRss(String objectId,
String link) |
InputStream |
createUserRss(String userId,
String link) |
protected void |
deletedUserCalculateListener(javax.jcr.Node node) |
boolean |
deleteUserProfile(String userId) |
void |
evaluateActiveUsers(String strQuery) |
Object |
exportXML(String categoryId,
String forumId,
List<String> objectIds,
String nodePath,
ByteArrayOutputStream bos,
boolean isExportAll) |
List<org.exoplatform.forum.service.filter.model.CategoryFilter> |
filterForumByName(String forumNameFilter,
String userName,
int maxSize) |
String |
getActivityIdForOwner(String ownerPath) |
String |
getActivityIdForOwner(String ownerId,
String type) |
List<org.exoplatform.forum.service.ForumSearchResult> |
getAdvancedSearch(org.exoplatform.forum.service.ForumEventQuery eventQuery,
List<String> listCateIds,
List<String> listForumIds) |
List<org.exoplatform.forum.service.ForumLinkData> |
getAllLink(String strQueryCate,
String strQueryForum) |
List<org.exoplatform.forum.service.PruneSetting> |
getAllPruneSetting() |
List<String> |
getAllTagName(String keyValue,
String userAndTopicId) |
List<org.exoplatform.forum.service.Tag> |
getAllTags() |
List<org.exoplatform.forum.service.Topic> |
getAllTopicsOld(long date,
String forumPath) |
static List<org.exoplatform.forum.service.ForumAttachment> |
getAttachmentsByNode(javax.jcr.Node node) |
long |
getAvailablePost(String categoryId,
String forumId,
String topicId,
String isApproved,
String isHidden,
String userLogin) |
List<String> |
getBanList() |
List<String> |
getBookmarks(String userName) |
org.exoplatform.forum.service.DataStorage |
getCachedDataStorage() |
List<org.exoplatform.forum.service.Category> |
getCategories() |
org.exoplatform.forum.service.Category |
getCategory(String categoryId) |
org.exoplatform.forum.service.Category |
getCategoryIncludedSpace() |
org.exoplatform.forum.common.jcr.KSDataLocation |
getDataLocation() |
List<org.exoplatform.forum.service.InitializeForumPlugin> |
getDefaultPlugins() |
org.exoplatform.forum.service.UserProfile |
getDefaultUserProfile(String userName,
String ip) |
org.exoplatform.forum.service.Forum |
getForum(String categoryId,
String forumId) |
org.exoplatform.forum.service.ForumAdministration |
getForumAdministration() |
List<String> |
getForumBanList(String forumId) |
protected javax.jcr.Node |
getForumHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider) |
List<org.exoplatform.forum.service.Forum> |
getForums(org.exoplatform.forum.service.filter.model.ForumFilter filter) |
List<org.exoplatform.forum.service.Forum> |
getForums(String categoryId,
String strQuery)
Deprecated.
|
org.exoplatform.forum.service.SortSettings |
getForumSortSettings() |
org.exoplatform.forum.service.ForumStatistic |
getForumStatistic() |
org.exoplatform.forum.service.ForumSubscription |
getForumSubscription(String userId) |
List<org.exoplatform.forum.service.Forum> |
getForumSummaries(String categoryId,
String strQuery)
Deprecated.
|
List<String> |
getForumUserCanView(List<String> listOfUser,
List<String> listForumIds) |
List<org.exoplatform.forum.service.ForumSearchResult> |
getJobWattingForModerator(String[] paths) |
int |
getJobWattingForModeratorByUser(String userId) |
org.exoplatform.forum.service.UserProfile |
getLastPostIdRead(org.exoplatform.forum.service.UserProfile userProfile,
String isOfForum) |
long |
getLastReadIndex(String path,
String isApproved,
String isHidden,
String userLogin) |
String |
getLatestUser() |
org.exoplatform.forum.service.JCRPageList |
getListPostsByIP(String ip,
String strOrderBy) |
org.exoplatform.forum.service.SendMessageInfo |
getMessageInfo(String name) |
List<org.exoplatform.forum.service.Tag> |
getMyTagInTopic(String[] tagIds) |
List<org.exoplatform.forum.service.Post> |
getNewPosts(int number) |
long |
getNewPrivateMessage(String userName) |
Object |
getObjectNameById(String id,
String type) |
Object |
getObjectNameByPath(String path) |
String |
getOwner(String path)
Get the owner of created post or topic by path
|
org.exoplatform.forum.service.JCRPageList |
getPageListUserProfile() |
org.exoplatform.forum.service.JCRPageList |
getPagePostByUser(String userName,
String userId,
boolean isMod,
String strOrderBy) |
org.exoplatform.forum.service.JCRPageList |
getPageTopic(String categoryId,
String forumId,
String strQuery,
String strOrderBy)
Deprecated.
|
org.exoplatform.forum.service.JCRPageList |
getPageTopicByUser(String userName,
boolean isMod,
String strOrderBy)
Deprecated.
|
org.exoplatform.forum.service.JCRPageList |
getPageTopicOld(long date,
String forumPatch)
Deprecated.
|
String |
getPath() |
Iterator<org.exoplatform.forum.service.SendMessageInfo> |
getPendingMessages() |
String[] |
getPermissionTopicByCategory(String categoryId,
String type) |
org.exoplatform.forum.service.Post |
getPost(javax.jcr.Node postNode) |
org.exoplatform.forum.service.Post |
getPost(String categoryId,
String forumId,
String topicId,
String postId) |
org.exoplatform.forum.service.JCRPageList |
getPostForSplitTopic(String topicPath)
Deprecated.
|
List<org.exoplatform.forum.service.Post> |
getPosts(org.exoplatform.forum.service.impl.model.PostFilter filter,
int offset,
int limit) |
org.exoplatform.forum.service.JCRPageList |
getPosts(String categoryId,
String forumId,
String topicId,
String isApproved,
String isHidden,
String strQuery,
String userLogin)
Deprecated.
|
List<org.exoplatform.forum.service.Post> |
getPostsByIP(org.exoplatform.forum.service.impl.model.PostFilter filter,
int offset,
int limit) |
List<org.exoplatform.forum.service.Post> |
getPostsByUser(org.exoplatform.forum.service.impl.model.PostFilter filter,
int offset,
int limit) |
int |
getPostsCount(org.exoplatform.forum.service.impl.model.PostFilter filter) |
List<org.exoplatform.forum.service.Post> |
getPostsSplitTopic(org.exoplatform.forum.service.impl.model.PostFilter filter,
int offset,
int limit) |
org.exoplatform.forum.service.JCRPageList |
getPrivateMessage(String userName,
String type) |
org.exoplatform.forum.service.PruneSetting |
getPruneSetting(String forumPath) |
org.exoplatform.forum.service.task.QueryLastPostTaskManager |
getQueryLastPostTaskManager() |
org.exoplatform.forum.service.UserProfile |
getQuickProfile(String userName) |
List<org.exoplatform.forum.service.UserProfile> |
getQuickProfiles(List<String> userList) |
List<org.exoplatform.forum.service.ForumSearchResult> |
getQuickSearch(String textQuery,
String type_,
String pathQuery,
String userId,
List<String> listCateIds,
List<String> listForumIds,
List<String> forumIdsOfModerator) |
List<org.exoplatform.forum.service.Post> |
getRecentPostsForUser(String userName,
int number) |
String |
getRepository() |
List<org.exoplatform.forum.common.conf.RoleRulesPlugin> |
getRulesPlugins() |
String |
getScreenName(String userName) |
org.exoplatform.forum.service.task.SendNotificationTaskManager |
getSendNotificationTaskManager() |
Map<String,String> |
getServerConfig() |
protected javax.jcr.Node |
getStatisticHome(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider) |
org.exoplatform.forum.service.Tag |
getTag(String tagId) |
List<String> |
getTagNameInTopic(String userAndTopicId) |
org.exoplatform.forum.service.Topic |
getTopic(String categoryId,
String forumId,
String topicId,
String userRead) |
org.exoplatform.forum.service.JCRPageList |
getTopicByMyTag(String userIdAndtagId,
String strOrderBy) |
org.exoplatform.forum.service.Topic |
getTopicByPath(String topicPath,
boolean isLastPost) |
org.exoplatform.forum.service.LazyPageList<org.exoplatform.forum.service.Topic> |
getTopicList(String categoryId,
String forumId,
String xpathConditions,
String strOrderBy,
int pageSize)
Deprecated.
|
org.exoplatform.forum.service.Topic |
getTopicNode(javax.jcr.Node topicNode) |
List<org.exoplatform.forum.service.Topic> |
getTopics(String categoryId,
String forumId) |
List<org.exoplatform.forum.service.Topic> |
getTopics(org.exoplatform.forum.service.impl.model.TopicFilter filter,
int offset,
int limit) |
List<org.exoplatform.forum.service.Topic> |
getTopicsByDate(long date,
String forumPath,
int offset,
int limit) |
List<org.exoplatform.forum.service.Topic> |
getTopicsByUser(org.exoplatform.forum.service.impl.model.TopicFilter filter,
int offset,
int limit) |
int |
getTopicsCount(org.exoplatform.forum.service.impl.model.TopicFilter filter) |
org.exoplatform.forum.service.SortSettings |
getTopicSortSettings() |
org.exoplatform.forum.service.Topic |
getTopicSummary(String topicPath) |
org.exoplatform.forum.service.Topic |
getTopicSummary(String topicPath,
boolean isLastPost) |
org.exoplatform.forum.service.Topic |
getTopicUpdate(org.exoplatform.forum.service.Topic topic,
boolean isSummary) |
long |
getTotalTopicOld(long date,
String forumPath) |
List<org.exoplatform.forum.service.ForumSearchResult> |
getUnifiedSearch(String textQuery,
String userId,
Integer offset,
Integer limit,
String sort,
String order) |
org.exoplatform.forum.service.ForumAttachment |
getUserAvatar(String userName) |
org.exoplatform.forum.service.UserProfile |
getUserInfo(String userName) |
org.exoplatform.forum.service.UserProfile |
getUserInformations(org.exoplatform.forum.service.UserProfile userProfile) |
List<String> |
getUserModerator(String userName,
boolean isModeCate) |
int |
getUserProfileByFilterCount(org.exoplatform.forum.service.impl.model.UserProfileFilter userProfileFilter) |
protected javax.jcr.Node |
getUserProfileHome(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider) |
org.exoplatform.forum.service.UserProfile |
getUserProfileManagement(String userName) |
protected javax.jcr.Node |
getUserProfileNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
String userId) |
org.exoplatform.forum.service.UserProfile |
getUserSettingProfile(String userName) |
List<org.exoplatform.forum.service.Watch> |
getWatchByUser(String userId) |
String |
getWorkspace() |
void |
importXML(String nodePath,
ByteArrayInputStream bis,
int typeImport) |
void |
initAutoPruneSchedules() |
void |
initCategoryListener() |
void |
initDataPlugin() |
void |
initDefaultData() |
boolean |
isAdminRole(String userName) |
boolean |
isAdminRoleConfig(String userName) |
boolean |
isBanIp(String ip) |
void |
mergeTopic(String srcTopicPath,
String destTopicPath,
String mailContent,
String link) |
void |
modifyForum(org.exoplatform.forum.service.Forum forum,
int type) |
void |
modifyPost(List<org.exoplatform.forum.service.Post> posts,
int type) |
void |
modifyTopic(List<org.exoplatform.forum.service.Topic> topics,
int type) |
void |
moveForum(List<org.exoplatform.forum.service.Forum> forums,
String destCategoryPath) |
void |
movePost(String[] postPaths,
String destTopicPath,
boolean isCreatNewTopic,
String mailContent,
String link) |
void |
moveTopic(List<org.exoplatform.forum.service.Topic> topics,
String destForumPath,
String mailContent,
String link) |
boolean |
populateUserProfile(org.exoplatform.services.organization.User user,
org.exoplatform.forum.service.UserProfile profileTemplate,
boolean isNew) |
void |
processEnabledUser(String userName,
String email,
boolean isEnabled) |
void |
queryLastPostForum(String forumPath) |
void |
removeBan(String ip) |
void |
removeBanIPForum(String ip,
String forumId) |
void |
removeCacheUserProfile(String userName) |
org.exoplatform.forum.service.Category |
removeCategory(String categoryId) |
org.exoplatform.forum.service.Forum |
removeForum(String categoryId,
String forumId) |
org.exoplatform.forum.service.Post |
removePost(String categoryId,
String forumId,
String topicId,
String postId) |
void |
removePrivateMessage(String messageId,
String userName,
String type) |
org.exoplatform.forum.service.Topic |
removeTopic(String categoryId,
String forumId,
String topicId) |
void |
removeWatch(int watchType,
String path,
String values) |
void |
runPrune(org.exoplatform.forum.service.PruneSetting pSetting) |
void |
runPrune(String forumPath) |
void |
saveActivityIdForOwner(String ownerPath,
String activityId) |
void |
saveActivityIdForOwner(String ownerId,
String type,
String activityId) |
void |
saveCategory(org.exoplatform.forum.service.Category category,
boolean isNew) |
void |
saveCollapsedCategories(String userName,
String categoryId,
boolean isAdd) |
void |
saveForum(String categoryId,
org.exoplatform.forum.service.Forum forum,
boolean isNew) |
void |
saveForumAdministration(org.exoplatform.forum.service.ForumAdministration forumAdministration) |
void |
saveForumStatistic(org.exoplatform.forum.service.ForumStatistic forumStatistic) |
void |
saveForumSubscription(org.exoplatform.forum.service.ForumSubscription forumSubscription,
String userId) |
void |
saveLastPostIdRead(String userId,
String[] lastReadPostOfForum,
String[] lastReadPostOfTopic) |
void |
saveModerateOfForums(List<String> forumPaths,
String userName,
boolean isDelete) |
void |
saveModOfCategory(List<String> moderatorCate,
String userId,
boolean isAdd) |
void |
savePost(String categoryId,
String forumId,
String topicId,
org.exoplatform.forum.service.Post post,
boolean isNew,
org.exoplatform.forum.service.MessageBuilder messageBuilder)
This function was overridden to not send Forum Web notification and emails for private posts
|
void |
savePrivateMessage(org.exoplatform.forum.service.ForumPrivateMessage privateMessage) |
void |
savePruneSetting(org.exoplatform.forum.service.PruneSetting pruneSetting) |
void |
saveReadMessage(String messageId,
String userName,
String type) |
void |
saveTag(org.exoplatform.forum.service.Tag newTag) |
void |
saveTopic(String categoryId,
String forumId,
org.exoplatform.forum.service.Topic topic,
boolean isNew,
boolean isMove,
org.exoplatform.forum.service.MessageBuilder messageBuilder) |
void |
saveUserAvatar(String userId,
org.exoplatform.forum.service.ForumAttachment fileAttachment) |
void |
saveUserBookmark(String userName,
String bookMark,
boolean isNew) |
void |
saveUserModerator(String userName,
List<String> ids,
boolean isModeCate) |
void |
saveUserPrivateOfCategory(String categoryId,
String priInfo) |
void |
saveUserProfile(org.exoplatform.forum.service.UserProfile newUserProfile,
boolean isOption,
boolean isBan) |
void |
saveUserSettingProfile(org.exoplatform.forum.service.UserProfile userProfile) |
javax.jcr.NodeIterator |
search(String queryString) |
org.exoplatform.forum.service.JCRPageList |
searchUserProfile(String userSearch) |
List<org.exoplatform.forum.service.UserProfile> |
searchUserProfileByFilter(org.exoplatform.forum.service.impl.model.UserProfileFilter userProfileFilter,
int offset,
int limit) |
void |
sendNotification(String nodePath,
org.exoplatform.forum.service.Topic topic,
org.exoplatform.forum.service.Post post,
org.exoplatform.forum.service.MessageBuilder messageBuilder,
boolean isApprovePost) |
void |
sendNotificationMessage(org.exoplatform.forum.service.ForumPrivateMessage message) |
void |
setDataLocator(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator) |
void |
setDefaultAvatar(String userName) |
void |
setViewCountTopic(String path,
String userRead) |
void |
splitTopic(org.exoplatform.forum.service.Topic newTopic,
org.exoplatform.forum.service.Post fistPost,
List<String> postPathMove,
String mailContent,
String link) |
boolean |
topicHasPoll(String topicPath) |
void |
unTag(String tagId,
String userName,
String topicPath) |
void |
updateEmailWatch(List<String> listNodeId,
String newEmailAdd,
String userId) |
void |
updateForum(String path) |
void |
updateForumAccess(String userId,
String forumId) |
void |
updateLastLoginDate(String userId) |
void |
updatePostCount(String postPath,
String owner)
Update the number of post and also the information about the last post of topic when a new post is added
|
void |
updateProfileAddPost(String owner,
String postPath)
This method is call by StatisticEventListener to update user's profile when new post is added
|
void |
updateProfileAddTopic(String owner)
This method is call by StatisticEventListener to update user's profile when new topic is added
|
void |
updateStatisticCounts(long topicCount,
long postCount) |
void |
updateTopicAccess(String userId,
String topicId) |
void |
updateUserProfileInfo(String name) |
org.exoplatform.forum.service.UserProfile |
updateUserProfileSetting(org.exoplatform.forum.service.UserProfile userProfile) |
void |
writeReads() |
void |
writeViews() |
public JCRDataStorage()
public JCRDataStorage(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
public org.exoplatform.forum.service.DataStorage getCachedDataStorage()
public org.exoplatform.forum.service.task.SendNotificationTaskManager getSendNotificationTaskManager()
public org.exoplatform.forum.service.task.QueryLastPostTaskManager getQueryLastPostTaskManager()
public String getRepository()
getRepository in interface org.exoplatform.forum.service.DataStoragepublic String getWorkspace()
getWorkspace in interface org.exoplatform.forum.service.DataStoragepublic String getPath()
getPath in interface org.exoplatform.forum.service.DataStorageprotected javax.jcr.Node getForumHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws Exception
Exceptionprotected javax.jcr.Node getStatisticHome(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws Exception
Exceptionprotected javax.jcr.Node getUserProfileHome(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
throws Exception
Exceptionprotected javax.jcr.Node getUserProfileNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider,
String userId)
throws Exception
Exceptionpublic void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
addPlugin in interface org.exoplatform.forum.service.DataStorageExceptionpublic void addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
addRolePlugin in interface org.exoplatform.forum.service.DataStorageExceptionpublic void addInitialDefaultDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
addInitialDefaultDataPlugin in interface org.exoplatform.forum.service.DataStorageExceptionpublic void addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
addInitialDataPlugin in interface org.exoplatform.forum.service.DataStorageExceptionpublic void addDeletedUserCalculateListener()
addDeletedUserCalculateListener in interface org.exoplatform.forum.service.DataStorageprotected void deletedUserCalculateListener(javax.jcr.Node node)
throws Exception
Exceptionpublic void initCategoryListener()
initCategoryListener in interface org.exoplatform.forum.service.DataStoragepublic void initAutoPruneSchedules()
initAutoPruneSchedules in interface org.exoplatform.forum.service.DataStoragepublic boolean isAdminRole(String userName) throws Exception
isAdminRole in interface org.exoplatform.forum.service.DataStorageExceptionpublic boolean isAdminRoleConfig(String userName) throws Exception
isAdminRoleConfig in interface org.exoplatform.forum.service.DataStorageExceptionpublic void setDefaultAvatar(String userName)
setDefaultAvatar in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.ForumAttachment getUserAvatar(String userName) throws Exception
getUserAvatar in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveUserAvatar(String userId, org.exoplatform.forum.service.ForumAttachment fileAttachment) throws Exception
saveUserAvatar in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveForumAdministration(org.exoplatform.forum.service.ForumAdministration forumAdministration)
throws Exception
saveForumAdministration in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.ForumAdministration getForumAdministration()
throws Exception
getForumAdministration in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.SortSettings getForumSortSettings()
getForumSortSettings in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.SortSettings getTopicSortSettings()
throws Exception
getTopicSortSettings in interface org.exoplatform.forum.service.DataStorageExceptionpublic void initDataPlugin()
throws Exception
initDataPlugin in interface org.exoplatform.forum.service.DataStorageExceptionpublic void initDefaultData()
throws Exception
initDefaultData in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Category> getCategories()
getCategories in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.Category getCategory(String categoryId)
getCategory in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.Category getCategoryIncludedSpace()
getCategoryIncludedSpace in interface org.exoplatform.forum.service.DataStoragepublic String[] getPermissionTopicByCategory(String categoryId, String type) throws Exception
getPermissionTopicByCategory in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveCategory(org.exoplatform.forum.service.Category category,
boolean isNew)
throws Exception
saveCategory in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveUserPrivateOfCategory(String categoryId, String priInfo)
saveUserPrivateOfCategory in interface org.exoplatform.forum.service.DataStoragepublic void saveModOfCategory(List<String> moderatorCate, String userId, boolean isAdd)
saveModOfCategory in interface org.exoplatform.forum.service.DataStoragepublic void calculateModerator(String nodePath, boolean isNew) throws Exception
calculateModerator in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Category removeCategory(String categoryId) throws Exception
removeCategory in interface org.exoplatform.forum.service.DataStorageException@Deprecated public List<org.exoplatform.forum.service.Forum> getForums(String categoryId, String strQuery) throws Exception
getForums in interface org.exoplatform.forum.service.DataStorageException@Deprecated public List<org.exoplatform.forum.service.Forum> getForumSummaries(String categoryId, String strQuery) throws Exception
getForumSummaries in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Forum> getForums(org.exoplatform.forum.service.filter.model.ForumFilter filter)
getForums in interface org.exoplatform.forum.service.DataStoragepublic List<org.exoplatform.forum.service.filter.model.CategoryFilter> filterForumByName(String forumNameFilter, String userName, int maxSize) throws Exception
filterForumByName in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Forum getForum(String categoryId, String forumId)
getForum in interface org.exoplatform.forum.service.DataStoragepublic void modifyForum(org.exoplatform.forum.service.Forum forum,
int type)
throws Exception
modifyForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveForum(String categoryId, org.exoplatform.forum.service.Forum forum, boolean isNew) throws Exception
saveForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveModerateOfForums(List<String> forumPaths, String userName, boolean isDelete) throws Exception
saveModerateOfForums in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Forum removeForum(String categoryId, String forumId) throws Exception
removeForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic void moveForum(List<org.exoplatform.forum.service.Forum> forums, String destCategoryPath) throws Exception
moveForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getPageTopic(String categoryId, String forumId, String strQuery, String strOrderBy) throws Exception
getTopics(TopicFilter, int, int)getPageTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.LazyPageList<org.exoplatform.forum.service.Topic> getTopicList(String categoryId, String forumId, String xpathConditions, String strOrderBy, int pageSize) throws Exception
getTopics(TopicFilter, int, int)getTopicList in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Topic> getTopics(org.exoplatform.forum.service.impl.model.TopicFilter filter, int offset, int limit) throws Exception
getTopics in interface org.exoplatform.forum.service.DataStorageExceptionpublic int getTopicsCount(org.exoplatform.forum.service.impl.model.TopicFilter filter)
throws Exception
getTopicsCount in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Topic> getTopics(String categoryId, String forumId) throws Exception
getTopics in interface org.exoplatform.forum.service.DataStorageExceptionpublic void setViewCountTopic(String path, String userRead)
setViewCountTopic in interface org.exoplatform.forum.service.DataStoragepublic void writeViews()
writeViews in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.Topic getTopic(String categoryId, String forumId, String topicId, String userRead) throws Exception
getTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Topic getTopicSummary(String topicPath)
getTopicSummary in interface org.exoplatform.forum.service.DataStoragepublic boolean topicHasPoll(String topicPath)
topicHasPoll in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.Topic getTopicSummary(String topicPath, boolean isLastPost) throws Exception
getTopicSummary in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Topic getTopicByPath(String topicPath, boolean isLastPost) throws Exception
getTopicByPath in interface org.exoplatform.forum.service.DataStorageExceptionpublic void queryLastPostForum(String forumPath) throws Exception
Exceptionpublic org.exoplatform.forum.service.Topic getTopicUpdate(org.exoplatform.forum.service.Topic topic,
boolean isSummary)
throws Exception
getTopicUpdate in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Topic getTopicNode(javax.jcr.Node topicNode)
throws Exception
Exceptionpublic org.exoplatform.forum.service.JCRPageList getPageTopicOld(long date,
String forumPatch)
throws Exception
getTopicsByDate(long, String, int, int)getPageTopicOld in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Topic> getTopicsByDate(long date, String forumPath, int offset, int limit) throws Exception
getTopicsByDate in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Topic> getAllTopicsOld(long date, String forumPath) throws Exception
getAllTopicsOld in interface org.exoplatform.forum.service.DataStorageExceptionpublic long getTotalTopicOld(long date,
String forumPath)
getTotalTopicOld in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.JCRPageList getPageTopicByUser(String userName, boolean isMod, String strOrderBy) throws Exception
getTopicsByUser(TopicFilter, int, int)getPageTopicByUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Topic> getTopicsByUser(org.exoplatform.forum.service.impl.model.TopicFilter filter, int offset, int limit) throws Exception
getTopicsByUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic void modifyTopic(List<org.exoplatform.forum.service.Topic> topics, int type)
modifyTopic in interface org.exoplatform.forum.service.DataStoragepublic void updateProfileAddTopic(String owner) throws Exception
owner - user's name of an user that create the topicExceptionpublic String getOwner(String path)
path - the post or topic node pathpublic void saveTopic(String categoryId, String forumId, org.exoplatform.forum.service.Topic topic, boolean isNew, boolean isMove, org.exoplatform.forum.service.MessageBuilder messageBuilder) throws Exception
saveTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateUserProfileInfo(String name) throws Exception
updateUserProfileInfo in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.Topic removeTopic(String categoryId, String forumId, String topicId)
removeTopic in interface org.exoplatform.forum.service.DataStoragepublic void moveTopic(List<org.exoplatform.forum.service.Topic> topics, String destForumPath, String mailContent, String link) throws Exception
moveTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic long getLastReadIndex(String path, String isApproved, String isHidden, String userLogin)
getLastReadIndex in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.JCRPageList getPostForSplitTopic(String topicPath) throws Exception
getPostsSplitTopic(PostFilter, int, int)getPostForSplitTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Post> getPostsSplitTopic(org.exoplatform.forum.service.impl.model.PostFilter filter, int offset, int limit) throws Exception
Exceptionpublic org.exoplatform.forum.service.JCRPageList getPosts(String categoryId, String forumId, String topicId, String isApproved, String isHidden, String strQuery, String userLogin) throws Exception
getPosts(PostFilter, int, int)getPosts in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Post> getPosts(org.exoplatform.forum.service.impl.model.PostFilter filter, int offset, int limit) throws Exception
getPosts in interface org.exoplatform.forum.service.DataStorageExceptionpublic int getPostsCount(org.exoplatform.forum.service.impl.model.PostFilter filter)
throws Exception
getPostsCount in interface org.exoplatform.forum.service.DataStorageExceptionpublic long getAvailablePost(String categoryId, String forumId, String topicId, String isApproved, String isHidden, String userLogin) throws Exception
getAvailablePost in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getPagePostByUser(String userName, String userId, boolean isMod, String strOrderBy) throws Exception
getPagePostByUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Post> getPostsByUser(org.exoplatform.forum.service.impl.model.PostFilter filter, int offset, int limit) throws Exception
Exceptionpublic org.exoplatform.forum.service.Post getPost(String categoryId, String forumId, String topicId, String postId) throws Exception
getPost in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getListPostsByIP(String ip, String strOrderBy) throws Exception
getListPostsByIP in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Post> getPostsByIP(org.exoplatform.forum.service.impl.model.PostFilter filter, int offset, int limit) throws Exception
Exceptionpublic org.exoplatform.forum.service.Post getPost(javax.jcr.Node postNode)
throws Exception
Exceptionpublic static List<org.exoplatform.forum.service.ForumAttachment> getAttachmentsByNode(javax.jcr.Node node) throws Exception
Exceptionpublic void updateProfileAddPost(String owner, String postPath)
owner - user's name of an user that create the postpostPath - node's path of the last postpublic void savePost(String categoryId, String forumId, String topicId, org.exoplatform.forum.service.Post post, boolean isNew, org.exoplatform.forum.service.MessageBuilder messageBuilder) throws Exception
savePost in interface org.exoplatform.forum.service.DataStoragecategoryId - forumId - topicId - post - isNew - messageBuilder - Exceptionpublic void updatePostCount(String postPath, String owner) throws Exception
postPath - the jcr's path of the new postowner - the owner of the new postExceptionpublic void sendNotification(String nodePath, org.exoplatform.forum.service.Topic topic, org.exoplatform.forum.service.Post post, org.exoplatform.forum.service.MessageBuilder messageBuilder, boolean isApprovePost) throws Exception
Exceptionpublic void modifyPost(List<org.exoplatform.forum.service.Post> posts, int type)
modifyPost in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.Post removePost(String categoryId, String forumId, String topicId, String postId)
removePost in interface org.exoplatform.forum.service.DataStoragepublic void movePost(String[] postPaths, String destTopicPath, boolean isCreatNewTopic, String mailContent, String link) throws Exception
movePost in interface org.exoplatform.forum.service.DataStorageExceptionpublic void mergeTopic(String srcTopicPath, String destTopicPath, String mailContent, String link) throws Exception
mergeTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic void splitTopic(org.exoplatform.forum.service.Topic newTopic,
org.exoplatform.forum.service.Post fistPost,
List<String> postPathMove,
String mailContent,
String link)
throws Exception
splitTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic void addTag(List<org.exoplatform.forum.service.Tag> tags, String userName, String topicPath) throws Exception
addTag in interface org.exoplatform.forum.service.DataStorageExceptionpublic void unTag(String tagId, String userName, String topicPath)
unTag in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.Tag getTag(String tagId) throws Exception
getTag in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<String> getTagNameInTopic(String userAndTopicId) throws Exception
getTagNameInTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<String> getAllTagName(String keyValue, String userAndTopicId) throws Exception
getAllTagName in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Tag> getAllTags() throws Exception
getAllTags in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Tag> getMyTagInTopic(String[] tagIds) throws Exception
getMyTagInTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getTopicByMyTag(String userIdAndtagId, String strOrderBy) throws Exception
getTopicByMyTag in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveTag(org.exoplatform.forum.service.Tag newTag)
throws Exception
saveTag in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getPageListUserProfile()
throws Exception
getPageListUserProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList searchUserProfile(String userSearch) throws Exception
searchUserProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getDefaultUserProfile(String userName, String ip) throws Exception
getDefaultUserProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile updateUserProfileSetting(org.exoplatform.forum.service.UserProfile userProfile)
throws Exception
updateUserProfileSetting in interface org.exoplatform.forum.service.DataStorageExceptionpublic String getScreenName(String userName) throws Exception
getScreenName in interface org.exoplatform.forum.service.DataStorageExceptionpublic boolean isBanIp(String ip) throws Exception
isBanIp in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getUserSettingProfile(String userName) throws Exception
getUserSettingProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveUserSettingProfile(org.exoplatform.forum.service.UserProfile userProfile)
throws Exception
saveUserSettingProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getLastPostIdRead(org.exoplatform.forum.service.UserProfile userProfile,
String isOfForum)
throws Exception
getLastPostIdRead in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveLastPostIdRead(String userId, String[] lastReadPostOfForum, String[] lastReadPostOfTopic) throws Exception
saveLastPostIdRead in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<String> getUserModerator(String userName, boolean isModeCate) throws Exception
getUserModerator in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveUserModerator(String userName, List<String> ids, boolean isModeCate) throws Exception
saveUserModerator in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getUserInfo(String userName) throws Exception
getUserInfo in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.UserProfile> getQuickProfiles(List<String> userList) throws Exception
getQuickProfiles in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getQuickProfile(String userName) throws Exception
getQuickProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getUserInformations(org.exoplatform.forum.service.UserProfile userProfile)
throws Exception
getUserInformations in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveUserProfile(org.exoplatform.forum.service.UserProfile newUserProfile,
boolean isOption,
boolean isBan)
throws Exception
saveUserProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.UserProfile getUserProfileManagement(String userName) throws Exception
getUserProfileManagement in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveUserBookmark(String userName, String bookMark, boolean isNew) throws Exception
saveUserBookmark in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveCollapsedCategories(String userName, String categoryId, boolean isAdd) throws Exception
saveCollapsedCategories in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveReadMessage(String messageId, String userName, String type) throws Exception
saveReadMessage in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getPrivateMessage(String userName, String type) throws Exception
getPrivateMessage in interface org.exoplatform.forum.service.DataStorageExceptionpublic long getNewPrivateMessage(String userName) throws Exception
getNewPrivateMessage in interface org.exoplatform.forum.service.DataStorageExceptionpublic void savePrivateMessage(org.exoplatform.forum.service.ForumPrivateMessage privateMessage)
throws Exception
savePrivateMessage in interface org.exoplatform.forum.service.DataStorageExceptionpublic void removePrivateMessage(String messageId, String userName, String type) throws Exception
removePrivateMessage in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.ForumSubscription getForumSubscription(String userId)
getForumSubscription in interface org.exoplatform.forum.service.DataStoragepublic void saveForumSubscription(org.exoplatform.forum.service.ForumSubscription forumSubscription,
String userId)
throws Exception
saveForumSubscription in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.ForumStatistic getForumStatistic()
throws Exception
getForumStatistic in interface org.exoplatform.forum.service.DataStorageExceptionpublic void saveForumStatistic(org.exoplatform.forum.service.ForumStatistic forumStatistic)
throws Exception
saveForumStatistic in interface org.exoplatform.forum.service.DataStorageExceptionpublic Object getObjectNameByPath(String path) throws Exception
getObjectNameByPath in interface org.exoplatform.forum.service.DataStorageExceptionpublic Object getObjectNameById(String id, String type) throws Exception
getObjectNameById in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.ForumLinkData> getAllLink(String strQueryCate, String strQueryForum) throws Exception
getAllLink in interface org.exoplatform.forum.service.DataStorageExceptionpublic 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
getQuickSearch in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.ForumSearchResult> getUnifiedSearch(String textQuery, String userId, Integer offset, Integer limit, String sort, String order) throws Exception
getUnifiedSearch in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<String> getForumUserCanView(List<String> listOfUser, List<String> listForumIds) throws Exception
getForumUserCanView in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.ForumSearchResult> getAdvancedSearch(org.exoplatform.forum.service.ForumEventQuery eventQuery, List<String> listCateIds, List<String> listForumIds)
getAdvancedSearch in interface org.exoplatform.forum.service.DataStoragepublic void addWatch(int watchType,
String path,
List<String> values,
String currentUser)
throws Exception
addWatch in interface org.exoplatform.forum.service.DataStorageExceptionpublic void removeWatch(int watchType,
String path,
String values)
throws Exception
removeWatch in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateEmailWatch(List<String> listNodeId, String newEmailAdd, String userId) throws Exception
updateEmailWatch in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Watch> getWatchByUser(String userId) throws Exception
getWatchByUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic Iterator<org.exoplatform.forum.service.SendMessageInfo> getPendingMessages() throws Exception
getPendingMessages in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateForum(String path) throws Exception
updateForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.SendMessageInfo getMessageInfo(String name) throws Exception
getMessageInfo in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.ForumSearchResult> getJobWattingForModerator(String[] paths)
getJobWattingForModerator in interface org.exoplatform.forum.service.DataStoragepublic int getJobWattingForModeratorByUser(String userId) throws Exception
getJobWattingForModeratorByUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic void sendNotificationMessage(org.exoplatform.forum.service.ForumPrivateMessage message)
public javax.jcr.NodeIterator search(String queryString) throws Exception
search in interface org.exoplatform.forum.service.DataStorageExceptionpublic void evaluateActiveUsers(String strQuery)
evaluateActiveUsers in interface org.exoplatform.forum.service.DataStorageprotected List<File> createCategoryFiles(List<String> objectIds, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
Exceptionprotected List<File> createForumFiles(String categoryId, List<String> objectIds, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
Exceptionprotected List<File> createFilesFromNode(javax.jcr.Node node, String type) throws Exception
Exceptionprotected List<File> createAllForumFiles(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider) throws Exception
Exceptionpublic Object exportXML(String categoryId, String forumId, List<String> objectIds, String nodePath, ByteArrayOutputStream bos, boolean isExportAll) throws Exception
exportXML in interface org.exoplatform.forum.service.DataStorageExceptionpublic void importXML(String nodePath, ByteArrayInputStream bis, int typeImport) throws Exception
importXML in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateTopicAccess(String userId, String topicId)
updateTopicAccess in interface org.exoplatform.forum.service.DataStoragepublic void writeReads()
writeReads in interface org.exoplatform.forum.service.DataStoragepublic void updateForumAccess(String userId, String forumId)
updateForumAccess in interface org.exoplatform.forum.service.DataStoragepublic List<String> getBookmarks(String userName) throws Exception
getBookmarks in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<String> getBanList() throws Exception
getBanList in interface org.exoplatform.forum.service.DataStorageExceptionpublic boolean addBanIP(String ip) throws Exception
addBanIP in interface org.exoplatform.forum.service.DataStorageExceptionpublic void removeBan(String ip) throws Exception
removeBan in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<String> getForumBanList(String forumId) throws Exception
getForumBanList in interface org.exoplatform.forum.service.DataStorageExceptionpublic boolean addBanIPForum(String ip, String forumId) throws Exception
addBanIPForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic void removeBanIPForum(String ip, String forumId) throws Exception
removeBanIPForum in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateStatisticCounts(long topicCount,
long postCount)
throws Exception
updateStatisticCounts in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.PruneSetting getPruneSetting(String forumPath) throws Exception
getPruneSetting in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.PruneSetting> getAllPruneSetting() throws Exception
getAllPruneSetting in interface org.exoplatform.forum.service.DataStorageExceptionpublic void savePruneSetting(org.exoplatform.forum.service.PruneSetting pruneSetting)
throws Exception
savePruneSetting in interface org.exoplatform.forum.service.DataStorageExceptionpublic void runPrune(String forumPath) throws Exception
runPrune in interface org.exoplatform.forum.service.DataStorageExceptionpublic void runPrune(org.exoplatform.forum.service.PruneSetting pSetting)
throws Exception
runPrune in interface org.exoplatform.forum.service.DataStorageExceptionpublic long checkPrune(org.exoplatform.forum.service.PruneSetting pSetting)
throws Exception
checkPrune in interface org.exoplatform.forum.service.DataStorageExceptionpublic InputStream createForumRss(String objectId, String link) throws Exception
createForumRss in interface org.exoplatform.forum.service.DataStorageExceptionpublic InputStream createUserRss(String userId, String link) throws Exception
createUserRss in interface org.exoplatform.forum.service.DataStorageExceptionpublic boolean populateUserProfile(org.exoplatform.services.organization.User user,
org.exoplatform.forum.service.UserProfile profileTemplate,
boolean isNew)
throws Exception
populateUserProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic String getLatestUser() throws Exception
getLatestUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateLastLoginDate(String userId) throws Exception
updateLastLoginDate in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Post> getRecentPostsForUser(String userName, int number) throws Exception
getRecentPostsForUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Post> getNewPosts(int number) throws Exception
getNewPosts in interface org.exoplatform.forum.service.DataStorageExceptionpublic boolean deleteUserProfile(String userId) throws Exception
deleteUserProfile in interface org.exoplatform.forum.service.DataStorageExceptionpublic void processEnabledUser(String userName, String email, boolean isEnabled)
processEnabledUser in interface org.exoplatform.forum.service.DataStoragepublic void calculateDeletedUser(String userName) throws Exception
calculateDeletedUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic void calculateDeletedGroup(String groupId, String groupName) throws Exception
calculateDeletedGroup in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.InitializeForumPlugin> getDefaultPlugins()
getDefaultPlugins in interface org.exoplatform.forum.service.DataStoragepublic List<org.exoplatform.forum.common.conf.RoleRulesPlugin> getRulesPlugins()
getRulesPlugins in interface org.exoplatform.forum.service.DataStoragepublic Map<String,String> getServerConfig()
getServerConfig in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.common.jcr.KSDataLocation getDataLocation()
getDataLocation in interface org.exoplatform.forum.service.DataStoragepublic void setDataLocator(org.exoplatform.forum.common.jcr.KSDataLocation dataLocator)
public void saveActivityIdForOwner(String ownerId, String type, String activityId)
saveActivityIdForOwner in interface org.exoplatform.forum.service.DataStoragepublic void saveActivityIdForOwner(String ownerPath, String activityId)
saveActivityIdForOwner in interface org.exoplatform.forum.service.DataStoragepublic String getActivityIdForOwner(String ownerId, String type)
getActivityIdForOwner in interface org.exoplatform.forum.service.DataStoragepublic String getActivityIdForOwner(String ownerPath)
getActivityIdForOwner in interface org.exoplatform.forum.service.DataStoragepublic List<org.exoplatform.forum.service.UserProfile> searchUserProfileByFilter(org.exoplatform.forum.service.impl.model.UserProfileFilter userProfileFilter, int offset, int limit) throws Exception
searchUserProfileByFilter in interface org.exoplatform.forum.service.DataStorageExceptionpublic int getUserProfileByFilterCount(org.exoplatform.forum.service.impl.model.UserProfileFilter userProfileFilter)
throws Exception
getUserProfileByFilterCount in interface org.exoplatform.forum.service.DataStorageExceptionpublic void removeCacheUserProfile(String userName)
removeCacheUserProfile in interface org.exoplatform.forum.service.DataStorageCopyright © 2003–2017 eXo Platform SAS. All rights reserved.