|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ondelette.servlet.webforum.Message
Message (post) object
Field Summary |
Fields inherited from interface com.ondelette.servlet.webforum.AutorizationConstants |
ACCOUNTINACTIVE, ADMIN, DELETED, EXECUTIVEMEMBER, IDENTIFIEDGUEST, ILLEGAL, MEMBER, NORMAL, VIPMEMBER |
Fields inherited from interface com.ondelette.servlet.webforum.FixedNumericalConstants |
DEFAULT_NUMBER_OF_RECENT_MESSAGES, MAX_MESSAGE_SIZE_IN_BYTES, MAX_NUMBER_OF_MESSAGES_PER_FORUM, MAX_TEXTFIELD_SIZE, NUMBER_OF_CHARS_TO_COMPARE |
Constructor Summary | |
Message(java.lang.String authorString,
java.lang.String authorEmail,
java.lang.String subjectString,
java.lang.String messageString,
java.lang.String optionalURLString,
java.lang.String urlLinkString)
Constructor for the Message object |
Method Summary | |
void |
addReply(MessageReference mr)
Adds a feature to the Reply attribute of the Message object |
boolean |
contains(MessageReference mr)
|
boolean |
fastCompare(Message m)
|
java.lang.String |
getAuthor()
Gets the author attribute of the Message object |
java.lang.String |
getAuthorEmail()
Gets the authorEmail attribute of the Message object |
int |
getAutorizationLevel()
Gets the autorizationLevel attribute of the Message object |
java.util.Date |
getDate()
Gets the date attribute of the Message object |
java.lang.String |
getFormattedMessage()
Gets the formattedMessage attribute of the Message object |
int |
getInReplyTo()
Gets the inReplyTo attribute of the Message object |
java.lang.String |
getMessage()
Gets the message attribute of the Message object |
int |
getNumberOfBytes()
Gets the numberOfBytes attribute of the Message object |
int |
getNumberOfLines()
Gets the numberOfLines attribute of the Message object |
java.lang.String |
getOptionalURL()
Gets the optional URL (if any) |
java.util.Enumeration |
getReplies()
Gets the replies attribute of the Message object |
java.lang.String |
getSubject()
Gets the subject attribute of the Message object |
java.lang.String |
getURLLinkTitle()
Gets the title for the optional URL (if any) |
boolean |
hasBeenDeleted()
|
static Message |
read(java.io.InputStreamReader in)
Read a message for XML-like file |
boolean |
removeReply(MessageReference mr)
|
void |
setAuthor(java.lang.String author)
Sets the author attribute of the Message object |
void |
setAuthorEmail(java.lang.String authorEmail)
Sets the authorEmail attribute of the Message object |
void |
setAutorizationLevel(int level)
Sets the autorizationLevel attribute of the Message object |
void |
setDate(java.util.Date date)
Sets the date attribute of the Message object |
void |
setInReplyTo(int ID)
Sets the inReplyTo attribute of the Message object |
void |
setMessage(java.lang.String message)
Sets the message attribute of the Message object |
void |
setOptionalURL(java.lang.String url)
Sets the optional URL (if any) |
void |
setSubject(java.lang.String subject)
Sets the subject attribute of the Message object |
void |
setURLLinkTitle(java.lang.String title)
Sets the title for the optional URL (if any) |
java.lang.String |
toString()
|
void |
write(java.io.OutputStreamWriter out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Message(java.lang.String authorString, java.lang.String authorEmail, java.lang.String subjectString, java.lang.String messageString, java.lang.String optionalURLString, java.lang.String urlLinkString)
authorString
- authorEmail
- subjectString
- messageString
- optionalURLString
- urlLinkString
- Method Detail |
public static Message read(java.io.InputStreamReader in) throws java.io.IOException
in
-
java.io.IOException
public void setInReplyTo(int ID)
ID
- The new inReplyTo valuepublic void setDate(java.util.Date date)
date
- The new date valuepublic void setAutorizationLevel(int level)
level
- The new autorizationLevel valuepublic void setSubject(java.lang.String subject)
public void setMessage(java.lang.String message)
message
- The new message valuepublic void setAuthor(java.lang.String author)
public void setAuthorEmail(java.lang.String authorEmail)
public void setOptionalURL(java.lang.String url)
url
- the URL to setpublic void setURLLinkTitle(java.lang.String title)
title
- the title for the URLpublic java.util.Enumeration getReplies()
public int getInReplyTo()
public java.util.Date getDate()
public int getAutorizationLevel()
public int getNumberOfLines()
public int getNumberOfBytes()
public java.lang.String getSubject()
public java.lang.String getMessage()
public java.lang.String getFormattedMessage()
public java.lang.String getAuthor()
public java.lang.String getAuthorEmail()
public java.lang.String getOptionalURL()
public java.lang.String getURLLinkTitle()
public boolean contains(MessageReference mr)
mr
-
public boolean hasBeenDeleted()
public void addReply(MessageReference mr)
mr
- The feature to be added to the Reply attributepublic boolean removeReply(MessageReference mr)
mr
-
public void write(java.io.OutputStreamWriter out) throws java.io.IOException
out
-
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean fastCompare(Message m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |