|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ondelette.servlet.webforum.MessageFolder
This class manages a bunch of posts and it handles saving and loading them from disk
| Field Summary | |
protected Forum |
mForum
Host forum |
protected com.ondelette.servlet.webforum.MessageArchiveBuffer |
mMAB
Archive buffer (buffer for loading posts from disk) |
| Fields inherited from interface com.ondelette.servlet.webforum.AutorizationConstants |
ACCOUNTINACTIVE, ADMIN, DELETED, EXECUTIVEMEMBER, IDENTIFIEDGUEST, ILLEGAL, MEMBER, NORMAL, VIPMEMBER |
| Constructor Summary | |
MessageFolder(Forum forum)
Constructor for the MessageFolder object |
|
| Method Summary | |
MessageReference |
addMessage(Message message)
Add a message (post) |
void |
deleteMessage(int mr)
Delete a post |
void |
deleteMessage(MessageReference mr)
Delete a post |
void |
destroy()
Call this when the servlet dies |
int |
getCurrentMaxIndex()
Gets the CurrentMaxIndex attribute of the MessageFolder object |
Message |
getMessage(int ID)
Gets the Message attribute of the MessageFolder object |
int |
getNumberOfPages()
Gets the NumberOfPages attribute of the MessageFolder object |
int[] |
getPage(int pagenumber)
Gets the Page attribute of the MessageFolder object |
void |
writeLastMessagesSummaryHTML(int NumberOfMessages,
java.io.PrintWriter out,
java.lang.String ServletPath)
Something like last 10 messages |
void |
writePageSummaryHTML(int pagenumber,
java.io.PrintWriter out,
java.lang.String ServletPath)
Write usual summary of titles and dates |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Forum mForum
protected com.ondelette.servlet.webforum.MessageArchiveBuffer mMAB
| Constructor Detail |
public MessageFolder(Forum forum)
throws java.io.IOException
forum -
java.io.IOException| Method Detail |
public Message getMessage(int ID)
throws java.io.IOException
ID -
java.io.IOExceptionpublic int getNumberOfPages()
public int[] getPage(int pagenumber)
pagenumber -
public int getCurrentMaxIndex()
public void deleteMessage(MessageReference mr)
throws java.io.IOException
mr -
java.io.IOException
public void deleteMessage(int mr)
throws java.io.IOException
mr -
java.io.IOException
public void writePageSummaryHTML(int pagenumber,
java.io.PrintWriter out,
java.lang.String ServletPath)
throws java.io.IOException
pagenumber - out - ServletPath -
java.io.IOException
public void writeLastMessagesSummaryHTML(int NumberOfMessages,
java.io.PrintWriter out,
java.lang.String ServletPath)
throws java.io.IOException
NumberOfMessages - out - ServletPath -
java.io.IOException
public MessageReference addMessage(Message message)
throws java.io.IOException
message - The feature to be added to the Message attribute
java.io.IOExceptionpublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||