| java.lang.Object com.mvnforum.admin.ThreadXML
ThreadXML | public class ThreadXML (Code) | | author: Igor Manic version: $Revision: 1.15 $, $Date: 2007/10/09 11:09:14 $ version:
version: ThreadXML todo Igor: enter description |
Method Summary | |
public void | addFavoriteThread(String memberName, String favoriteCreationDate, String favoriteType, String favoriteOption, String favoriteStatus) | public void | addThread(String memberName, String lastPostMemberName, String threadTopic, String threadBody, String threadVoteCount, String threadVoteTotalStars, String threadCreationDate, String threadLastPostDate, String threadType, String threadPriority, String threadOption, String threadStatus, String threadHasPoll, String threadViewCount, String threadReplyCount, String threadIcon, String threadDuration, String threadAttachCount) Creates a thread. | public void | addThreadWatch(String memberName, String watchType, String watchOption, String watchStatus, String watchCreationDate, String watchLastSentDate, String watchEndDate) Creates a thread watch for this thread. | public static void | exportFavoriteThreadsForThread(XMLWriter xmlWriter, int threadID) | public static void | exportThread(XMLWriter xmlWriter, int threadID) | public static void | exportThreadList(XMLWriter xmlWriter, int parentForumID) | public static void | exportThreadWatchesForThread(XMLWriter xmlWriter, int threadID) | public int | getParentCategoryID() Returns CategoryID of this thread's parent category or
-1 if this thread is not created yet. | public int | getParentForumID() Returns ForumID of this thread's parent forum or
-1 if this thread is not created yet. | public int | getThreadID() Returns ThreadID of this thread or
-1 if thread is not created yet. | public void | increaseReplyCount() | public void | setParentCategory(Object o) | public void | setParentCategoryID(int value) | public void | setParentForum(Object o) | public void | setParentForumID(int value) | public void | setThreadID(String id) | public void | updateLastPostDate(Timestamp value) | public void | updateLastPostMemberName(String value) |
ThreadXML | public ThreadXML()(Code) | | |
addThread | public void addThread(String memberName, String lastPostMemberName, String threadTopic, String threadBody, String threadVoteCount, String threadVoteTotalStars, String threadCreationDate, String threadLastPostDate, String threadType, String threadPriority, String threadOption, String threadStatus, String threadHasPoll, String threadViewCount, String threadReplyCount, String threadIcon, String threadDuration, String threadAttachCount) throws CreateException, ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | Creates a thread. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
Parameters: memberName - Member that created the thread. Can be null. Parameters: lastPostMemberName - Can be null. Parameters: threadTopic - Thread topic. Parameters: threadBody - Thread body (description). Parameters: threadVoteCount - Can be null. Parameters: threadVoteTotalStars - Can be null. Parameters: threadCreationDate - Can be null. Parameters: threadLastPostDate - Can be null. Parameters: threadType - Can be null. Parameters: threadOption - Can be null. Parameters: threadStatus - Can be null. Parameters: threadHasPoll - Can be null. Parameters: threadViewCount - Can be null. Parameters: threadReplyCount - Can be null. Parameters: threadIcon - Can be null. Parameters: threadDuration - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addThreadWatch | public void addThreadWatch(String memberName, String watchType, String watchOption, String watchStatus, String watchCreationDate, String watchLastSentDate, String watchEndDate) throws CreateException, DatabaseException, ObjectNotFoundException, DuplicateKeyException, ForeignKeyNotFoundException(Code) | | Creates a thread watch for this thread. In order to know which thread we are
reffering to, this method is supposed to be called after
ThreadXML.setThreadID(String) ,
ThreadXML.addThread(String,String,String,String,String,String,String,String,String,String,String,String,String,String,String,String) have been called. Otherwise, this watch will be simply ignored.
Parameters: memberName - Parameters: watchType - Can be null. Parameters: watchOption - Can be null. Parameters: watchStatus - Can be null. Parameters: watchCreationDate - Can be null. Parameters: watchLastSentDate - Can be null. Parameters: watchEndDate - Can be null. throws: BadInputException - throws: CreateException - throws: DatabaseException - throws: ObjectNotFoundException - throws: DuplicateKeyException - throws: ForeignKeyNotFoundException - |
getParentCategoryID | public int getParentCategoryID()(Code) | | Returns CategoryID of this thread's parent category or
-1 if this thread is not created yet.
|
getParentForumID | public int getParentForumID()(Code) | | Returns ForumID of this thread's parent forum or
-1 if this thread is not created yet.
|
getThreadID | public int getThreadID()(Code) | | Returns ThreadID of this thread or
-1 if thread is not created yet.
|
setParentCategoryID | public void setParentCategoryID(int value)(Code) | | |
setParentForumID | public void setParentForumID(int value)(Code) | | |
|
|