com.flowring.forum.service
Interface ForumService

All Superinterfaces:
Remote

public interface ForumService
extends Remote

Version:
$Id: ForumService.java,v 1.1.2.33.2.1 2009/10/27 10:11:55 kanghao Exp $
Author:
Docpedia team.

Method Summary
 ForumModifyRecord addForumModifyRecord(String postID, DMSUser user, String action)
           
 DMSTransBlock commitDownloadPostFile(String userID, String postID, String fileID)
           
 boolean commitUploadPostFileBlock(String userID, String postID, String fileName, DMSTransBlock block)
           
 boolean deleteForumCategory(String categoryID)
          delete ForumCategory (this method alse delete all Forum,topic,post in ForumCategory )
 boolean deleteForumFile(String fileID)
           
 boolean deleteForumForum(String forumID)
          delete ForumForum (this method alse delete all topic,post in ForumForum )
 boolean deleteForumPost(String postID)
          delete ForumPost Object
 boolean deleteForumTopic(String topicID)
          delete ForumTopic Object ( this method will delete all post in ForumTopic)
 boolean delThisForumTrack(String topicID)
          since v3.0 delete this forum or this topic track
 boolean delThisTrack(String topicID, String user)
          since v3.0 delete this track
 Vector getAllForumForumList()
          get ALL ForumForum List for Admin use
 HashMap getCategoryAdminMap(String type, String categoryID)
          get category administrator
 Vector getForumAdminList(String forumID)
           
 HashMap getForumAdminMap(String forumID)
           
 ForumCategory getForumCategory(String categoryID)
          get ForumCategory Object from categoryID
 Vector getForumCategoryIDList(DMSUser user)
          get FroumCategoryIDList
 Vector getForumCategoryList()
           
 ForumConfig getForumConfig()
           
 ForumFile getForumFile(String fileID)
           
 ForumForum getForumForum(String forumID)
          get FroumForum Object from forumID
 Vector getForumForumList(String CategoryID)
          get ForumIDList by CategoryID
 Vector getForumMemList(String forumID)
          since v3.0 get forum member list
 HashMap getForumNewTopicReportByUser(String forumID, long starttime, long endtime)
           
 ForumPost getForumPost(String postID, boolean isCountViews)
          get Post Object from postID
 ForumPostContent getForumPostContent(String postID)
          get
 Vector getForumPostContentByUser(String forumID, long starttime, long endtime, Vector userList, String postType)
           
 Vector getForumPostIDList(String topicID)
          getForumPostIDList by topicID (normal Status posts)
 Vector getForumPostIDList(String topicID, String status)
          getForumPostIDList by topicID By Status
 Vector getForumPostList(String topicID)
          get PostList each
 HashMap getForumReplyReportByUser(String forumID, long starttime, long endtime)
           
 HashMap getForumReportByUser(String forumID, long starttime, long endtime, Vector depList, String postType)
           
 Vector getForumSubTopic(String forumID)
          since v3.0 get forum sub topic
 ForumTopic getForumTopic(String topicID, boolean isCountView)
          Object from topicID and count Views
 Vector getForumTopicIDList(String forumID, String topicType)
          get TopicIDList by forumID
 Vector getForumTopicIDList(String forumID, Vector topicType)
           
 Vector getTopHotForumTopicIDList(int num, int hotNum)
           
 Vector getTopNewForumPostIDList(int num)
           
 Vector getTopReplyForumTopicIDList(int num, int reNum)
           
 boolean initAdminCategory(String userID)
           
 boolean initAdminForum(String userID)
           
 boolean initAdminTopic(String userID)
           
 boolean initAdminUser(String userID)
           
 boolean initAttachFile(String userID, String forumID)
           
 boolean initDownloadPostFile(String userID, String postID, String fileID)
           
 boolean initEditCategory(String userID, String categoryID)
           
 boolean initEditForum(String userID, String forumID)
           
 boolean initEditForumAdmin(String userID, String forumID)
          check user can Admin forum
 boolean initEditForumSubAdmin(String userID, String forumID)
           
 boolean initEditPost(String userID, String postID)
           
 boolean initForumSystemAdmin(String userID)
           
 boolean initIntoAdminSystem(String userID)
           
 boolean initIntoPrivateForum(String userID, String forumID)
           
 boolean initPostForum(String userID, String forumID)
           
 boolean initReplyTopic(String userID, String Topic)
           
 boolean initSubTopicTrackList(String topicID)
          since v3.0 check this forum sub topic is track
 boolean initTrackTopic(String topicID, String userID)
          since v3.0 check user track this track
 boolean initUploadPostFile(String userID, String postID, String fileName)
           
 boolean initViewForum(String userID, String forumID)
           
 boolean initViewPost(String userID, String postID)
           
 boolean initViewTopic(String userID, String topicID)
           
 boolean insertForumCategory(ForumCategory fc)
          create ForumCategory
 boolean insertForumFile(ForumFile ff)
           
 boolean insertForumForum(ForumForum ff)
          create ForumForum Object (ff must set categoryID)
 ForumResult insertForumPost(String topicID, ForumPost fp, ForumPostContent fpc, String parentPostID)
          create ForumPost
 boolean isForumEnable()
           
 ForumResult newForumTopic(String forumID, DMSUser user, String postTitle, String postContent, boolean mailtome, boolean isEmbed, String topicType, String documentKey)
          產生新的Topic(會自動產生對應的post與postcontent
 void removeDownloadReources(String userID, String postID, String fileID)
           
 void removeUploadReources(String userID, String postID)
           
 ForumResult replyForumPost(String topicID, DMSUser user, String postTitle, String postContent, boolean mailtome, boolean isEmbed, String parentPostID)
          Reply Topic
 Vector searchForumPostIDList(DMSUser searcher, String forumID, String userName, String queryKey, String SearchField, String dataRange, String orderType)
           
 boolean trackThisTopic(String topicID, String user)
          since v3.0 insert this track for user
 boolean updateCategoryAdminACL(String forumID, Vector mainAdminList)
           
 boolean updateForumAdminACL(String type, Vector mainAdminList)
          since v3.0 update forum SysAdmin
 boolean updateForumAdminACL(String forumID, Vector mainAdminList, Vector subAdminList)
           
 boolean updateForumCategory(ForumCategory fc)
          update ForumCategory Object
 boolean updateForumConfig(String value, String keyValue, String userID)
          since v3.0
 boolean updateForumFile(ForumFile ff)
           
 boolean updateForumForum(ForumForum ff)
          update ForumForum Object
 boolean updateForumMember(String forumID, Vector mainAdminList)
           
 boolean updateForumPost(ForumPost fp)
          update ForumPost Object
 boolean updateForumPostContent(ForumPostContent fpc)
          update ForumPostContent
 boolean updateForumTopic(ForumTopic ft)
          update ForumTopic Object
 

Method Detail

getForumCategory

ForumCategory getForumCategory(String categoryID)
                               throws RemoteException
get ForumCategory Object from categoryID

Parameters:
categoryID - String
Returns:
ForumCategory
Throws:
RemoteException

insertForumCategory

boolean insertForumCategory(ForumCategory fc)
                            throws RemoteException
create ForumCategory

Parameters:
fc - ForumCategory
Returns:
boolean
Throws:
RemoteException

updateForumCategory

boolean updateForumCategory(ForumCategory fc)
                            throws RemoteException
update ForumCategory Object

Parameters:
fc - ForumCategory
Returns:
boolean
Throws:
RemoteException

deleteForumCategory

boolean deleteForumCategory(String categoryID)
                            throws RemoteException
delete ForumCategory (this method alse delete all Forum,topic,post in ForumCategory )

Parameters:
categoryID - String
Returns:
boolean
Throws:
RemoteException

insertForumForum

boolean insertForumForum(ForumForum ff)
                         throws RemoteException
create ForumForum Object (ff must set categoryID)

Parameters:
ff - ForumForum
Returns:
boolean
Throws:
RemoteException

updateForumForum

boolean updateForumForum(ForumForum ff)
                         throws RemoteException
update ForumForum Object

Parameters:
ff - ForumForum
Returns:
boolean
Throws:
RemoteException

deleteForumForum

boolean deleteForumForum(String forumID)
                         throws RemoteException
delete ForumForum (this method alse delete all topic,post in ForumForum )

Parameters:
forumID - String
Returns:
boolean
Throws:
RemoteException

newForumTopic

ForumResult newForumTopic(String forumID,
                          DMSUser user,
                          String postTitle,
                          String postContent,
                          boolean mailtome,
                          boolean isEmbed,
                          String topicType,
                          String documentKey)
                          throws RemoteException
產生新的Topic(會自動產生對應的post與postcontent

Parameters:
ft - ForumTopic
fpc - ForumPostContent
Returns:
boolean
Throws:
RemoteException

updateForumTopic

boolean updateForumTopic(ForumTopic ft)
                         throws RemoteException
update ForumTopic Object

Parameters:
ft - ForumTopic
Returns:
boolean
Throws:
RemoteException

deleteForumTopic

boolean deleteForumTopic(String topicID)
                         throws RemoteException
delete ForumTopic Object ( this method will delete all post in ForumTopic)

Parameters:
topicID - String
Returns:
boolean
Throws:
RemoteException

insertForumPost

ForumResult insertForumPost(String topicID,
                            ForumPost fp,
                            ForumPostContent fpc,
                            String parentPostID)
                            throws RemoteException
create ForumPost

Parameters:
topicID - String
fp - ForumPost
fpc - ForumPostContent
parentPostID - String
Returns:
boolean
Throws:
RemoteException

replyForumPost

ForumResult replyForumPost(String topicID,
                           DMSUser user,
                           String postTitle,
                           String postContent,
                           boolean mailtome,
                           boolean isEmbed,
                           String parentPostID)
                           throws RemoteException
Reply Topic

Parameters:
topicID - String
memID - String
postTitle - String
postContent - String
Returns:
boolean
Throws:
RemoteException

updateForumPost

boolean updateForumPost(ForumPost fp)
                        throws RemoteException
update ForumPost Object

Parameters:
fp - ForumPost
Returns:
boolean
Throws:
RemoteException

deleteForumPost

boolean deleteForumPost(String postID)
                        throws RemoteException
delete ForumPost Object

Parameters:
postID - String
Returns:
boolean
Throws:
RemoteException

updateForumPostContent

boolean updateForumPostContent(ForumPostContent fpc)
                               throws RemoteException
update ForumPostContent

Parameters:
fpc - ForumPostContent
Returns:
boolean
Throws:
RemoteException

getForumForum

ForumForum getForumForum(String forumID)
                         throws RemoteException
get FroumForum Object from forumID

Parameters:
forumID - String
Returns:
ForumForum
Throws:
RemoteException

getForumTopic

ForumTopic getForumTopic(String topicID,
                         boolean isCountView)
                         throws RemoteException
Object from topicID and count Views

Parameters:
topicID - String
isCountView - boolean
Returns:
ForumTopic is add views count
Throws:
RemoteException

getForumPost

ForumPost getForumPost(String postID,
                       boolean isCountViews)
                       throws RemoteException
get Post Object from postID

Parameters:
postID - String
isCountViews - boolean is add views count
Returns:
ForumPost
Throws:
RemoteException

getForumPostContent

ForumPostContent getForumPostContent(String postID)
                                     throws RemoteException
get

Parameters:
postID - String
Returns:
ForumPostContent
Throws:
RemoteException

getForumCategoryIDList

Vector getForumCategoryIDList(DMSUser user)
                              throws RemoteException
get FroumCategoryIDList

Parameters:
user - DMSUser
Returns:
Vector
Throws:
RemoteException

getForumForumList

Vector getForumForumList(String CategoryID)
                         throws RemoteException
get ForumIDList by CategoryID

Parameters:
CategoryID - String
user - DMSUser
Returns:
Vector (each element in Vector are instance of ForumForum)
Throws:
RemoteException

getAllForumForumList

Vector getAllForumForumList()
                            throws RemoteException
get ALL ForumForum List for Admin use

Returns:
Vector (each element in Vector are instance of ForumForum)
Throws:
RemoteException

getForumTopicIDList

Vector getForumTopicIDList(String forumID,
                           Vector topicType)
                           throws RemoteException
Parameters:
forumID - String
topicType - Vector topicType list
Returns:
Vector
Throws:
RemoteException

getForumTopicIDList

Vector getForumTopicIDList(String forumID,
                           String topicType)
                           throws RemoteException
get TopicIDList by forumID

Parameters:
forumID - String
Returns:
Vector (each element in Vector are instance of String)
Throws:
RemoteException

getForumPostIDList

Vector getForumPostIDList(String topicID)
                          throws RemoteException
getForumPostIDList by topicID (normal Status posts)

Parameters:
topicID - String
Returns:
Vector (each element in Vector are instance of String)
Throws:
RemoteException

getForumPostIDList

Vector getForumPostIDList(String topicID,
                          String status)
                          throws RemoteException
getForumPostIDList by topicID By Status

Parameters:
topicID - String
status - String
Returns:
Vector
Throws:
RemoteException

getForumCategoryList

Vector getForumCategoryList()
                            throws RemoteException
Returns:
Vector (each element in Vector are instance of ForumCategory)
Throws:
RemoteException

getForumPostList

Vector getForumPostList(String topicID)
                        throws RemoteException
get PostList each

Parameters:
topicID - String
Returns:
Vector (each element in Vector are instance of ForumPost)
Throws:
RemoteException

addForumModifyRecord

ForumModifyRecord addForumModifyRecord(String postID,
                                       DMSUser user,
                                       String action)
                                       throws RemoteException
Parameters:
postID - String
user - DMSUser
action - String
Returns:
ForumModifyRecord
Throws:
RemoteException

initUploadPostFile

boolean initUploadPostFile(String userID,
                           String postID,
                           String fileName)
                           throws RemoteException
Throws:
RemoteException

commitUploadPostFileBlock

boolean commitUploadPostFileBlock(String userID,
                                  String postID,
                                  String fileName,
                                  DMSTransBlock block)
                                  throws RemoteException
Throws:
RemoteException

initDownloadPostFile

boolean initDownloadPostFile(String userID,
                             String postID,
                             String fileID)
                             throws RemoteException
Throws:
RemoteException

commitDownloadPostFile

DMSTransBlock commitDownloadPostFile(String userID,
                                     String postID,
                                     String fileID)
                                     throws RemoteException
Throws:
RemoteException

removeUploadReources

void removeUploadReources(String userID,
                          String postID)
                          throws RemoteException
Throws:
RemoteException

removeDownloadReources

void removeDownloadReources(String userID,
                            String postID,
                            String fileID)
                            throws RemoteException
Throws:
RemoteException

insertForumFile

boolean insertForumFile(ForumFile ff)
                        throws RemoteException
Throws:
RemoteException

updateForumFile

boolean updateForumFile(ForumFile ff)
                        throws RemoteException
Throws:
RemoteException

deleteForumFile

boolean deleteForumFile(String fileID)
                        throws RemoteException
Throws:
RemoteException

getForumFile

ForumFile getForumFile(String fileID)
                       throws RemoteException
Throws:
RemoteException

initForumSystemAdmin

boolean initForumSystemAdmin(String userID)
                             throws RemoteException
Throws:
RemoteException

initAdminCategory

boolean initAdminCategory(String userID)
                          throws RemoteException
Throws:
RemoteException

initAdminForum

boolean initAdminForum(String userID)
                       throws RemoteException
Throws:
RemoteException

initIntoAdminSystem

boolean initIntoAdminSystem(String userID)
                            throws RemoteException
Parameters:
userID - String
Returns:
boolean
Throws:
RemoteException

initEditForum

boolean initEditForum(String userID,
                      String forumID)
                      throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

initEditCategory

boolean initEditCategory(String userID,
                         String categoryID)
                         throws RemoteException
Parameters:
userID - String
categoryID - String
Returns:
boolean
Throws:
RemoteException

initEditForumSubAdmin

boolean initEditForumSubAdmin(String userID,
                              String forumID)
                              throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

initIntoPrivateForum

boolean initIntoPrivateForum(String userID,
                             String forumID)
                             throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

initAdminUser

boolean initAdminUser(String userID)
                      throws RemoteException
Throws:
RemoteException

initAdminTopic

boolean initAdminTopic(String userID)
                       throws RemoteException
Throws:
RemoteException

initPostForum

boolean initPostForum(String userID,
                      String forumID)
                      throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

initEditPost

boolean initEditPost(String userID,
                     String postID)
                     throws RemoteException
Parameters:
userID - String
postID - String
Returns:
boolean
Throws:
RemoteException

initAttachFile

boolean initAttachFile(String userID,
                       String forumID)
                       throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

initViewPost

boolean initViewPost(String userID,
                     String postID)
                     throws RemoteException
Parameters:
userID - String
postID - String
Returns:
boolean
Throws:
RemoteException

initViewTopic

boolean initViewTopic(String userID,
                      String topicID)
                      throws RemoteException
Parameters:
userID - String
topicID - String
Returns:
boolean
Throws:
RemoteException

initViewForum

boolean initViewForum(String userID,
                      String forumID)
                      throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

initReplyTopic

boolean initReplyTopic(String userID,
                       String Topic)
                       throws RemoteException
Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException

getForumReplyReportByUser

HashMap getForumReplyReportByUser(String forumID,
                                  long starttime,
                                  long endtime)
                                  throws RemoteException
Parameters:
forumID - String
starttime - long
endtime - long
Returns:
HashMap
Throws:
RemoteException

getForumNewTopicReportByUser

HashMap getForumNewTopicReportByUser(String forumID,
                                     long starttime,
                                     long endtime)
                                     throws RemoteException
Parameters:
forumID - String
starttime - long
endtime - long
Returns:
HashMap
Throws:
RemoteException

getForumAdminList

Vector getForumAdminList(String forumID)
                         throws RemoteException
Parameters:
forumID - String
Returns:
Vector
Throws:
RemoteException

updateForumAdminACL

boolean updateForumAdminACL(String forumID,
                            Vector mainAdminList,
                            Vector subAdminList)
                            throws RemoteException
Parameters:
forumID - String
mainAdminList - Vector
subAdminList - Vector
Returns:
boolean
Throws:
RemoteException

updateForumMember

boolean updateForumMember(String forumID,
                          Vector mainAdminList)
                          throws RemoteException
Parameters:
forumID - String
mainAdminList - Vector
Returns:
boolean
Throws:
RemoteException

updateCategoryAdminACL

boolean updateCategoryAdminACL(String forumID,
                               Vector mainAdminList)
                               throws RemoteException
Parameters:
forumID - String
mainAdminList - Vector
Returns:
boolean
Throws:
RemoteException

isForumEnable

boolean isForumEnable()
                      throws RemoteException
Returns:
boolean
Throws:
RemoteException

getForumConfig

ForumConfig getForumConfig()
                           throws RemoteException
Returns:
ForumConfig
Throws:
RemoteException

getForumReportByUser

HashMap getForumReportByUser(String forumID,
                             long starttime,
                             long endtime,
                             Vector depList,
                             String postType)
                             throws RemoteException
Parameters:
forumID -
starttime -
endtime -
depList - ,contains memberIDs or departmentIDs
postType - ,NEW or REPLY
Returns:
Throws:
RemoteException

searchForumPostIDList

Vector searchForumPostIDList(DMSUser searcher,
                             String forumID,
                             String userName,
                             String queryKey,
                             String SearchField,
                             String dataRange,
                             String orderType)
                             throws RemoteException
Parameters:
searcher - DMSUser
forumID - String
userName - String (loginID or userName)
queryKey - String
SearchField - String
dataRange - String
orderType - String
Returns:
Vector
Throws:
RemoteException

getForumPostContentByUser

Vector getForumPostContentByUser(String forumID,
                                 long starttime,
                                 long endtime,
                                 Vector userList,
                                 String postType)
                                 throws RemoteException
Parameters:
userList - ,a Vector which contains memIDs or depIDs
Returns:
Vector , contains ForumPostContent objects
Throws:
RemoteException

getTopNewForumPostIDList

Vector getTopNewForumPostIDList(int num)
                                throws RemoteException
Parameters:
num - int
Returns:
Vector
Throws:
RemoteException

getTopReplyForumTopicIDList

Vector getTopReplyForumTopicIDList(int num,
                                   int reNum)
                                   throws RemoteException
Parameters:
num - int
Returns:
Vector
Throws:
RemoteException

getTopHotForumTopicIDList

Vector getTopHotForumTopicIDList(int num,
                                 int hotNum)
                                 throws RemoteException
Parameters:
num - int
Returns:
Vector
Throws:
RemoteException

getForumAdminMap

HashMap getForumAdminMap(String forumID)
                         throws RemoteException
Parameters:
forumID - String
Returns:
HashMap
Throws:
RemoteException

getCategoryAdminMap

HashMap getCategoryAdminMap(String type,
                            String categoryID)
                            throws RemoteException
get category administrator

Parameters:
categoryID - String
Returns:
HashMap
Throws:
RemoteException

initTrackTopic

boolean initTrackTopic(String topicID,
                       String userID)
                       throws RemoteException
since v3.0 check user track this track

Parameters:
String - topicID, String userID
Returns:
boolean
Throws:
Exception
RemoteException

trackThisTopic

boolean trackThisTopic(String topicID,
                       String user)
                       throws RemoteException
since v3.0 insert this track for user

Parameters:
String - topicID, String userID
Returns:
boolean
Throws:
Exception
RemoteException

initSubTopicTrackList

boolean initSubTopicTrackList(String topicID)
                              throws RemoteException
since v3.0 check this forum sub topic is track

Parameters:
String - topicID, String userID
Returns:
boolean
Throws:
Exception
RemoteException

delThisTrack

boolean delThisTrack(String topicID,
                     String user)
                     throws RemoteException
since v3.0 delete this track

Parameters:
String - topicID, String userID
Returns:
boolean
Throws:
Exception
RemoteException

delThisForumTrack

boolean delThisForumTrack(String topicID)
                          throws RemoteException
since v3.0 delete this forum or this topic track

Parameters:
String - topicID
Returns:
boolean
Throws:
Exception
RemoteException

getForumSubTopic

Vector getForumSubTopic(String forumID)
                        throws RemoteException
since v3.0 get forum sub topic

Parameters:
String - forumID
Returns:
Vector
Throws:
Exception
RemoteException

getForumMemList

Vector getForumMemList(String forumID)
                       throws RemoteException
since v3.0 get forum member list

Parameters:
String - forumID
Returns:
Vector
Throws:
Exception
RemoteException

updateForumConfig

boolean updateForumConfig(String value,
                          String keyValue,
                          String userID)
                          throws RemoteException
since v3.0

Returns:
boolean
Throws:
Exception
RemoteException

updateForumAdminACL

boolean updateForumAdminACL(String type,
                            Vector mainAdminList)
                            throws RemoteException
since v3.0 update forum SysAdmin

Parameters:
type - MEMlist
Returns:
boolean
Throws:
Exception
RemoteException

initEditForumAdmin

boolean initEditForumAdmin(String userID,
                           String forumID)
                           throws RemoteException
check user can Admin forum

Parameters:
userID - String
forumID - String
Returns:
boolean
Throws:
RemoteException


Copyright(c) 2005-2012 by Flowring Technology Corp., 12 F., No 120, Sec 2, Gongdao 5th Rd., Hsin-Chu City 300, Taiwan(R.O.C.) All rights reserved.