org.exoplatform.forum.service.impl
Class JCRDataStorage

java.lang.Object
  extended by org.exoplatform.forum.service.impl.JCRDataStorage

public class JCRDataStorage
extends java.lang.Object

Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 10, 2007 Edited by Vu Duy Tu tu.duy@exoplatform.com July 16, 2007


Constructor Summary
JCRDataStorage()
           
JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator, org.exoplatform.services.jcr.RepositoryService rService)
           
 
Method Summary
 boolean addBanIP(java.lang.String ip)
           
 boolean addBanIPForum(java.lang.String ip, java.lang.String forumId)
           
 void addCalculateModeratorEventListenner()
           
 void addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
           
 void addInitRssPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
           
protected  void addModeratorCalculateListener(javax.jcr.Node node)
           
 void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
           
 void addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
           
 void addRSSEventListenner()
           
 void addTag(java.util.List<Tag> tags, java.lang.String userName, java.lang.String topicPath)
           
 void addWatch(int watchType, java.lang.String path, java.util.List<java.lang.String> values, java.lang.String currentUser)
           
 void calculateModerator(java.lang.String nodePath, boolean isNew)
           
 long checkPrune(PruneSetting pSetting)
           
protected  java.util.List<java.io.File> createAllForumFiles(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
           
protected  java.util.List<java.io.File> createCategoryFiles(java.util.List<java.lang.String> objectIds, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
           
protected  java.util.List<java.io.File> createFilesFromNode(javax.jcr.Node node)
           
protected  java.util.List<java.io.File> createForumFiles(java.lang.String categoryId, java.util.List<java.lang.String> objectIds, org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
           
 void evaluateActiveUsers(java.lang.String query)
           
 java.lang.Object exportXML(java.lang.String categoryId, java.lang.String forumId, java.util.List<java.lang.String> objectIds, java.lang.String nodePath, java.io.ByteArrayOutputStream bos, boolean isExportAll)
           
 java.util.List<ForumSearch> getAdvancedSearch(ForumEventQuery eventQuery, java.util.List<java.lang.String> listCateIds, java.util.List<java.lang.String> listForumIds)
           
 java.util.List<ForumLinkData> getAllLink(java.lang.String strQueryCate, java.lang.String strQueryForum)
           
 java.util.List<PruneSetting> getAllPruneSetting()
           
 java.util.List<java.lang.String> getAllTagName(java.lang.String keyValue, java.lang.String userAndTopicId)
           
 java.util.List<Tag> getAllTags()
           
 java.util.List<Topic> getAllTopicsOld(long date, java.lang.String forumPatch)
           
 long getAvailablePost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String isApproved, java.lang.String isHidden, java.lang.String userLogin)
           
 java.util.List<java.lang.String> getBanList()
           
 java.util.List<java.lang.String> getBookmarks(java.lang.String userName)
           
 java.util.List<Category> getCategories()
           
 Category getCategory(java.lang.String categoryId)
           
protected  org.exoplatform.ws.frameworks.cometd.ContinuationService getContinuationService()
           
 UserProfile getDefaultUserProfile(java.lang.String userName, java.lang.String ip)
           
 Forum getForum(java.lang.String categoryId, java.lang.String forumId)
           
 ForumAdministration getForumAdministration()
           
 java.util.List<java.lang.String> getForumBanList(java.lang.String forumId)
           
protected  javax.jcr.Node getForumHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
           
 java.util.List<Forum> getForums(java.lang.String categoryId, java.lang.String strQuery)
           
 SortSettings getForumSortSettings()
           
 ForumStatistic getForumStatistic()
           
 ForumSubscription getForumSubscription(java.lang.String userId)
           
 java.util.List<Forum> getForumSummaries(java.lang.String categoryId, java.lang.String strQuery)
           
 java.util.Calendar getGreenwichMeanTime()
           
 java.util.List<ForumSearch> getJobWattingForModerator(java.lang.String[] paths)
           
 int getJobWattingForModeratorByUser(java.lang.String userId)
           
 UserProfile getLastPostIdRead(UserProfile userProfile, java.lang.String isOfForum)
           
 long getLastReadIndex(java.lang.String path, java.lang.String isApproved, java.lang.String isHidden, java.lang.String userLogin)
           
 JCRPageList getListPostsByIP(java.lang.String ip, java.lang.String strOrderBy)
           
 SendMessageInfo getMessageInfo(java.lang.String name)
           
 java.util.List<Tag> getMyTagInTopic(java.lang.String[] tagIds)
           
 long getNewPrivateMessage(java.lang.String userName)
           
 java.lang.Object getObjectNameById(java.lang.String id, java.lang.String type)
           
 java.lang.Object getObjectNameByPath(java.lang.String path)
           
 JCRPageList getPageListUserProfile()
           
 JCRPageList getPagePostByUser(java.lang.String userName, java.lang.String userId, boolean isMod, java.lang.String strOrderBy)
           
 JCRPageList getPageTopic(java.lang.String categoryId, java.lang.String forumId, java.lang.String strQuery, java.lang.String strOrderBy)
           
 JCRPageList getPageTopicByType(java.lang.String type)
           
 JCRPageList getPageTopicByUser(java.lang.String userName, boolean isMod, java.lang.String strOrderBy)
           
 JCRPageList getPageTopicOld(long date, java.lang.String forumPatch)
           
 java.lang.String getPath()
           
 java.lang.String[] getPermissionTopicByCategory(java.lang.String categoryId, java.lang.String type)
           
 Poll getPoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
           
protected  Post getPost(javax.jcr.Node postNode)
           
 Post getPost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String postId)
           
 JCRPageList getPostForSplitTopic(java.lang.String topicPath)
           
 JCRPageList getPosts(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String isApproved, java.lang.String isHidden, java.lang.String strQuery, java.lang.String userLogin)
           
 JCRPageList getPrivateMessage(java.lang.String userName, java.lang.String type)
           
 PruneSetting getPruneSetting(java.lang.String forumPath)
           
 UserProfile getQuickProfile(java.lang.String userName)
           
 java.util.List<UserProfile> getQuickProfiles(java.util.List<java.lang.String> userList)
           
 java.util.List<ForumSearch> getQuickSearch(java.lang.String textQuery, java.lang.String type_, java.lang.String pathQuery, java.lang.String userId, java.util.List<java.lang.String> listCateIds, java.util.List<java.lang.String> listForumIds, java.util.List<java.lang.String> forumIdsOfModerator)
           
 java.lang.String getRepository()
           
 java.lang.String getScreenName(java.lang.String userName)
           
protected  javax.jcr.Node getStatisticHome(org.exoplatform.services.jcr.ext.common.SessionProvider sysProvider)
           
 Tag getTag(java.lang.String tagId)
           
 java.util.List<java.lang.String> getTagNameInTopic(java.lang.String userAndTopicId)
           
 Topic getTopic(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String userRead)
           
 JCRPageList getTopicByMyTag(java.lang.String userIdAndtagId, java.lang.String strOrderBy)
           
 Topic getTopicByPath(java.lang.String topicPath, boolean isLastPost)
           
 LazyPageList<Topic> getTopicList(java.lang.String categoryId, java.lang.String forumId, java.lang.String xpathConditions, java.lang.String strOrderBy, int pageSize)
           
 java.util.List<Topic> getTopics(java.lang.String categoryId, java.lang.String forumId)
           
 SortSettings getTopicSortSettings()
           
 Topic getTopicSummary(java.lang.String topicPath, boolean isLastPost)
           
 TopicType getTopicType(java.lang.String Id)
           
 java.util.List<TopicType> getTopicTypes()
           
 void getTotalJobWatting(java.util.List<java.lang.String> userIds)
           
 long getTotalTopicOld(long date, java.lang.String forumPatch)
           
 ForumAttachment getUserAvatar(java.lang.String userName)
           
 UserProfile getUserInfo(java.lang.String userName)
           
 UserProfile getUserInformations(UserProfile userProfile)
           
 java.util.List<java.lang.String> getUserModerator(java.lang.String userName, boolean isModeCate)
           
protected  javax.jcr.Node getUserProfileHome(org.exoplatform.services.jcr.ext.common.SessionProvider sysProvider)
           
 UserProfile getUserProfileManagement(java.lang.String userName)
           
 UserProfile getUserSettingProfile(java.lang.String userName)
           
 java.util.List<Watch> getWatchByUser(java.lang.String userId)
           
 java.lang.String getWorkspace()
           
 void importXML(java.lang.String nodePath, java.io.InputStream is, java.lang.String mimeType)
           
protected  void initAutoPruneSchedules()
           
 void initCategoryListener()
           
protected  void initDefaultData()
           
 boolean isAdminRole(java.lang.String userName)
           
 void mergeTopic(java.lang.String srcTopicPath, java.lang.String destTopicPath, java.lang.String mailContent, java.lang.String link)
           
 void modifyForum(Forum forum, int type)
           
 void modifyPost(java.util.List<Post> posts, int type)
           
 void modifyTopic(java.util.List<Topic> topics, int type)
           
 void moveForum(java.util.List<Forum> forums, java.lang.String destCategoryPath)
           
 void movePost(java.lang.String[] postPaths, java.lang.String destTopicPath, boolean isCreatNewTopic, java.lang.String mailContent, java.lang.String link)
           
 void moveTopic(java.util.List<Topic> topics, java.lang.String destForumPath, java.lang.String mailContent, java.lang.String link)
           
 void registerListenerForCategory(java.lang.String path)
           
 void removeBan(java.lang.String ip)
           
 void removeBanIPForum(java.lang.String ip, java.lang.String forumId)
           
 Category removeCategory(java.lang.String categoryId)
           
 Forum removeForum(java.lang.String categoryId, java.lang.String forumId)
           
 Poll removePoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
           
 Post removePost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, java.lang.String postId)
           
 void removePrivateMessage(java.lang.String messageId, java.lang.String userName, java.lang.String type)
           
 Topic removeTopic(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId)
           
 void removeTopicType(java.lang.String topicTypeId)
           
 void removeWatch(int watchType, java.lang.String path, java.lang.String values)
           
 void runPrune(PruneSetting pSetting)
           
 void runPrune(java.lang.String forumPath)
           
 void saveCategory(Category category, boolean isNew)
           
 void saveCollapsedCategories(java.lang.String userName, java.lang.String categoryId, boolean isAdd)
           
 void saveForum(java.lang.String categoryId, Forum forum, boolean isNew)
           
 void saveForumAdministration(ForumAdministration forumAdministration)
           
 void saveForumStatistic(ForumStatistic forumStatistic)
           
 void saveForumSubscription(ForumSubscription forumSubscription, java.lang.String userId)
           
 void saveLastPostIdRead(java.lang.String userId, java.lang.String[] lastReadPostOfForum, java.lang.String[] lastReadPostOfTopic)
           
 void saveModerateOfForums(java.util.List<java.lang.String> forumPaths, java.lang.String userName, boolean isDelete)
           
 void saveModOfCategory(java.util.List<java.lang.String> moderatorCate, java.lang.String userId, boolean isAdd)
           
 void savePoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Poll poll, boolean isNew, boolean isVote)
           
 void savePost(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Post post, boolean isNew, java.lang.String defaultEmailContent)
           
 void savePrivateMessage(ForumPrivateMessage privateMessage)
           
 void savePruneSetting(PruneSetting pruneSetting)
           
 void saveReadMessage(java.lang.String messageId, java.lang.String userName, java.lang.String type)
           
 void saveTag(Tag newTag)
           
 void saveTopic(java.lang.String categoryId, java.lang.String forumId, Topic topic, boolean isNew, boolean isMove, java.lang.String defaultEmailContent)
           
 void saveTopicType(TopicType topicType)
           
 void saveUserAvatar(java.lang.String userId, ForumAttachment fileAttachment)
           
 void saveUserBookmark(java.lang.String userName, java.lang.String bookMark, boolean isNew)
           
 void saveUserModerator(java.lang.String userName, java.util.List<java.lang.String> ids, boolean isModeCate)
           
 void saveUserProfile(UserProfile newUserProfile, boolean isOption, boolean isBan)
           
 void saveUserSettingProfile(UserProfile userProfile)
           
 javax.jcr.NodeIterator search(java.lang.String queryString)
           
 JCRPageList searchUserProfile(java.lang.String userSearch)
           
 void setClosedPoll(java.lang.String categoryId, java.lang.String forumId, java.lang.String topicId, Poll poll)
           
 void setDefaultAvatar(java.lang.String userName)
           
 void setViewCountTopic(java.lang.String path, java.lang.String userRead)
           
 void unRegisterListenerForCategory(java.lang.String path)
           
 void unTag(java.lang.String tagId, java.lang.String userName, java.lang.String topicPath)
           
 void updateEmailWatch(java.util.List<java.lang.String> listNodeId, java.lang.String newEmailAdd, java.lang.String userId)
           
 void updateForum(java.lang.String path)
           
 void updateForumAccess(java.lang.String userId, java.lang.String forumId)
           
 void updateStatisticCounts(long topicCount, long postCount)
           
 void updateTopicAccess(java.lang.String userId, java.lang.String topicId)
           
 void updateUserProfileInfo(java.lang.String name)
           
 UserProfile updateUserProfileSetting(UserProfile userProfile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCRDataStorage

public JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                      org.exoplatform.services.jcr.RepositoryService rService)
               throws java.lang.Exception
Throws:
java.lang.Exception

JCRDataStorage

public JCRDataStorage()
Method Detail

getRepository

public java.lang.String getRepository()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getWorkspace

public java.lang.String getWorkspace()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getPath

public java.lang.String getPath()
                         throws java.lang.Exception
Throws:
java.lang.Exception

addPlugin

public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
               throws java.lang.Exception
Throws:
java.lang.Exception

addRolePlugin

public void addRolePlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                   throws java.lang.Exception
Throws:
java.lang.Exception

addInitialDataPlugin

public void addInitialDataPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                          throws java.lang.Exception
Throws:
java.lang.Exception

addInitRssPlugin

public void addInitRssPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
                      throws java.lang.Exception
Throws:
java.lang.Exception

addRSSEventListenner

public void addRSSEventListenner()
                          throws java.lang.Exception
Throws:
java.lang.Exception

addCalculateModeratorEventListenner

public void addCalculateModeratorEventListenner()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

addModeratorCalculateListener

protected void addModeratorCalculateListener(javax.jcr.Node node)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

initCategoryListener

public void initCategoryListener()

initAutoPruneSchedules

protected void initAutoPruneSchedules()
                               throws java.lang.Exception
Throws:
java.lang.Exception

isAdminRole

public boolean isAdminRole(java.lang.String userName)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getForumHomeNode

protected javax.jcr.Node getForumHomeNode(org.exoplatform.services.jcr.ext.common.SessionProvider sProvider)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getStatisticHome

protected javax.jcr.Node getStatisticHome(org.exoplatform.services.jcr.ext.common.SessionProvider sysProvider)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getUserProfileHome

protected javax.jcr.Node getUserProfileHome(org.exoplatform.services.jcr.ext.common.SessionProvider sysProvider)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

setDefaultAvatar

public void setDefaultAvatar(java.lang.String userName)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getUserAvatar

public ForumAttachment getUserAvatar(java.lang.String userName)
                              throws java.lang.Exception
Throws:
java.lang.Exception

saveUserAvatar

public void saveUserAvatar(java.lang.String userId,
                           ForumAttachment fileAttachment)
                    throws java.lang.Exception
Throws:
java.lang.Exception

saveForumAdministration

public void saveForumAdministration(ForumAdministration forumAdministration)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getForumAdministration

public ForumAdministration getForumAdministration()
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getForumSortSettings

public SortSettings getForumSortSettings()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getTopicSortSettings

public SortSettings getTopicSortSettings()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

initDefaultData

protected void initDefaultData()
                        throws java.lang.Exception
Throws:
java.lang.Exception

getCategories

public java.util.List<Category> getCategories()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getCategory

public Category getCategory(java.lang.String categoryId)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getPermissionTopicByCategory

public java.lang.String[] getPermissionTopicByCategory(java.lang.String categoryId,
                                                       java.lang.String type)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

saveCategory

public void saveCategory(Category category,
                         boolean isNew)
                  throws java.lang.Exception
Throws:
java.lang.Exception

saveModOfCategory

public void saveModOfCategory(java.util.List<java.lang.String> moderatorCate,
                              java.lang.String userId,
                              boolean isAdd)

calculateModerator

public void calculateModerator(java.lang.String nodePath,
                               boolean isNew)
                        throws java.lang.Exception
Throws:
java.lang.Exception

registerListenerForCategory

public void registerListenerForCategory(java.lang.String path)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

unRegisterListenerForCategory

public void unRegisterListenerForCategory(java.lang.String path)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

removeCategory

public Category removeCategory(java.lang.String categoryId)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getForums

public java.util.List<Forum> getForums(java.lang.String categoryId,
                                       java.lang.String strQuery)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getForumSummaries

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

getForum

public Forum getForum(java.lang.String categoryId,
                      java.lang.String forumId)
               throws java.lang.Exception
Throws:
java.lang.Exception

modifyForum

public void modifyForum(Forum forum,
                        int type)
                 throws java.lang.Exception
Throws:
java.lang.Exception

saveForum

public void saveForum(java.lang.String categoryId,
                      Forum forum,
                      boolean isNew)
               throws java.lang.Exception
Throws:
java.lang.Exception

saveModerateOfForums

public void saveModerateOfForums(java.util.List<java.lang.String> forumPaths,
                                 java.lang.String userName,
                                 boolean isDelete)
                          throws java.lang.Exception
Throws:
java.lang.Exception

removeForum

public Forum removeForum(java.lang.String categoryId,
                         java.lang.String forumId)
                  throws java.lang.Exception
Throws:
java.lang.Exception

moveForum

public void moveForum(java.util.List<Forum> forums,
                      java.lang.String destCategoryPath)
               throws java.lang.Exception
Throws:
java.lang.Exception

getPageTopic

public JCRPageList getPageTopic(java.lang.String categoryId,
                                java.lang.String forumId,
                                java.lang.String strQuery,
                                java.lang.String strOrderBy)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getTopicList

public LazyPageList<Topic> getTopicList(java.lang.String categoryId,
                                        java.lang.String forumId,
                                        java.lang.String xpathConditions,
                                        java.lang.String strOrderBy,
                                        int pageSize)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getTopics

public java.util.List<Topic> getTopics(java.lang.String categoryId,
                                       java.lang.String forumId)
                                throws java.lang.Exception
Throws:
java.lang.Exception

setViewCountTopic

public void setViewCountTopic(java.lang.String path,
                              java.lang.String userRead)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getTopic

public Topic getTopic(java.lang.String categoryId,
                      java.lang.String forumId,
                      java.lang.String topicId,
                      java.lang.String userRead)
               throws java.lang.Exception
Throws:
java.lang.Exception

getTopicSummary

public Topic getTopicSummary(java.lang.String topicPath,
                             boolean isLastPost)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getTopicByPath

public Topic getTopicByPath(java.lang.String topicPath,
                            boolean isLastPost)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getPageTopicOld

public JCRPageList getPageTopicOld(long date,
                                   java.lang.String forumPatch)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getAllTopicsOld

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

getTotalTopicOld

public long getTotalTopicOld(long date,
                             java.lang.String forumPatch)

getPageTopicByUser

public JCRPageList getPageTopicByUser(java.lang.String userName,
                                      boolean isMod,
                                      java.lang.String strOrderBy)
                               throws java.lang.Exception
Throws:
java.lang.Exception

modifyTopic

public void modifyTopic(java.util.List<Topic> topics,
                        int type)
                 throws java.lang.Exception
Throws:
java.lang.Exception

saveTopic

public void saveTopic(java.lang.String categoryId,
                      java.lang.String forumId,
                      Topic topic,
                      boolean isNew,
                      boolean isMove,
                      java.lang.String defaultEmailContent)
               throws java.lang.Exception
Throws:
java.lang.Exception

updateUserProfileInfo

public void updateUserProfileInfo(java.lang.String name)
                           throws java.lang.Exception
Throws:
java.lang.Exception

removeTopic

public Topic removeTopic(java.lang.String categoryId,
                         java.lang.String forumId,
                         java.lang.String topicId)
                  throws java.lang.Exception
Throws:
java.lang.Exception

moveTopic

public void moveTopic(java.util.List<Topic> topics,
                      java.lang.String destForumPath,
                      java.lang.String mailContent,
                      java.lang.String link)
               throws java.lang.Exception
Throws:
java.lang.Exception

getLastReadIndex

public long getLastReadIndex(java.lang.String path,
                             java.lang.String isApproved,
                             java.lang.String isHidden,
                             java.lang.String userLogin)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getPostForSplitTopic

public JCRPageList getPostForSplitTopic(java.lang.String topicPath)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getPosts

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

getAvailablePost

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

getPagePostByUser

public JCRPageList getPagePostByUser(java.lang.String userName,
                                     java.lang.String userId,
                                     boolean isMod,
                                     java.lang.String strOrderBy)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getPost

public Post getPost(java.lang.String categoryId,
                    java.lang.String forumId,
                    java.lang.String topicId,
                    java.lang.String postId)
             throws java.lang.Exception
Throws:
java.lang.Exception

getListPostsByIP

public JCRPageList getListPostsByIP(java.lang.String ip,
                                    java.lang.String strOrderBy)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getPost

protected Post getPost(javax.jcr.Node postNode)
                throws java.lang.Exception
Throws:
java.lang.Exception

savePost

public void savePost(java.lang.String categoryId,
                     java.lang.String forumId,
                     java.lang.String topicId,
                     Post post,
                     boolean isNew,
                     java.lang.String defaultEmailContent)
              throws java.lang.Exception
Throws:
java.lang.Exception

modifyPost

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

removePost

public Post removePost(java.lang.String categoryId,
                       java.lang.String forumId,
                       java.lang.String topicId,
                       java.lang.String postId)
                throws java.lang.Exception
Throws:
java.lang.Exception

movePost

public void movePost(java.lang.String[] postPaths,
                     java.lang.String destTopicPath,
                     boolean isCreatNewTopic,
                     java.lang.String mailContent,
                     java.lang.String link)
              throws java.lang.Exception
Throws:
java.lang.Exception

mergeTopic

public void mergeTopic(java.lang.String srcTopicPath,
                       java.lang.String destTopicPath,
                       java.lang.String mailContent,
                       java.lang.String link)
                throws java.lang.Exception
Throws:
java.lang.Exception

getPoll

public Poll getPoll(java.lang.String categoryId,
                    java.lang.String forumId,
                    java.lang.String topicId)
             throws java.lang.Exception
Throws:
java.lang.Exception

removePoll

public Poll removePoll(java.lang.String categoryId,
                       java.lang.String forumId,
                       java.lang.String topicId)
                throws java.lang.Exception
Throws:
java.lang.Exception

savePoll

public void savePoll(java.lang.String categoryId,
                     java.lang.String forumId,
                     java.lang.String topicId,
                     Poll poll,
                     boolean isNew,
                     boolean isVote)
              throws java.lang.Exception
Throws:
java.lang.Exception

setClosedPoll

public void setClosedPoll(java.lang.String categoryId,
                          java.lang.String forumId,
                          java.lang.String topicId,
                          Poll poll)
                   throws java.lang.Exception
Throws:
java.lang.Exception

addTag

public void addTag(java.util.List<Tag> tags,
                   java.lang.String userName,
                   java.lang.String topicPath)
            throws java.lang.Exception
Throws:
java.lang.Exception

unTag

public void unTag(java.lang.String tagId,
                  java.lang.String userName,
                  java.lang.String topicPath)
           throws java.lang.Exception
Throws:
java.lang.Exception

getTag

public Tag getTag(java.lang.String tagId)
           throws java.lang.Exception
Throws:
java.lang.Exception

getTagNameInTopic

public java.util.List<java.lang.String> getTagNameInTopic(java.lang.String userAndTopicId)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

getAllTagName

public java.util.List<java.lang.String> getAllTagName(java.lang.String keyValue,
                                                      java.lang.String userAndTopicId)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

getAllTags

public java.util.List<Tag> getAllTags()
                               throws java.lang.Exception
Throws:
java.lang.Exception

getMyTagInTopic

public java.util.List<Tag> getMyTagInTopic(java.lang.String[] tagIds)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getTopicByMyTag

public JCRPageList getTopicByMyTag(java.lang.String userIdAndtagId,
                                   java.lang.String strOrderBy)
                            throws java.lang.Exception
Throws:
java.lang.Exception

saveTag

public void saveTag(Tag newTag)
             throws java.lang.Exception
Throws:
java.lang.Exception

getPageListUserProfile

public JCRPageList getPageListUserProfile()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

searchUserProfile

public JCRPageList searchUserProfile(java.lang.String userSearch)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultUserProfile

public UserProfile getDefaultUserProfile(java.lang.String userName,
                                         java.lang.String ip)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

updateUserProfileSetting

public UserProfile updateUserProfileSetting(UserProfile userProfile)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getScreenName

public java.lang.String getScreenName(java.lang.String userName)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getUserSettingProfile

public UserProfile getUserSettingProfile(java.lang.String userName)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

saveUserSettingProfile

public void saveUserSettingProfile(UserProfile userProfile)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getLastPostIdRead

public UserProfile getLastPostIdRead(UserProfile userProfile,
                                     java.lang.String isOfForum)
                              throws java.lang.Exception
Throws:
java.lang.Exception

saveLastPostIdRead

public void saveLastPostIdRead(java.lang.String userId,
                               java.lang.String[] lastReadPostOfForum,
                               java.lang.String[] lastReadPostOfTopic)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getUserModerator

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

saveUserModerator

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

getUserInfo

public UserProfile getUserInfo(java.lang.String userName)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getQuickProfiles

public java.util.List<UserProfile> getQuickProfiles(java.util.List<java.lang.String> userList)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getQuickProfile

public UserProfile getQuickProfile(java.lang.String userName)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getUserInformations

public UserProfile getUserInformations(UserProfile userProfile)
                                throws java.lang.Exception
Throws:
java.lang.Exception

saveUserProfile

public void saveUserProfile(UserProfile newUserProfile,
                            boolean isOption,
                            boolean isBan)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getUserProfileManagement

public UserProfile getUserProfileManagement(java.lang.String userName)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

saveUserBookmark

public void saveUserBookmark(java.lang.String userName,
                             java.lang.String bookMark,
                             boolean isNew)
                      throws java.lang.Exception
Throws:
java.lang.Exception

saveCollapsedCategories

public void saveCollapsedCategories(java.lang.String userName,
                                    java.lang.String categoryId,
                                    boolean isAdd)
                             throws java.lang.Exception
Throws:
java.lang.Exception

saveReadMessage

public void saveReadMessage(java.lang.String messageId,
                            java.lang.String userName,
                            java.lang.String type)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getPrivateMessage

public JCRPageList getPrivateMessage(java.lang.String userName,
                                     java.lang.String type)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getNewPrivateMessage

public long getNewPrivateMessage(java.lang.String userName)
                          throws java.lang.Exception
Throws:
java.lang.Exception

savePrivateMessage

public void savePrivateMessage(ForumPrivateMessage privateMessage)
                        throws java.lang.Exception
Throws:
java.lang.Exception

removePrivateMessage

public void removePrivateMessage(java.lang.String messageId,
                                 java.lang.String userName,
                                 java.lang.String type)
                          throws java.lang.Exception
Throws:
java.lang.Exception

getForumSubscription

public ForumSubscription getForumSubscription(java.lang.String userId)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

saveForumSubscription

public void saveForumSubscription(ForumSubscription forumSubscription,
                                  java.lang.String userId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getForumStatistic

public ForumStatistic getForumStatistic()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

saveForumStatistic

public void saveForumStatistic(ForumStatistic forumStatistic)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getGreenwichMeanTime

public java.util.Calendar getGreenwichMeanTime()

getObjectNameByPath

public java.lang.Object getObjectNameByPath(java.lang.String path)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getObjectNameById

public java.lang.Object getObjectNameById(java.lang.String id,
                                          java.lang.String type)
                                   throws java.lang.Exception
Throws:
java.lang.Exception

getAllLink

public java.util.List<ForumLinkData> getAllLink(java.lang.String strQueryCate,
                                                java.lang.String strQueryForum)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getQuickSearch

public java.util.List<ForumSearch> getQuickSearch(java.lang.String textQuery,
                                                  java.lang.String type_,
                                                  java.lang.String pathQuery,
                                                  java.lang.String userId,
                                                  java.util.List<java.lang.String> listCateIds,
                                                  java.util.List<java.lang.String> listForumIds,
                                                  java.util.List<java.lang.String> forumIdsOfModerator)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getAdvancedSearch

public java.util.List<ForumSearch> getAdvancedSearch(ForumEventQuery eventQuery,
                                                     java.util.List<java.lang.String> listCateIds,
                                                     java.util.List<java.lang.String> listForumIds)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

addWatch

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

removeWatch

public void removeWatch(int watchType,
                        java.lang.String path,
                        java.lang.String values)
                 throws java.lang.Exception
Throws:
java.lang.Exception

updateEmailWatch

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

getWatchByUser

public java.util.List<Watch> getWatchByUser(java.lang.String userId)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

updateForum

public void updateForum(java.lang.String path)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getMessageInfo

public SendMessageInfo getMessageInfo(java.lang.String name)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getJobWattingForModerator

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

getJobWattingForModeratorByUser

public int getJobWattingForModeratorByUser(java.lang.String userId)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getTotalJobWatting

public void getTotalJobWatting(java.util.List<java.lang.String> userIds)

getContinuationService

protected org.exoplatform.ws.frameworks.cometd.ContinuationService getContinuationService()

search

public javax.jcr.NodeIterator search(java.lang.String queryString)
                              throws java.lang.Exception
Throws:
java.lang.Exception

evaluateActiveUsers

public void evaluateActiveUsers(java.lang.String query)
                         throws java.lang.Exception
Throws:
java.lang.Exception

createCategoryFiles

protected java.util.List<java.io.File> createCategoryFiles(java.util.List<java.lang.String> objectIds,
                                                           org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

createForumFiles

protected java.util.List<java.io.File> createForumFiles(java.lang.String categoryId,
                                                        java.util.List<java.lang.String> objectIds,
                                                        org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

createFilesFromNode

protected java.util.List<java.io.File> createFilesFromNode(javax.jcr.Node node)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

createAllForumFiles

protected java.util.List<java.io.File> createAllForumFiles(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

exportXML

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

importXML

public void importXML(java.lang.String nodePath,
                      java.io.InputStream is,
                      java.lang.String mimeType)
               throws java.lang.Exception
Throws:
java.lang.Exception

updateTopicAccess

public void updateTopicAccess(java.lang.String userId,
                              java.lang.String topicId)
                       throws java.lang.Exception
Throws:
java.lang.Exception

updateForumAccess

public void updateForumAccess(java.lang.String userId,
                              java.lang.String forumId)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getBookmarks

public java.util.List<java.lang.String> getBookmarks(java.lang.String userName)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

getBanList

public java.util.List<java.lang.String> getBanList()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

addBanIP

public boolean addBanIP(java.lang.String ip)
                 throws java.lang.Exception
Throws:
java.lang.Exception

removeBan

public void removeBan(java.lang.String ip)
               throws java.lang.Exception
Throws:
java.lang.Exception

getForumBanList

public java.util.List<java.lang.String> getForumBanList(java.lang.String forumId)
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

addBanIPForum

public boolean addBanIPForum(java.lang.String ip,
                             java.lang.String forumId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

removeBanIPForum

public void removeBanIPForum(java.lang.String ip,
                             java.lang.String forumId)
                      throws java.lang.Exception
Throws:
java.lang.Exception

updateStatisticCounts

public void updateStatisticCounts(long topicCount,
                                  long postCount)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getPruneSetting

public PruneSetting getPruneSetting(java.lang.String forumPath)
                             throws java.lang.Exception
Throws:
java.lang.Exception

getAllPruneSetting

public java.util.List<PruneSetting> getAllPruneSetting()
                                                throws java.lang.Exception
Throws:
java.lang.Exception

savePruneSetting

public void savePruneSetting(PruneSetting pruneSetting)
                      throws java.lang.Exception
Throws:
java.lang.Exception

runPrune

public void runPrune(java.lang.String forumPath)
              throws java.lang.Exception
Throws:
java.lang.Exception

runPrune

public void runPrune(PruneSetting pSetting)
              throws java.lang.Exception
Throws:
java.lang.Exception

checkPrune

public long checkPrune(PruneSetting pSetting)
                throws java.lang.Exception
Throws:
java.lang.Exception

getTopicTypes

public java.util.List<TopicType> getTopicTypes()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getTopicType

public TopicType getTopicType(java.lang.String Id)
                       throws java.lang.Exception
Throws:
java.lang.Exception

saveTopicType

public void saveTopicType(TopicType topicType)
                   throws java.lang.Exception
Throws:
java.lang.Exception

removeTopicType

public void removeTopicType(java.lang.String topicTypeId)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getPageTopicByType

public JCRPageList getPageTopicByType(java.lang.String type)
                               throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.