org.mmbase.applications.mmbob.gui
Class Controller

java.lang.Object
  extended byorg.mmbase.applications.mmbob.gui.Controller

public class Controller
extends Object

Version:
$Id: guiController.java
Author:
Daniel Ockeloen

Constructor Summary
Controller()
          Constructor
 
Method Summary
 String addSignature(String forumid, String sactiveid, String body, String mode, String encoding)
           
 boolean addWordFilter(String forumid, String name, String value, int activeid)
           
 boolean changeForum(String forumid, String name, String language, String description, int activeid)
          Update forum information
 boolean changeForumConfig(String forumid, String loginsystemtype, String loginmodetype, String logoutmodetype, String guestreadmodetype, String guestwritemodetype, String avatarsuploadenabled, String avatarsgalleryenabled, String navigationmethod, String alias, int activeid)
           
 boolean changeForumPostingsOverflowPostArea(String forumid, int activeid, int count)
           
 boolean changeForumPostingsOverflowThreadPage(String forumid, int activeid, int count)
           
 boolean changeForumPostingsPerPage(String forumid, int activeid, int maxpostcount)
           
 boolean changeForumReplyOnEachPage(String forumid, int activeid, String value)
           
 boolean changeForumsConfig(String loginsystemtype, String loginmodetype, String logoutmodetype, String guestreadmodetype, String guestwritemodetype, String avatarsuploadenabled, String avatarsgalleryenabled, String contactinfoenabled, String smileysenabled, String privatemessagesenabled, String postingsperpage)
           
 boolean changeForumSpeedPostTime(String forumid, int activeid, int delay)
           
 boolean changePostArea(String forumid, String postareaid, String name, String description, int activeid)
          Update settings of the given PostArea
 boolean changePostAreaConfig(String forumid, String postareaid, String guestreadmodetype, String guestwritemodetype, String threadstartlevel, int position, int activeid)
           
 String changeSignature(String forumid, String sactiveid, int sigid, String body, String mode, String encoding)
           
 String createPoster(String forumid, String account, String password, String confirmpassword, String firstname, String lastname, String email, String gender, String location)
          create a new poster, creates a account and puts in the users admin system of the forum
 String createPosterNick(String forumid, String account, String password, String confirmpassword, String nick, String firstname, String lastname, String email, String gender, String location)
           
 String createPosterProxy(String forumid, String account, String password, String confirmpassword, String firstname, String lastname, String email, String gender, String location, String proxypassword)
          create a new poster proxy, creates a account and puts in the users admin system of the forum
 boolean disablePoster(String forumid, int disableposterid, int activeid)
          Disable a Poster from a forum
 boolean editPost(String forumid, String postareaid, String postthreadid, int postingid, int activeid, String subject, String body, String imagecontext)
          update a allready existing posting, it will also update the last edit time
 String editPoster(String forumid, int posterid, String firstname, String lastname, String email, String gender, String location, String newpassword, String newconfirmpassword)
          Change values of a Poster
 boolean editPostThread(String forumid, String postareaid, String postthreadid, int activeid, String mood, String state, String type)
          update a allready existing postthread
 String editProfilePoster(String forumid, int posterid, int profileid, String firstname, String lastname, String email, String gender, String location, String newpassword, String newconfirmpassword)
          Change values of a Poster
 boolean enablePoster(String forumid, int enableposterid, int activeid)
          Enable a Poster from a forum
 String filterHTML(String body)
           
 HashMap forumLogin(String forumid, String account, String password)
          get login information for this poster
 List getAdministrators(String forumid)
          Get the administrators of this forum
 String getBirthDateString(String name, String value)
           
 List getBookmarkedThreads(String forumid, String postareaid, int activeid, int pagesize, int page, int overviewpagesize, String baseurl, String cssclass)
           
 String getDefaultAccount()
           
 String getDefaultPassword()
           
 List getFilterWords(String forumid)
           
 String getForumAlias(String key)
           
 HashMap getForumConfig(String id, String sactiveid)
          Provide configuration info on a forum
 String getForumFooterPath(String id)
          Provide the footerpath for the given forum
 String getForumFromEmailAddress(String id)
          Provide the fromaddress for the given forum
 String getForumHeaderPath(String id)
          Provide the headerpath for the given forum
 HashMap getForumInfo(String id, String sactiveid)
          Provide general info and statistics on a forum Remark: atm it also returns configuration settings, this will change in the near future see getForumConfiguration for more info.
 int getForumPostingsOverflowPostArea(String forumid, int activeid)
           
 int getForumPostingsOverflowThreadPage(String forumid, int activeid)
           
 int getForumPostingsPerPage(String forumid, int activeid)
           
 boolean getForumReplyOnEachPage(String forumid, int activeid)
           
static List getForums(String mode)
          Get list of all forums
 HashMap getForumsConfig()
           
 int getForumSpeedPostTime(String forumid, int activeid)
           
 String getGuiEdit(String id, String key)
           
 HashMap getMailboxInfo(String id, int posterid, String mailboxid)
          Provide info a mailbox
 List getModerators(String forumid, String postareaid)
          Get the moderators of this postarea / forum
 List getNonAdministrators(String forumid, String searchkey)
          List all the posters not allready a administrator for this forum
 List getNonModerators(String forumid, String postareaid, String searchkey)
          List all the posters not allready a moderator (so possible moderators) for this postarea
 HashMap getPostAreaConfig(String id, String sactiveid, String postareaid)
          Provide configuration info on a forum
 HashMap getPostAreaInfo(String forumid, String postareaid, int activeid, int page, int pagesize, String baseurl, String cssclass)
          Provide general info on this postarea within the given forum
 List getPostAreas(String id, String sactiveid, String mode)
          Get the PostAreas of the given forum
 HashMap getPosterInfo(String id, String posterid)
          Provide info on a poster forum
 HashMap getPosterPassword(String forumid, String account)
           
 List getPosters(String forumid, String searchkey, int page, int pagesize)
           
 List getPostersOnline(String forumid)
          Get the posters that are now online in this forum
 HashMap getPosting(String forumid, String postareaid, String postthreadid, String postingid, int activeid, String imagecontext)
          Get a specific posting, for use in remove post where the posting to be deleted is displayed.
 String getPostingPageNumber(String forumid, String postareaid, String postthreadid, String postingid, int pagesize)
           
 List getPostings(String forumid, String postareaid, String postthreadid, int activeid, int page, int pagesize, String imagecontext)
          List the postings within a postthread
 HashMap getPostThreadInfo(String forumid, String postareaid, String postthreadid, int pagesize)
           
 HashMap getPostThreadNavigation(String forumid, String postareaid, String postthreadid, int posterid, int page, int pagesize, String baseurl, String cssclass)
          Generate a navigation line (html) for a postthread
 List getPostThreads(String forumid, String postareaid, int activeid, int pagesize, int page, int overviewpagesize, String baseurl, String cssclass)
          List all the postthreads within a postarea
 List getProfileValues(String forumid, int posterid, int guipos)
           
 HashMap getQuotaInfo(String id, int posterid, int barsize)
          Provide quota info on a poster
 List getRemoteHosts(String forumid, String sactiveid)
           
 List getSignatures(String forumid, String sactiveid)
           
 HashMap getSingleSignature(String forumid, String sactiveid)
           
 List getTreePostAreas(String id, String sactiveid, String tree)
          Get the PostAreas of the given forum
 boolean movePostThread(String forumid, String postareaid, String postthreadid, int activeid, String newpostareaid)
          move a existing postthread
 boolean newAdministrator(String forumid, String sactiveid, String sadministratorid)
          Add a moderator to a postarea within a forum
 Node newFolder(String forumid, int activeid, String newfolder)
           
 Map newForum(String name, String language, String description, String account, String password, String nick, String email)
          Add a new forum to the MMBase and create / attach a administrator to it
 boolean newModerator(String forumid, String postareaid, String sactiveid, String smoderatorid)
          Add a moderator to a postarea within a forum
 HashMap newPost(String forumid, String postareaid, String subject, String poster, String body, String mood)
          add a new post (postthread+1 posting) in a postarea, use postReply for all following postings in the postthread
 HashMap newPostArea(String forumid, String name, String description, int activeid)
          Add a new postarea to the given forum
 HashMap newPrivateMessage(String forumid, String subject, String poster, String to, String body)
          send a private message to a other poster
 HashMap postReply(String forumid, String postareaid, String postthreadid, String subject, String poster, String body)
          Post a reply on the given postthread
 boolean profileUpdated(String forumid, int posterid)
          Profile of a poster changed signal
 boolean removeAdministrator(String forumid, int activeid, int administratorid)
          Remove a moderator from a postarea (poster is not removed just status moderator is revoked)
 boolean removeFolder(String forumid, int activeid, String foldername)
           
 boolean removeForum(String sforumid)
          Remove a forum from this MMBase (including postareas, postareas, postthreads, postings and posters).
 boolean removeModerator(String forumid, String postareaid, int activeid, int moderatorid)
          Remove a moderator from a postarea (poster is not removed just status moderator is revoked)
 boolean removePost(String forumid, String postareaid, String postthreadid, int postingid, int activeid)
          Remove a Post from a PostArea
 boolean removePostArea(String forumid, String postareaid)
          Remove a postarea (including postthreads and postings) from a forum
 boolean removePoster(String forumid, int removeposterid, int activeid)
          Remove a Poster from a forum
 boolean removePostThread(String forumid, String postareaid, String postthreadid)
          Removes a whole thread (including postings) from a postarea
 boolean removeWordFilter(String forumid, String name, int activeid)
           
 List searchPostings(String forumid, String searchareaid, String searchpostthreadid, String searchkey, int posterid, int page, int pagesize)
           
 boolean setBookmarkedChange(String forumid, String postthreadid, int posterid, String state)
           
 boolean setEmailOnChange(String forumid, String postthreadid, int posterid, String state)
           
 HashMap setProfileValue(String forumid, int activeid, String name, String value)
           
 boolean setRemoteAddress(String forumid, int posterid, String host)
           
 String setSingleSignature(String forumid, String sactiveid, String body, String encoding)
           
 boolean signalMailboxChange(String id, int posterid, String mailboxid)
          signal mailbox change
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Constructor

Method Detail

getPostAreas

public List getPostAreas(String id,
                         String sactiveid,
                         String mode)
Get the PostAreas of the given forum

Parameters:
id - MMBase node number of the forum
sactiveid - MMBase node number of the active poster
Returns:
List of postareas that matches the given params

getTreePostAreas

public List getTreePostAreas(String id,
                             String sactiveid,
                             String tree)
Get the PostAreas of the given forum

Parameters:
id - MMBase node number of the forum
sactiveid - MMBase node number of the active poster
Returns:
List of postareas that matches the given params

getForums

public static List getForums(String mode)
Get list of all forums

Returns:
List of (mapl) objects representing the available forums

getPostThreads

public List getPostThreads(String forumid,
                           String postareaid,
                           int activeid,
                           int pagesize,
                           int page,
                           int overviewpagesize,
                           String baseurl,
                           String cssclass)
List all the postthreads within a postarea

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
activeid - active posterid
pagesize - Number of pages per thread
page - Page number of the threads we want
overviewpagesize - The number of threads per page
baseurl - Base url for links in the navigation html
cssclass - Stylesheet name for the url links
Returns:
List of (map) representing the postthreads within the postarea

getBookmarkedThreads

public List getBookmarkedThreads(String forumid,
                                 String postareaid,
                                 int activeid,
                                 int pagesize,
                                 int page,
                                 int overviewpagesize,
                                 String baseurl,
                                 String cssclass)

getPostings

public List getPostings(String forumid,
                        String postareaid,
                        String postthreadid,
                        int activeid,
                        int page,
                        int pagesize,
                        String imagecontext)
List the postings within a postthread

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of the postthread
activeid - MMBase node number of current Poster (on the page)
page - Page number of the threads we want
pagesize - The number of postings per page
imagecontext - The context where to find the images (eg smilies)
Returns:
List of (mp) representing the postings within the given postthread

getPosting

public HashMap getPosting(String forumid,
                          String postareaid,
                          String postthreadid,
                          String postingid,
                          int activeid,
                          String imagecontext)
Get a specific posting, for use in remove post where the posting to be deleted is displayed.

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of the postthread
postingid - MMBase node number of the posting
activeid - MMBase node number of current Poster (on the page)
imagecontext - The context where to find the images (eg smilies)
Returns:
List of (map) representing the postings within the given postthread

getPostingPageNumber

public String getPostingPageNumber(String forumid,
                                   String postareaid,
                                   String postthreadid,
                                   String postingid,
                                   int pagesize)

getModerators

public List getModerators(String forumid,
                          String postareaid)
Get the moderators of this postarea / forum

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
Returns:
List of (map) representing the moderators of this forum / postarea. contains id, account, firstname, lastname of the moderator

getAdministrators

public List getAdministrators(String forumid)
Get the administrators of this forum

Parameters:
forumid - MMBase node number of the forum
Returns:
List of (map) representing the administrators of this forum contains id, account, firstname, lastname of the administrator

getPostersOnline

public List getPostersOnline(String forumid)
Get the posters that are now online in this forum

Parameters:
forumid - MMBase node number of the forum
Returns:
List of (map) representing the online posters for the given forum

getPosters

public List getPosters(String forumid,
                       String searchkey,
                       int page,
                       int pagesize)

searchPostings

public List searchPostings(String forumid,
                           String searchareaid,
                           String searchpostthreadid,
                           String searchkey,
                           int posterid,
                           int page,
                           int pagesize)

getNonModerators

public List getNonModerators(String forumid,
                             String postareaid,
                             String searchkey)
List all the posters not allready a moderator (so possible moderators) for this postarea

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the new postarea
Returns:
List of (map) representing all posters of the given postarea which are no moderators

getNonAdministrators

public List getNonAdministrators(String forumid,
                                 String searchkey)
List all the posters not allready a administrator for this forum

Parameters:
forumid - MMBase node number of the forum
Returns:
List of (map) representing all posters of the given postarea which are no moderators

getForumInfo

public HashMap getForumInfo(String id,
                            String sactiveid)
Provide general info and statistics on a forum Remark: atm it also returns configuration settings, this will change in the near future see getForumConfiguration for more info.

Parameters:
id - MMBase node number of the forum
sactiveid - Id for the current (on the page) poster for admin/onwership checks
Returns:
(map) representing info for the given forum

getForumAlias

public String getForumAlias(String key)

getForumHeaderPath

public String getForumHeaderPath(String id)
Provide the headerpath for the given forum

Parameters:
id - MMBase node number of the forum
Returns:
String representing the headerpath of the given forum

getForumFooterPath

public String getForumFooterPath(String id)
Provide the footerpath for the given forum

Parameters:
id - MMBase node number of the forum
Returns:
String representing the footerpath of the given forum

getForumFromEmailAddress

public String getForumFromEmailAddress(String id)
Provide the fromaddress for the given forum

Parameters:
id - MMBase node number of the forum
Returns:
String representing the from-emailaddress of the given forum

getForumConfig

public HashMap getForumConfig(String id,
                              String sactiveid)
Provide configuration info on a forum

Parameters:
id - MMBase node number of the forum
sactiveid - Id for the current (on the page) poster for admin/onwership checks
Returns:
(map) representing the configuration of the given forum

getPostAreaConfig

public HashMap getPostAreaConfig(String id,
                                 String sactiveid,
                                 String postareaid)
Provide configuration info on a forum

Parameters:
id - MMBase node number of the forum
sactiveid - Id for the current (on the page) poster for admin/onwership checks
Returns:
(map) representing the configuration of the given forum

getForumsConfig

public HashMap getForumsConfig()

getPosterInfo

public HashMap getPosterInfo(String id,
                             String posterid)
Provide info on a poster forum

Parameters:
id - MMBase node number of the forum
posterid - Id for poster we want (string/account field)
Returns:
(map) representing info for the given poster

getQuotaInfo

public HashMap getQuotaInfo(String id,
                            int posterid,
                            int barsize)
Provide quota info on a poster

Parameters:
id - MMBase node number of the forum
posterid - Id for poster we want (string/account field)
Returns:
(map) representing posters quota info

getMailboxInfo

public HashMap getMailboxInfo(String id,
                              int posterid,
                              String mailboxid)
Provide info a mailbox

Parameters:
id - MMBase node number of the forum
posterid - Id for poster we want (string/account field)
mailboxid - Id for mailbox we want
Returns:
(map) representing info for the given poster

signalMailboxChange

public boolean signalMailboxChange(String id,
                                   int posterid,
                                   String mailboxid)
signal mailbox change

Parameters:
id - MMBase node number of the forum
posterid - Id for poster we want (string/account field)
mailboxid - Id for mailbox we want
Returns:
signal given

editPoster

public String editPoster(String forumid,
                         int posterid,
                         String firstname,
                         String lastname,
                         String email,
                         String gender,
                         String location,
                         String newpassword,
                         String newconfirmpassword)
Change values of a Poster

Parameters:
forumid - MMBase node number of the forum
posterid - MMBase node number of the poster
firstname - New Firstname of the poster
lastname - New lastname of the poster
email - New email address of the poster
gender - New gender of the poster
location - ew location of the poster
Returns:
Feedback regarding the success of edit action

editProfilePoster

public String editProfilePoster(String forumid,
                                int posterid,
                                int profileid,
                                String firstname,
                                String lastname,
                                String email,
                                String gender,
                                String location,
                                String newpassword,
                                String newconfirmpassword)
Change values of a Poster

Parameters:
forumid - MMBase node number of the forum
posterid - MMBase node number of the poster
firstname - New Firstname of the poster
lastname - New lastname of the poster
email - New email address of the poster
gender - New gender of the poster
location - ew location of the poster
Returns:
Feedback regarding the success of edit action

createPoster

public String createPoster(String forumid,
                           String account,
                           String password,
                           String confirmpassword,
                           String firstname,
                           String lastname,
                           String email,
                           String gender,
                           String location)
create a new poster, creates a account and puts in the users admin system of the forum

Parameters:
forumid - MMBase node number of the forum
account - account name of the new poster
password - Password for the new poster
firstname - Firstname of the new poster
lastname - Lastname of the new poster
email - Email address of the new poster
gender - Gender of the new poster
location - Location of the new poster
Returns:
Feedback from the create command (accountused for example)

createPosterNick

public String createPosterNick(String forumid,
                               String account,
                               String password,
                               String confirmpassword,
                               String nick,
                               String firstname,
                               String lastname,
                               String email,
                               String gender,
                               String location)

createPosterProxy

public String createPosterProxy(String forumid,
                                String account,
                                String password,
                                String confirmpassword,
                                String firstname,
                                String lastname,
                                String email,
                                String gender,
                                String location,
                                String proxypassword)
create a new poster proxy, creates a account and puts in the users admin system of the forum

Parameters:
forumid - MMBase node number of the forum
account - account name of the new poster
password - Password for the new poster
firstname - Firstname of the new poster
lastname - Lastname of the new poster
email - Email address of the new poster
gender - Gender of the new poster
location - Location of the new poster
Returns:
Feedback from the create command (accountused for example)

getPostAreaInfo

public HashMap getPostAreaInfo(String forumid,
                               String postareaid,
                               int activeid,
                               int page,
                               int pagesize,
                               String baseurl,
                               String cssclass)
Provide general info on this postarea within the given forum

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
activeid - MMBase node number of current Poster (on the page)
page - Current page number
pagesize - Number of postings per page
baseurl - Base url for links in the navigation html
cssclass - stylesheet name for the url links
Returns:
(map) representing info for the given postarea

getPostThreadInfo

public HashMap getPostThreadInfo(String forumid,
                                 String postareaid,
                                 String postthreadid,
                                 int pagesize)

removePostArea

public boolean removePostArea(String forumid,
                              String postareaid)
Remove a postarea (including postthreads and postings) from a forum

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
Returns:
Feedback regarding this remove action

profileUpdated

public boolean profileUpdated(String forumid,
                              int posterid)
Profile of a poster changed signal

Parameters:
forumid - MMBase node number of the forum
posterid - MMBase node number of the poster that has changed
Returns:
feedback regarding this action

removePostThread

public boolean removePostThread(String forumid,
                                String postareaid,
                                String postthreadid)
Removes a whole thread (including postings) from a postarea

Parameters:
forumid - MMBase node number of the forum
postareaid - MMbase node number of the postarea
postthreadid - MMBase node number of the postthread
Returns:
feedback regarding this remove action

getPostThreadNavigation

public HashMap getPostThreadNavigation(String forumid,
                                       String postareaid,
                                       String postthreadid,
                                       int posterid,
                                       int page,
                                       int pagesize,
                                       String baseurl,
                                       String cssclass)
Generate a navigation line (html) for a postthread

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of the postthread
page - Current page number
pagesize - Number of postings per page
baseurl - Base url for links in the navigation html
cssclass - stylesheet name for the url links
Returns:
(map) containing navline, lastpage, pagecount

postReply

public HashMap postReply(String forumid,
                         String postareaid,
                         String postthreadid,
                         String subject,
                         String poster,
                         String body)
Post a reply on the given postthread

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the forum
postthreadid - MMBase node number of the postthread
subject - Subject of the reply (normally same as the postthread sibject)
poster - Posterid of the reply
body - Body of the reply
Returns:
Feedback regarding this post action

newPost

public HashMap newPost(String forumid,
                       String postareaid,
                       String subject,
                       String poster,
                       String body,
                       String mood)
add a new post (postthread+1 posting) in a postarea, use postReply for all following postings in the postthread

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
subject - Subject of the new post
poster - Posterid to be attached to the postthread as its creator
body - Body of the new post
Returns:
(map) containing the postthreadid of the newly created post

newPrivateMessage

public HashMap newPrivateMessage(String forumid,
                                 String subject,
                                 String poster,
                                 String to,
                                 String body)
send a private message to a other poster

Parameters:
forumid - MMBase node number of the forum
subject - Subject of the new message
poster - Poster who is sending the message
to - Poster to which to send the message
body - Body of the new post
Returns:
(map) containing privatemessageid of the newly created private message

newFolder

public Node newFolder(String forumid,
                      int activeid,
                      String newfolder)
Parameters:
forumid -
activeid -
newfolder -

removeFolder

public boolean removeFolder(String forumid,
                            int activeid,
                            String foldername)
Parameters:
forumid -
activeid -
foldername -

newModerator

public boolean newModerator(String forumid,
                            String postareaid,
                            String sactiveid,
                            String smoderatorid)
Add a moderator to a postarea within a forum

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
sactiveid - MMBase node number of current Poster (on the page)
smoderatorid - MMBase node number of moderator you want to add
Returns:
Feedback regarding the success of this action

newAdministrator

public boolean newAdministrator(String forumid,
                                String sactiveid,
                                String sadministratorid)
Add a moderator to a postarea within a forum

Parameters:
forumid - MMBase node number of the forum
sactiveid - MMBase node number of current Poster (on the page)
sadministratorid - MMBase node number of moderator you want to add
Returns:
Feedback regarding the success of this action

removeModerator

public boolean removeModerator(String forumid,
                               String postareaid,
                               int activeid,
                               int moderatorid)
Remove a moderator from a postarea (poster is not removed just status moderator is revoked)

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
activeid - MMBase node number of current Poster (on the page)
moderatorid - MMBase node number of moderator you want to remove
Returns:
Feedback regarding the success of this action

removeAdministrator

public boolean removeAdministrator(String forumid,
                                   int activeid,
                                   int administratorid)
Remove a moderator from a postarea (poster is not removed just status moderator is revoked)

Parameters:
forumid - MMBase node number of the forum
activeid - MMBase node number of current Poster (on the page)
administratorid - MMBase node number of moderator you want to remove
Returns:
Feedback regarding the success of this action

editPost

public boolean editPost(String forumid,
                        String postareaid,
                        String postthreadid,
                        int postingid,
                        int activeid,
                        String subject,
                        String body,
                        String imagecontext)
update a allready existing posting, it will also update the last edit time

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of the postthread
postingid - MMBase node number of the postting we want to edit
activeid - MMBase node number of current Poster (on the page)
subject - New subject of the post
body - new body of the post
Returns:
Feedback regarding the success of this action

editPostThread

public boolean editPostThread(String forumid,
                              String postareaid,
                              String postthreadid,
                              int activeid,
                              String mood,
                              String state,
                              String type)
update a allready existing postthread

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of the postthread
activeid - MMBase node number of current Poster (on the page)
mood - New mood
state - New state
type - New type
Returns:
Feedback regarding the success of this action

movePostThread

public boolean movePostThread(String forumid,
                              String postareaid,
                              String postthreadid,
                              int activeid,
                              String newpostareaid)
move a existing postthread

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of the postthread
activeid - MMBase node number of current Poster (on the page)
newpostareaid - New mood
Returns:
Feedback regarding the success of this action

removePost

public boolean removePost(String forumid,
                          String postareaid,
                          String postthreadid,
                          int postingid,
                          int activeid)
Remove a Post from a PostArea

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
postthreadid - MMBase node number of postthread
postingid - MMBase node number of the posting
activeid - MMBase node number of the poster
Returns:
Feedback regarding the success of this action

removePoster

public boolean removePoster(String forumid,
                            int removeposterid,
                            int activeid)
Remove a Poster from a forum

Parameters:
forumid - MMBase node number of the forum
removeposterid - MMBase node number of the poster to be removed
activeid - MMBase node number of the poster
Returns:
Feedback regarding the success of this action

disablePoster

public boolean disablePoster(String forumid,
                             int disableposterid,
                             int activeid)
Disable a Poster from a forum

Parameters:
forumid - MMBase node number of the forum
disableposterid - MMBase node number of the poster to be disabled
activeid - MMBase node number of the poster
Returns:
Feedback regarding the success of this action

enablePoster

public boolean enablePoster(String forumid,
                            int enableposterid,
                            int activeid)
Enable a Poster from a forum

Parameters:
forumid - MMBase node number of the forum
enableposterid - MMBase node number of the poster to be disabled
activeid - MMBase node number of the poster
Returns:
Feedback regarding the success of this action

newPostArea

public HashMap newPostArea(String forumid,
                           String name,
                           String description,
                           int activeid)
Add a new postarea to the given forum

Parameters:
forumid - MMBase node number of the forum
name - Name of the new post area
description - Description of the new post area
Returns:
(map) containing the postareaid of the newly created postarea

newForum

public Map newForum(String name,
                    String language,
                    String description,
                    String account,
                    String password,
                    String nick,
                    String email)
Add a new forum to the MMBase and create / attach a administrator to it

Parameters:
name - Name of the new forum
language - Language code of the new forum
description - Description of the new forum
account - default/first admin account name for this new forum
password - default/first admin password name for this new forum
Returns:
(map) containing the forumid of the newly created forum

changeForum

public boolean changeForum(String forumid,
                           String name,
                           String language,
                           String description,
                           int activeid)
Update forum information

Parameters:
forumid - MMBase node number of the forum
name - New name for this forum
language - New language of this forum
description - New description of this forum
Returns:
Feedback regarding the success of this action

changeForumPostingsPerPage

public boolean changeForumPostingsPerPage(String forumid,
                                          int activeid,
                                          int maxpostcount)

changeForumReplyOnEachPage

public boolean changeForumReplyOnEachPage(String forumid,
                                          int activeid,
                                          String value)

changeForumSpeedPostTime

public boolean changeForumSpeedPostTime(String forumid,
                                        int activeid,
                                        int delay)

getForumSpeedPostTime

public int getForumSpeedPostTime(String forumid,
                                 int activeid)

changeForumPostingsOverflowPostArea

public boolean changeForumPostingsOverflowPostArea(String forumid,
                                                   int activeid,
                                                   int count)

getForumPostingsOverflowPostArea

public int getForumPostingsOverflowPostArea(String forumid,
                                            int activeid)

getForumPostingsPerPage

public int getForumPostingsPerPage(String forumid,
                                   int activeid)

changeForumPostingsOverflowThreadPage

public boolean changeForumPostingsOverflowThreadPage(String forumid,
                                                     int activeid,
                                                     int count)

getForumPostingsOverflowThreadPage

public int getForumPostingsOverflowThreadPage(String forumid,
                                              int activeid)

getForumReplyOnEachPage

public boolean getForumReplyOnEachPage(String forumid,
                                       int activeid)

addWordFilter

public boolean addWordFilter(String forumid,
                             String name,
                             String value,
                             int activeid)

removeWordFilter

public boolean removeWordFilter(String forumid,
                                String name,
                                int activeid)

changeForumConfig

public boolean changeForumConfig(String forumid,
                                 String loginsystemtype,
                                 String loginmodetype,
                                 String logoutmodetype,
                                 String guestreadmodetype,
                                 String guestwritemodetype,
                                 String avatarsuploadenabled,
                                 String avatarsgalleryenabled,
                                 String navigationmethod,
                                 String alias,
                                 int activeid)

changePostAreaConfig

public boolean changePostAreaConfig(String forumid,
                                    String postareaid,
                                    String guestreadmodetype,
                                    String guestwritemodetype,
                                    String threadstartlevel,
                                    int position,
                                    int activeid)

changeForumsConfig

public boolean changeForumsConfig(String loginsystemtype,
                                  String loginmodetype,
                                  String logoutmodetype,
                                  String guestreadmodetype,
                                  String guestwritemodetype,
                                  String avatarsuploadenabled,
                                  String avatarsgalleryenabled,
                                  String contactinfoenabled,
                                  String smileysenabled,
                                  String privatemessagesenabled,
                                  String postingsperpage)

changePostArea

public boolean changePostArea(String forumid,
                              String postareaid,
                              String name,
                              String description,
                              int activeid)
Update settings of the given PostArea

Parameters:
forumid - MMBase node number of the forum
postareaid - MMBase node number of the postarea
name - Name of the postarea
description - Description of the postarea
Returns:
Feedback regarding the success of this action

removeForum

public boolean removeForum(String sforumid)
Remove a forum from this MMBase (including postareas, postareas, postthreads, postings and posters).

Parameters:
sforumid - MMBase node number of the forum you want to remove
Returns:
Feedback regarding the success of this action

setRemoteAddress

public boolean setRemoteAddress(String forumid,
                                int posterid,
                                String host)

forumLogin

public HashMap forumLogin(String forumid,
                          String account,
                          String password)
get login information for this poster


getPosterPassword

public HashMap getPosterPassword(String forumid,
                                 String account)

getDefaultPassword

public String getDefaultPassword()

getDefaultAccount

public String getDefaultAccount()

getSignatures

public List getSignatures(String forumid,
                          String sactiveid)

getRemoteHosts

public List getRemoteHosts(String forumid,
                           String sactiveid)

changeSignature

public String changeSignature(String forumid,
                              String sactiveid,
                              int sigid,
                              String body,
                              String mode,
                              String encoding)

setSingleSignature

public String setSingleSignature(String forumid,
                                 String sactiveid,
                                 String body,
                                 String encoding)

getSingleSignature

public HashMap getSingleSignature(String forumid,
                                  String sactiveid)

addSignature

public String addSignature(String forumid,
                           String sactiveid,
                           String body,
                           String mode,
                           String encoding)

setBookmarkedChange

public boolean setBookmarkedChange(String forumid,
                                   String postthreadid,
                                   int posterid,
                                   String state)

setEmailOnChange

public boolean setEmailOnChange(String forumid,
                                String postthreadid,
                                int posterid,
                                String state)

filterHTML

public String filterHTML(String body)

getProfileValues

public List getProfileValues(String forumid,
                             int posterid,
                             int guipos)

getFilterWords

public List getFilterWords(String forumid)

setProfileValue

public HashMap setProfileValue(String forumid,
                               int activeid,
                               String name,
                               String value)

getBirthDateString

public String getBirthDateString(String name,
                                 String value)

getGuiEdit

public String getGuiEdit(String id,
                         String key)


MMBase build 1.8.1.20060716