public class CachedDataStorage extends Object implements org.exoplatform.forum.service.DataStorage, org.picocontainer.Startable
| Constructor and Description |
|---|
CachedDataStorage(org.exoplatform.services.cache.CacheService service,
org.exoplatform.forum.service.impl.JCRDataStorage storage) |
| 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) |
void |
clearTopicCache(org.exoplatform.forum.service.Topic topic) |
InputStream |
createForumRss(String objectId,
String link) |
InputStream |
createUserRss(String userId,
String link) |
boolean |
deleteUserProfile(String userId) |
void |
evaluateActiveUsers(String query) |
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 filterKey,
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 forumPatch) |
long |
getAvailablePost(String categoryId,
String forumId,
String topicId,
String isApproved,
String isHidden,
String userLogin) |
List<String> |
getBanList() |
List<String> |
getBookmarks(String userName) |
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) |
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) |
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) |
org.exoplatform.forum.service.JCRPageList |
getPageTopicByUser(String userName,
boolean isMod,
String strOrderBy) |
org.exoplatform.forum.service.JCRPageList |
getPageTopicOld(long date,
String forumPatch) |
String |
getPath() |
Iterator<org.exoplatform.forum.service.SendMessageInfo> |
getPendingMessages() |
String[] |
getPermissionTopicByCategory(String categoryId,
String type) |
org.exoplatform.forum.service.Post |
getPost(String categoryId,
String forumId,
String topicId,
String postId) |
org.exoplatform.forum.service.JCRPageList |
getPostForSplitTopic(String topicPath) |
org.exoplatform.forum.service.Post |
getPostFromCache(String categoryId,
String forumId,
String topicId,
String postId) |
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) |
int |
getPostsCount(org.exoplatform.forum.service.impl.model.PostFilter filter) |
org.exoplatform.forum.service.JCRPageList |
getPrivateMessage(String userName,
String type) |
org.exoplatform.forum.service.PruneSetting |
getPruneSetting(String forumPath) |
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) |
Map<String,String> |
getServerConfig() |
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) |
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 forumPatch) |
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) |
org.exoplatform.forum.service.UserProfile |
getUserProfileManagement(String userName) |
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 |
putPost(org.exoplatform.forum.service.Post post) |
void |
refreshUserProfile(org.exoplatform.forum.service.UserProfile profile)
Refresh user profile caching
|
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) |
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 |
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) |
void |
start() |
void |
stop() |
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 |
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 CachedDataStorage(org.exoplatform.services.cache.CacheService service,
org.exoplatform.forum.service.impl.JCRDataStorage storage)
public void clearTopicCache(org.exoplatform.forum.service.Topic topic)
throws Exception
Exceptionpublic void refreshUserProfile(org.exoplatform.forum.service.UserProfile profile)
throws Exception
profile - Exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic String getRepository() throws Exception
getRepository in interface org.exoplatform.forum.service.DataStorageExceptionpublic String getWorkspace() throws Exception
getWorkspace in interface org.exoplatform.forum.service.DataStorageExceptionpublic String getPath() throws Exception
getPath in interface org.exoplatform.forum.service.DataStorageExceptionpublic 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 addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
addInitialDataPlugin 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 addDeletedUserCalculateListener()
throws Exception
addDeletedUserCalculateListener in interface org.exoplatform.forum.service.DataStorageExceptionpublic void initCategoryListener()
initCategoryListener 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 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 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 filterKey, 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
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
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 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 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 org.exoplatform.forum.service.Topic getTopicUpdate(org.exoplatform.forum.service.Topic topic,
boolean isSummary)
throws Exception
getTopicUpdate 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 org.exoplatform.forum.service.JCRPageList getPageTopicOld(long date,
String forumPatch)
throws Exception
getPageTopicOld in interface org.exoplatform.forum.service.DataStorageExceptionpublic List<org.exoplatform.forum.service.Topic> getAllTopicsOld(long date, String forumPatch) throws Exception
getAllTopicsOld in interface org.exoplatform.forum.service.DataStorageExceptionpublic long getTotalTopicOld(long date,
String forumPatch)
getTotalTopicOld in interface org.exoplatform.forum.service.DataStoragepublic org.exoplatform.forum.service.JCRPageList getPageTopicByUser(String userName, boolean isMod, String strOrderBy) throws Exception
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 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 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) throws Exception
getLastReadIndex in interface org.exoplatform.forum.service.DataStorageExceptionpublic org.exoplatform.forum.service.JCRPageList getPosts(String categoryId, String forumId, String topicId, String isApproved, String isHidden, String strQuery, String userLogin) throws Exception
getPosts 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 org.exoplatform.forum.service.Post getPost(String categoryId, String forumId, String topicId, String postId) throws Exception
getPost in interface org.exoplatform.forum.service.DataStorageExceptionpublic void putPost(org.exoplatform.forum.service.Post post)
public org.exoplatform.forum.service.Post getPostFromCache(String categoryId, String forumId, String topicId, String postId)
public org.exoplatform.forum.service.JCRPageList getListPostsByIP(String ip, String strOrderBy) throws Exception
getListPostsByIP in interface org.exoplatform.forum.service.DataStorageExceptionpublic 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.DataStorageExceptionpublic 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 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 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> 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 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 Iterator<org.exoplatform.forum.service.SendMessageInfo> getPendingMessages() throws Exception
getPendingMessages 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 javax.jcr.NodeIterator search(String queryString) throws Exception
search in interface org.exoplatform.forum.service.DataStorageExceptionpublic void evaluateActiveUsers(String query)
evaluateActiveUsers in interface org.exoplatform.forum.service.DataStoragepublic 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 updateForumAccess(String userId, String forumId)
updateForumAccess in interface org.exoplatform.forum.service.DataStoragepublic void writeReads()
writeReads 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 isBanIp(String ip) throws Exception
isBanIp 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 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 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 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.common.conf.RoleRulesPlugin> getRulesPlugins()
getRulesPlugins in interface org.exoplatform.forum.service.DataStoragepublic List<org.exoplatform.forum.service.InitializeForumPlugin> getDefaultPlugins()
getDefaultPlugins in interface org.exoplatform.forum.service.DataStoragepublic void initAutoPruneSchedules()
throws Exception
initAutoPruneSchedules in interface org.exoplatform.forum.service.DataStorageExceptionpublic void updateLastLoginDate(String userId) throws Exception
updateLastLoginDate in interface org.exoplatform.forum.service.DataStorageExceptionpublic String getLatestUser() throws Exception
getLatestUser 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 List<org.exoplatform.forum.service.Post> getRecentPostsForUser(String userName, int number) throws Exception
getRecentPostsForUser in interface org.exoplatform.forum.service.DataStorageExceptionpublic 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 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.JCRPageList getPostForSplitTopic(String topicPath) throws Exception
getPostForSplitTopic in interface org.exoplatform.forum.service.DataStorageExceptionpublic 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 updateUserProfileInfo(String name) throws Exception
updateUserProfileInfo 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 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 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 boolean topicHasPoll(String topicPath)
topicHasPoll in interface org.exoplatform.forum.service.DataStoragepublic 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.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.