| |
|
| java.lang.Object net.jforum.entities.Post
All known Subclasses: net.jforum.search.SearchPost,
Post | public class Post implements Serializable(Code) | | Represents every message post in the system.
author: Rafael Steil version: $Id: Post.java,v 1.15 2007/07/25 03:08:15 rafaelsteil Exp $ |
Post | public Post(int postId)(Code) | | |
Post | public Post(Post p)(Code) | | Copy constructor
Parameters: p - The Post to make a copy from |
getCanEdit | public boolean getCanEdit()(Code) | | |
getEditCount | public int getEditCount()(Code) | | Gets the total number of times the post was edited
int value with the total number of times the post was edited |
getEditTime | public Date getEditTime()(Code) | | Gets the edit time of the post
long value representing the time |
getForumId | public int getForumId()(Code) | | Gets the forum's id the post is associated
int value with the id of the forum |
getId | public int getId()(Code) | | Gets the ID of the post
int value with the ID |
getPostUsername | public String getPostUsername()(Code) | | Gets the username of the user ( an anonymous user ) that have posted the message
String with the username |
getSubject | public String getSubject()(Code) | | Gets the subject of the post
String with the subject |
getText | public String getText()(Code) | | Gets the message of the post
String containing the text |
getTime | public Date getTime()(Code) | | Gets the time, represented as long, of the message post
long representing the post time |
getTopicId | public int getTopicId()(Code) | | Gets the id of the topic this message is associated
int value with the topic id |
getUserId | public int getUserId()(Code) | | Gets the ID of the user that have posted the message
int value with the user id |
getUserIp | public String getUserIp()(Code) | | Gets the IP of the user who have posted the message
String value with the user IP |
hasAttachments | public boolean hasAttachments()(Code) | | Returns the hasAttachments. |
hasAttachments | public void hasAttachments(boolean hasAttachments)(Code) | | Parameters: hasAttachments - The hasAttachments to set. |
isBbCodeEnabled | public boolean isBbCodeEnabled()(Code) | | Checks if the BB code is enabled
boolean value representing the result |
isHtmlEnabled | public boolean isHtmlEnabled()(Code) | | Checks if HTML is enabled in the topic
boolean value representing the result |
isModerate | public boolean isModerate()(Code) | | |
isModerationNeeded | public boolean isModerationNeeded()(Code) | | |
isSignatureEnabled | public boolean isSignatureEnabled()(Code) | | Checks if signature is allowd in the message
boolean representing the result |
isSmiliesEnabled | public boolean isSmiliesEnabled()(Code) | | Checks if smart Smilies are enabled :)
boolean representing the result |
setBbCodeEnabled | public void setBbCodeEnabled(boolean bbCodeEnabled)(Code) | | Sets the status for BB code in the message
Parameters: bbCodeEnabled - true or false , depending the intention |
setCanEdit | public void setCanEdit(boolean canEdit)(Code) | | |
setEditCount | public void setEditCount(int editCount)(Code) | | Sets the count times the message was edited
Parameters: editCount - The count time |
setEditTime | public void setEditTime(Date editTime)(Code) | | Sets the edit time the message was last edited
Parameters: editTime - long value representing the time |
setForumId | public void setForumId(int forumId)(Code) | | Sets the id of the forum this message belongs to
Parameters: forumId - The forum's id |
setHtmlEnabled | public void setHtmlEnabled(boolean htmlEnabled)(Code) | | Sets the status for HTML code in the message
Parameters: htmlEnabled - true or false , depending the intention |
setId | public void setId(int id)(Code) | | Sets the id for the message
Parameters: id - The id |
setModerate | public void setModerate(boolean status)(Code) | | |
setPostUsername | public void setPostUsername(String postUsername)(Code) | | Sets the username of the anonymous user that have sent the message
Parameters: postUsername - String with the username |
setSignatureEnabled | public void setSignatureEnabled(boolean signatureEnabled)(Code) | | Sets the status for signatures in the message
Parameters: signatureEnabled - true or false , depending the intention |
setSmiliesEnabled | public void setSmiliesEnabled(boolean smiliesEnabled)(Code) | | Sets the status for smilies in the message
Parameters: smiliesEnabled - true or false , depending the intention |
setSubject | public void setSubject(String subject)(Code) | | Sets the subject for the message
Parameters: subject - The subject to set |
setText | public void setText(String text)(Code) | | Sets the text of the post
Parameters: text - The text to set |
setTime | public void setTime(Date time)(Code) | | Sets the time the message was sent
Parameters: time - The time |
setTopicId | public void setTopicId(int topicId)(Code) | | Sets the id of the topic that the message belongs to
Parameters: topicId - The id of the topic |
setUserId | public void setUserId(int userId)(Code) | | Sets the id of the user that sent the message
Parameters: userId - The user Id |
setUserIp | public void setUserIp(String userIp)(Code) | | Sets the IP of the user
Parameters: userIP - The IP address of the user |
|
|
|