|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ondelette.servlet.webforum.Forum
A forum object containing posts and folder of posts
Field Summary | |
protected int |
mAuthorizationLevel
Threshold to be able to view the forum. |
protected java.io.File |
mConfigFile
File containing the configuration parameters of this forum. |
protected java.lang.String |
mCSSURL
URL pointing to the CSS file. |
protected java.lang.String |
mFailedLoginURL
|
protected java.lang.String |
mForumFooter
A string used in the footer of the HTML pages. |
protected ForumLocale |
mForumLocale
The object which determines how things are displayed (including language, charset encoding...) |
protected java.io.File |
mForumLocaleFile
File containing the parameter of the ForumLocale object. |
protected java.lang.String |
mForumSubTitle
A subtitle to be displayed in HTML |
protected java.lang.String |
mForumTitle
The title to be displayed in HTML |
protected java.io.File |
mMessageArchiveDirectory
Directory where the database is stored. |
protected MessageFolder |
mMessageFolder
MessageFolder object, maintains a database of sorts. |
protected int |
mPostPrivilege
Threshold on user level for post privilege (default is 0). |
protected long |
mSaveDelay
How often messages are written to disk. |
protected UserList |
mUserList
List of all users registered with this forum. |
protected java.io.File |
mUserListFile
File containing the list of users. |
protected java.lang.String |
mWelcomeURL
A URL to the login page. |
Constructor Summary | |
Forum(java.io.File forumconfigfile)
Constructor for the Forum object |
Method Summary | |
MessageReference |
addMessage(Message message)
Adds a feature to the Message attribute of the Forum object |
MessageReference |
addMessage(java.lang.String subjectString,
java.lang.String messageString,
java.lang.String authorString,
java.lang.String emailString,
java.lang.String optionalURLString,
java.lang.String linkTitleString,
User user)
Adds a feature to the Message attribute of the Forum object |
MessageReference |
addReply(int k,
java.lang.String subjectString,
java.lang.String messageString,
java.lang.String authorString,
java.lang.String emailString,
java.lang.String optionalURLString,
java.lang.String linkTitleString,
User user)
Adds a feature to the Reply attribute of the Forum object |
void |
askForConfirmationOnDeletingMessage(int k,
java.io.PrintWriter out,
User user,
java.lang.String servletPath)
|
void |
deleteMessage(int k,
java.io.PrintWriter out,
User user,
java.lang.String servletPath)
|
void |
destroy()
|
void |
displayUser(java.lang.String name,
java.io.PrintWriter out,
java.lang.String servletPath)
|
void |
displayUserList(java.io.PrintWriter out,
java.lang.String servletPath)
|
void |
getLastMessages(int k,
java.io.PrintWriter out,
User user,
java.lang.String servletPath)
Gets the lastMessages attribute of the Forum object |
void |
getPage(int k,
java.io.PrintWriter out,
User user,
java.lang.String servletPath)
Gets the page attribute of the Forum object |
void |
showMessage(int k,
java.io.PrintWriter out,
User user,
java.lang.String servletPath)
|
void |
showWarningAutorizationRequired(java.io.PrintWriter out)
|
void |
showWarningCannotChangeAdmin(java.io.PrintWriter out)
|
void |
showWarningNameInUse(java.lang.String name,
java.io.PrintWriter out)
|
void |
showWarningPasswordsDontMatch(java.lang.String name,
java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String mForumTitle
protected java.lang.String mForumSubTitle
protected ForumLocale mForumLocale
protected long mSaveDelay
protected int mPostPrivilege
protected MessageFolder mMessageFolder
protected UserList mUserList
protected java.io.File mMessageArchiveDirectory
protected java.io.File mConfigFile
protected java.io.File mForumLocaleFile
protected java.io.File mUserListFile
protected int mAuthorizationLevel
protected java.lang.String mForumFooter
protected java.lang.String mWelcomeURL
protected java.lang.String mFailedLoginURL
protected java.lang.String mCSSURL
Constructor Detail |
public Forum(java.io.File forumconfigfile) throws java.io.IOException
forumconfigfile
-
java.io.IOException
Method Detail |
public void getPage(int k, java.io.PrintWriter out, User user, java.lang.String servletPath) throws java.io.IOException
k
- out
- user
- servletPath
-
java.io.IOException
public void getLastMessages(int k, java.io.PrintWriter out, User user, java.lang.String servletPath) throws java.io.IOException
k
- out
- user
- servletPath
-
java.io.IOException
public MessageReference addMessage(java.lang.String subjectString, java.lang.String messageString, java.lang.String authorString, java.lang.String emailString, java.lang.String optionalURLString, java.lang.String linkTitleString, User user) throws java.io.IOException
subjectString
- The subject of this messagemessageString
- The actual message itselfoptionalURLString
- A URL that was given along with the messagelinkTitleString
- The title of the linkuser
- The feature to be added to the Message attribute
java.io.IOException
public MessageReference addMessage(Message message) throws java.io.IOException
message
- The feature to be added to the Message attribute
java.io.IOException
public MessageReference addReply(int k, java.lang.String subjectString, java.lang.String messageString, java.lang.String authorString, java.lang.String emailString, java.lang.String optionalURLString, java.lang.String linkTitleString, User user) throws java.io.IOException
k
- The ID of this messagesubjectString
- The subject of this messagemessageString
- The body of this messageauthorString
- The name of the author of this messageemailString
- The email address of the author of this messageoptionalURLString
- The URL of a link that goes at the bottom of the messagelinkTitleString
- The title of the link to be addeduser
- The user posting the message
java.io.IOException
public void showMessage(int k, java.io.PrintWriter out, User user, java.lang.String servletPath) throws java.io.IOException
k
- out
- user
- servletPath
-
java.io.IOException
public void deleteMessage(int k, java.io.PrintWriter out, User user, java.lang.String servletPath) throws java.io.IOException
k
- out
- user
- servletPath
-
java.io.IOException
public void askForConfirmationOnDeletingMessage(int k, java.io.PrintWriter out, User user, java.lang.String servletPath) throws java.io.IOException
k
- out
- user
- servletPath
-
java.io.IOException
public void destroy()
public void showWarningNameInUse(java.lang.String name, java.io.PrintWriter out) throws java.io.IOException
name
- out
-
java.io.IOException
public void showWarningPasswordsDontMatch(java.lang.String name, java.io.PrintWriter out) throws java.io.IOException
name
- out
-
java.io.IOException
public void showWarningAutorizationRequired(java.io.PrintWriter out) throws java.io.IOException
out
-
java.io.IOException
public void showWarningCannotChangeAdmin(java.io.PrintWriter out) throws java.io.IOException
out
-
java.io.IOException
public void displayUserList(java.io.PrintWriter out, java.lang.String servletPath) throws java.io.IOException
out
- servletPath
-
java.io.IOException
public void displayUser(java.lang.String name, java.io.PrintWriter out, java.lang.String servletPath) throws java.io.IOException
name
- out
- servletPath
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |