| java.lang.Object com.mvnforum.admin.PostXML
PostXML | public class PostXML (Code) | | author: Igor Manic version: $Revision: 1.12 $, $Date: 2007/10/09 11:09:14 $ version:
version: PostXML todo Igor: enter description |
Constructor Summary | |
public | PostXML() |
Method Summary | |
public void | addPost(String memberName, String lastEditMemberName, String postTopic, String postBody, String postCreationDate, String postLastEditDate, String postCreationIP, String postLastEditIP, String postEditCount, String postFormatOption, String postOption, String postStatus, String postIcon, String postAttachCount) Creates a post. | public static void | exportPost(XMLWriter xmlWriter, int postID) | public static void | exportPostList(XMLWriter xmlWriter, int parentThreadID) | public static void | exportPostList_FirstPosts(XMLWriter xmlWriter, int parentThreadID) | public static void | exportPostList_Replies(XMLWriter xmlWriter, int parentPostID) | public int | getParentCategoryID() Returns CategoryID of this post's parent category or
-1 if this post is not created yet. | public int | getParentForumID() Returns ForumID of this post's parent forum or
-1 if this post is not created yet. | public int | getParentPostID() Returns PostID of this post's parent post (which means this post is
reply to that parent post), or 0 if this post is not created yet or
has no parent post (first post in a thread). | public int | getParentThreadID() Returns ThreadID of this post's parent thread or
-1 if this post is not created yet. | public int | getPostID() Returns PostID of this post or
-1 if post is not created yet. | public void | increasePostAttachCount() | public void | setParentCategory(Object o) | public void | setParentCategoryID(int value) | public void | setParentForum(Object o) | public void | setParentForumID(int value) | public void | setParentPost(Object o) | public void | setParentPostID(int value) | public void | setParentThread(Object o) | public void | setParentThreadID(int value) | public void | setPostID(String id) |
addPost | public void addPost(String memberName, String lastEditMemberName, String postTopic, String postBody, String postCreationDate, String postLastEditDate, String postCreationIP, String postLastEditIP, String postEditCount, String postFormatOption, String postOption, String postStatus, String postIcon, String postAttachCount) throws CreateException, ObjectNotFoundException, DatabaseException, ForeignKeyNotFoundException(Code) | | Creates a post. 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 post. Can be null. Parameters: lastEditMemberName - Can be null. Parameters: postTopic - Subject of post. Parameters: postBody - Message body. Parameters: postCreationDate - Can be null. Parameters: postLastEditDate - Can be null. Parameters: postCreationIP - Can be null. Parameters: postLastEditIP - Can be null. Parameters: postEditCount - Can be null. Parameters: postFormatOption - Can be null. Parameters: postOption - Can be null. Parameters: postStatus - Can be null. Parameters: postIcon - Can be null. Parameters: postAttachCount - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
getParentCategoryID | public int getParentCategoryID()(Code) | | Returns CategoryID of this post's parent category or
-1 if this post is not created yet.
|
getParentForumID | public int getParentForumID()(Code) | | Returns ForumID of this post's parent forum or
-1 if this post is not created yet.
|
getParentPostID | public int getParentPostID()(Code) | | Returns PostID of this post's parent post (which means this post is
reply to that parent post), or 0 if this post is not created yet or
has no parent post (first post in a thread).
|
getParentThreadID | public int getParentThreadID()(Code) | | Returns ThreadID of this post's parent thread or
-1 if this post is not created yet.
|
getPostID | public int getPostID()(Code) | | Returns PostID of this post or
-1 if post is not created yet.
|
setParentCategoryID | public void setParentCategoryID(int value)(Code) | | |
setParentForumID | public void setParentForumID(int value)(Code) | | |
setParentPostID | public void setParentPostID(int value)(Code) | | |
setParentThreadID | public void setParentThreadID(int value)(Code) | | |
|
|