| java.lang.Object com.mvnforum.admin.AttachmentXML
AttachmentXML | public class AttachmentXML (Code) | | author: Igor Manic version: $Revision: 1.12 $, $Date: 2007/10/09 11:09:12 $ version:
version: AttachmentXML todo Igor: enter description |
Method Summary | |
public void | addAttachment(String memberName, String attachFilename, String attachFileSize, String attachMimeType, String attachDesc, String attachCreationIP, String attachCreationDate, String attachModifiedDate, String attachDownloadCount, String attachOption, String attachStatus) Creates an attachment. | public void | addAttachment(String strAttachmentID, String memberName, String attachFilename, String attachFileSize, String attachMimeType, String attachDesc, String attachCreationIP, String attachCreationDate, String attachModifiedDate, String attachDownloadCount, String attachOption, String attachStatus) Creates an attachment. | public static void | exportAttachmentList(XMLWriter xmlWriter, int parentPostID) | public int | getAttachmentID() Returns AttachmentID of this attachment or
-1 if attachment is not created yet. | public int | getParentCategoryID() Returns CategoryID of this attachment's parent category or
-1 if this attachment is not created yet. | public int | getParentForumID() Returns ForumID of this attachment's parent forum or
-1 if this attachment is not created yet. | public int | getParentPostID() Returns PostID of this attachment's parent post or
-1 if this attachment is not created yet. | public int | getParentThreadID() Returns ThreadID of this attachment's parent thread or
-1 if this attachment is not created yet. | public void | setAttachmentID(String id) | 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) |
AttachmentXML | public AttachmentXML()(Code) | | |
addAttachment | public void addAttachment(String memberName, String attachFilename, String attachFileSize, String attachMimeType, String attachDesc, String attachCreationIP, String attachCreationDate, String attachModifiedDate, String attachDownloadCount, String attachOption, String attachStatus) throws CreateException, ObjectNotFoundException, DatabaseException(Code) | | Creates an attachment. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
This method must be called after you've assigned the positive ID to this
attachment (using setAttachmentID(java.lang.String) method).
Parameters: memberName - Can be null. Parameters: attachFilename - Name of attachment file to be displayed on forum pages. Parameters: attachFileSize - Size of attachment file. Parameters: attachMimeType - MIME type of attachment file. Parameters: attachDesc - Can be null. Parameters: attachCreationIP - Can be null. Parameters: attachCreationDate - Can be null. Parameters: attachModifiedDate - Can be null. Parameters: attachDownloadCount - Can be null. Parameters: attachOption - Can be null. Parameters: attachStatus - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
addAttachment | public void addAttachment(String strAttachmentID, String memberName, String attachFilename, String attachFileSize, String attachMimeType, String attachDesc, String attachCreationIP, String attachCreationDate, String attachModifiedDate, String attachDownloadCount, String attachOption, String attachStatus) throws CreateException, ObjectNotFoundException, DatabaseException(Code) | | Creates an attachment. All argument values (int s, Timestamp s, ...)
are represented as String s, because of more convenient using
of this method for XML parsing.
Parameters: strAttachmentID - Must be non-null valid integer number, because itis the only way to know which file on server correspondsto this attachment. Parameters: memberName - Can be null. Parameters: attachFilename - Name of attachment file to be displayed on forum pages. Parameters: attachFileSize - Size of attachment file. Parameters: attachMimeType - MIME type of attachment file. Parameters: attachDesc - Can be null. Parameters: attachCreationIP - Can be null. Parameters: attachCreationDate - Can be null. Parameters: attachModifiedDate - Can be null. Parameters: attachDownloadCount - Can be null. Parameters: attachOption - Can be null. Parameters: attachStatus - Can be null. throws: CreateException - throws: DuplicateKeyException - throws: ObjectNotFoundException - throws: DatabaseException - throws: ForeignKeyNotFoundException - |
getAttachmentID | public int getAttachmentID()(Code) | | Returns AttachmentID of this attachment or
-1 if attachment is not created yet.
|
getParentCategoryID | public int getParentCategoryID()(Code) | | Returns CategoryID of this attachment's parent category or
-1 if this attachment is not created yet.
|
getParentForumID | public int getParentForumID()(Code) | | Returns ForumID of this attachment's parent forum or
-1 if this attachment is not created yet.
|
getParentPostID | public int getParentPostID()(Code) | | Returns PostID of this attachment's parent post or
-1 if this attachment is not created yet.
|
getParentThreadID | public int getParentThreadID()(Code) | | Returns ThreadID of this attachment's parent thread or
-1 if this attachment 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) | | |
|
|