public class Controller extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) CloudContext |
context |
(package private) NodeManager |
manager |
| Constructor and Description |
|---|
Controller()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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) |
Map |
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) |
Map |
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
|
Map |
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
|
Map |
getForumsConfig() |
int |
getForumSpeedPostTime(String forumid,
int activeid) |
String |
getGuiEdit(String id,
String key) |
Map |
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
|
Map |
getPostAreaConfig(String id,
String sactiveid,
String postareaid)
Provide configuration info on a forum
|
Map |
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
|
Map |
getPosterInfo(String id,
String posterid)
Provide info on a poster forum
|
Map |
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
|
Map |
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
|
Map |
getPostThreadInfo(String forumid,
String postareaid,
String postthreadid,
int pagesize) |
Map |
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) |
Map |
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) |
Map |
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<String,Object> |
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
|
Map<String,Object> |
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
|
Map |
newPostArea(String forumid,
String name,
String description,
int activeid)
Add a new postarea to the given forum
|
Map |
newPrivateMessage(String forumid,
String subject,
String poster,
String to,
String body)
send a private message to a other poster
|
Map |
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) |
Map |
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
|
NodeManager manager
CloudContext context
public List getPostAreas(String id, String sactiveid, String mode)
id - MMBase node number of the forumsactiveid - MMBase node number of the active posterpublic List getTreePostAreas(String id, String sactiveid, String tree)
id - MMBase node number of the forumsactiveid - MMBase node number of the active posterpublic static List getForums(String mode)
public List getPostThreads(String forumid, String postareaid, int activeid, int pagesize, int page, int overviewpagesize, String baseurl, String cssclass)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareaactiveid - active posteridpagesize - Number of pages per threadpage - Page number of the threads we wantoverviewpagesize - The number of threads per pagebaseurl - Base url for links in the navigation htmlcssclass - Stylesheet name for the url linkspublic List getBookmarkedThreads(String forumid, String postareaid, int activeid, int pagesize, int page, int overviewpagesize, String baseurl, String cssclass)
public List getPostings(String forumid, String postareaid, String postthreadid, int activeid, int page, int pagesize, String imagecontext)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of the postthreadactiveid - MMBase node number of current Poster (on the page)page - Page number of the threads we wantpagesize - The number of postings per pageimagecontext - The context where to find the images (eg smilies)public Map getPosting(String forumid, String postareaid, String postthreadid, String postingid, int activeid, String imagecontext)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of the postthreadpostingid - MMBase node number of the postingactiveid - MMBase node number of current Poster (on the page)imagecontext - The context where to find the images (eg smilies)public String getPostingPageNumber(String forumid, String postareaid, String postthreadid, String postingid, int pagesize)
public List getModerators(String forumid, String postareaid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapublic List getAdministrators(String forumid)
forumid - MMBase node number of the forumpublic List getPostersOnline(String forumid)
forumid - MMBase node number of the forumpublic List searchPostings(String forumid, String searchareaid, String searchpostthreadid, String searchkey, int posterid, int page, int pagesize)
public List getNonModerators(String forumid, String postareaid, String searchkey)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the new postareapublic List getNonAdministrators(String forumid, String searchkey)
forumid - MMBase node number of the forumpublic Map getForumInfo(String id, String sactiveid)
id - MMBase node number of the forumsactiveid - Id for the current (on the page) poster for admin/onwership checkspublic String getForumHeaderPath(String id)
id - MMBase node number of the forumpublic String getForumFooterPath(String id)
id - MMBase node number of the forumpublic String getForumFromEmailAddress(String id)
id - MMBase node number of the forumpublic Map getForumConfig(String id, String sactiveid)
id - MMBase node number of the forumsactiveid - Id for the current (on the page) poster for admin/onwership checkspublic Map getPostAreaConfig(String id, String sactiveid, String postareaid)
id - MMBase node number of the forumsactiveid - Id for the current (on the page) poster for admin/onwership checkspublic Map getForumsConfig()
public Map getPosterInfo(String id, String posterid)
id - MMBase node number of the forumposterid - Id for poster we want (string/account field)public Map getQuotaInfo(String id, int posterid, int barsize)
id - MMBase node number of the forumposterid - Id for poster we want (string/account field)public Map getMailboxInfo(String id, int posterid, String mailboxid)
id - MMBase node number of the forumposterid - Id for poster we want (string/account field)mailboxid - Id for mailbox we wantpublic boolean signalMailboxChange(String id, int posterid, String mailboxid)
id - MMBase node number of the forumposterid - Id for poster we want (string/account field)mailboxid - Id for mailbox we wantpublic String editPoster(String forumid, int posterid, String firstname, String lastname, String email, String gender, String location, String newpassword, String newconfirmpassword)
forumid - MMBase node number of the forumposterid - MMBase node number of the posterfirstname - New Firstname of the posterlastname - New lastname of the posteremail - New email address of the postergender - New gender of the posterlocation - ew location of the posterpublic String editProfilePoster(String forumid, int posterid, int profileid, String firstname, String lastname, String email, String gender, String location, String newpassword, String newconfirmpassword)
forumid - MMBase node number of the forumposterid - MMBase node number of the posterfirstname - New Firstname of the posterlastname - New lastname of the posteremail - New email address of the postergender - New gender of the posterlocation - ew location of the posterpublic String createPoster(String forumid, String account, String password, String confirmpassword, String firstname, String lastname, String email, String gender, String location)
forumid - MMBase node number of the forumaccount - account name of the new posterpassword - Password for the new posterfirstname - Firstname of the new posterlastname - Lastname of the new posteremail - Email address of the new postergender - Gender of the new posterlocation - Location of the new posterpublic String createPosterNick(String forumid, String account, String password, String confirmpassword, String nick, String firstname, String lastname, String email, String gender, String location)
public String createPosterProxy(String forumid, String account, String password, String confirmpassword, String firstname, String lastname, String email, String gender, String location, String proxypassword)
forumid - MMBase node number of the forumaccount - account name of the new posterpassword - Password for the new posterfirstname - Firstname of the new posterlastname - Lastname of the new posteremail - Email address of the new postergender - Gender of the new posterlocation - Location of the new posterpublic Map getPostAreaInfo(String forumid, String postareaid, int activeid, int page, int pagesize, String baseurl, String cssclass)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareaactiveid - MMBase node number of current Poster (on the page)page - Current page numberpagesize - Number of postings per pagebaseurl - Base url for links in the navigation htmlcssclass - stylesheet name for the url linkspublic Map getPostThreadInfo(String forumid, String postareaid, String postthreadid, int pagesize)
public boolean removePostArea(String forumid, String postareaid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapublic boolean profileUpdated(String forumid, int posterid)
forumid - MMBase node number of the forumposterid - MMBase node number of the poster that has changedpublic boolean removePostThread(String forumid, String postareaid, String postthreadid)
forumid - MMBase node number of the forumpostareaid - MMbase node number of the postareapostthreadid - MMBase node number of the postthreadpublic Map getPostThreadNavigation(String forumid, String postareaid, String postthreadid, int posterid, int page, int pagesize, String baseurl, String cssclass)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of the postthreadpage - Current page numberpagesize - Number of postings per pagebaseurl - Base url for links in the navigation htmlcssclass - stylesheet name for the url linkspublic Map postReply(String forumid, String postareaid, String postthreadid, String subject, String poster, String body)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the forumpostthreadid - MMBase node number of the postthreadsubject - Subject of the reply (normally same as the postthread sibject)poster - Posterid of the replybody - Body of the replypublic Map<String,Object> newPost(String forumid, String postareaid, String subject, String poster, String body, String mood)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareasubject - Subject of the new postposter - Posterid to be attached to the postthread as its creatorbody - Body of the new postpublic Map newPrivateMessage(String forumid, String subject, String poster, String to, String body)
forumid - MMBase node number of the forumsubject - Subject of the new messageposter - Poster who is sending the messageto - Poster to which to send the messagebody - Body of the new postpublic Node newFolder(String forumid, int activeid, String newfolder)
forumid - activeid - newfolder - public boolean removeFolder(String forumid, int activeid, String foldername)
forumid - activeid - foldername - public boolean newModerator(String forumid, String postareaid, String sactiveid, String smoderatorid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareasactiveid - MMBase node number of current Poster (on the page)smoderatorid - MMBase node number of moderator you want to addpublic boolean newAdministrator(String forumid, String sactiveid, String sadministratorid)
forumid - MMBase node number of the forumsactiveid - MMBase node number of current Poster (on the page)sadministratorid - MMBase node number of moderator you want to addpublic boolean removeModerator(String forumid, String postareaid, int activeid, int moderatorid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareaactiveid - MMBase node number of current Poster (on the page)moderatorid - MMBase node number of moderator you want to removepublic boolean removeAdministrator(String forumid, int activeid, int administratorid)
forumid - MMBase node number of the forumactiveid - MMBase node number of current Poster (on the page)administratorid - MMBase node number of moderator you want to removepublic boolean editPost(String forumid, String postareaid, String postthreadid, int postingid, int activeid, String subject, String body, String imagecontext)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of the postthreadpostingid - MMBase node number of the postting we want to editactiveid - MMBase node number of current Poster (on the page)subject - New subject of the postbody - new body of the postpublic boolean editPostThread(String forumid, String postareaid, String postthreadid, int activeid, String mood, String state, String type)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of the postthreadactiveid - MMBase node number of current Poster (on the page)mood - New moodstate - New statetype - New typepublic boolean movePostThread(String forumid, String postareaid, String postthreadid, int activeid, String newpostareaid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of the postthreadactiveid - MMBase node number of current Poster (on the page)newpostareaid - New moodpublic boolean removePost(String forumid, String postareaid, String postthreadid, int postingid, int activeid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareapostthreadid - MMBase node number of postthreadpostingid - MMBase node number of the postingactiveid - MMBase node number of the posterpublic boolean removePoster(String forumid, int removeposterid, int activeid)
forumid - MMBase node number of the forumremoveposterid - MMBase node number of the poster to be removedactiveid - MMBase node number of the posterpublic boolean disablePoster(String forumid, int disableposterid, int activeid)
forumid - MMBase node number of the forumdisableposterid - MMBase node number of the poster to be disabledactiveid - MMBase node number of the posterpublic boolean enablePoster(String forumid, int enableposterid, int activeid)
forumid - MMBase node number of the forumenableposterid - MMBase node number of the poster to be disabledactiveid - MMBase node number of the posterpublic Map newPostArea(String forumid, String name, String description, int activeid)
forumid - MMBase node number of the forumname - Name of the new post areadescription - Description of the new post areapublic Map<String,Object> newForum(String name, String language, String description, String account, String password, String nick, String email)
name - Name of the new forumlanguage - Language code of the new forumdescription - Description of the new forumaccount - default/first admin account name for this new forumpassword - default/first admin password name for this new forumpublic boolean changeForum(String forumid, String name, String language, String description, int activeid)
forumid - MMBase node number of the forumname - New name for this forumlanguage - New language of this forumdescription - New description of this forumpublic boolean changeForumPostingsPerPage(String forumid, int activeid, int maxpostcount)
public boolean changeForumReplyOnEachPage(String forumid, int activeid, String value)
public boolean changeForumSpeedPostTime(String forumid, int activeid, int delay)
public int getForumSpeedPostTime(String forumid, int activeid)
public boolean changeForumPostingsOverflowPostArea(String forumid, int activeid, int count)
public int getForumPostingsOverflowPostArea(String forumid, int activeid)
public int getForumPostingsPerPage(String forumid, int activeid)
public boolean changeForumPostingsOverflowThreadPage(String forumid, int activeid, int count)
public int getForumPostingsOverflowThreadPage(String forumid, int activeid)
public boolean getForumReplyOnEachPage(String forumid, int activeid)
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)
public boolean changePostAreaConfig(String forumid, String postareaid, String guestreadmodetype, String guestwritemodetype, String threadstartlevel, int position, int activeid)
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)
public boolean changePostArea(String forumid, String postareaid, String name, String description, int activeid)
forumid - MMBase node number of the forumpostareaid - MMBase node number of the postareaname - Name of the postareadescription - Description of the postareapublic boolean removeForum(String sforumid)
sforumid - MMBase node number of the forum you want to removepublic Map forumLogin(String forumid, String account, String password)
public String getDefaultPassword()
public String getDefaultAccount()
public String changeSignature(String forumid, String sactiveid, int sigid, String body, String mode, String encoding)
public String setSingleSignature(String forumid, String sactiveid, String body, String encoding)
public String addSignature(String forumid, String sactiveid, String body, String mode, String encoding)
public boolean setBookmarkedChange(String forumid, String postthreadid, int posterid, String state)
public boolean setEmailOnChange(String forumid, String postthreadid, int posterid, String state)
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}