|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.applications.mmbob.Forum
public class Forum
| Constructor Summary | |
|---|---|
Forum(Node node)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
addAdministrator(Poster ap)
add administrator to forum |
void |
addProfileDef(ProfileEntryDef cm)
|
void |
addWordFilter(String name,
String value)
|
void |
childRemoved(Poster poster)
remove a poster from the forum |
Poster |
createPoster(String account,
String password)
create a new poster for the forum |
String |
filterContent(Map<String,String> filterwords,
String body)
|
String |
filterContent(String body)
|
String |
getAccountCreationType()
|
String |
getAccountRemovalType()
|
Enumeration<Poster> |
getAdministrators()
get the administrators of the forum |
String |
getAdministratorsLine(String baseurl)
get the online administrators (comma-seperated) |
String |
getAlias()
|
String |
getAvatarsDisabled()
|
String |
getAvatarsGalleryEnabled()
|
String |
getAvatarsUploadEnabled()
|
boolean |
getCloneMaster()
|
ForumConfig |
getConfig()
|
String |
getContactInfoEnabled()
|
String |
getDescription()
get the description of the forum |
String |
getEmailtext(String role)
|
String |
getExternalRootUrl()
|
Map<String,String> |
getFilterWords()
|
String |
getFooterPath()
|
String |
getFromEmailAddress()
|
String |
getGuestReadModeType()
|
String |
getGuestWriteModeType()
|
String |
getGuiEdit(String key)
|
String |
getHeaderPath()
|
int |
getId()
Get the MMBase objectnumber of the forum |
String |
getLanguage()
Get the language of the forum |
String |
getLastPoster()
get the accountname / nick of the last poster on the forum |
int |
getLastPosterNumber()
get last poster on the forum |
int |
getLastPostNumber()
provide the number of the last poster in this forum |
int |
getLastPostTime()
get the date/time (Epoch) of the last post on the forum |
String |
getLastSubject()
get the subject of the last post on the forum |
String |
getLoginModeType()
|
String |
getLoginSystemType()
|
String |
getLogoutModeType()
|
int |
getMemorySize()
|
String |
getName()
get the name of the forum |
String |
getNavigationMethod()
|
Enumeration<Poster> |
getNonAdministrators(String searchkey)
|
PostArea |
getPostArea(String id)
get a postarea of this forum by it's MMbase objectnumber |
PostAreaConfig |
getPostAreaConfig(String name)
|
int |
getPostAreaCount()
get the number of postareas for this forum |
Enumeration<PostArea> |
getPostAreas()
get all the postareas of this forum |
int |
getPostCount()
get the number of posts on the forum |
Poster |
getPoster(int posterid)
get a poster of this forum by it's MMBase Objectnumber |
Poster |
getPoster(String posterid)
get a poster of this forum by it's accountname/nick (???) |
int |
getPosterExpireTime()
get the expiretime for the posters in seconds |
Poster |
getPosterNick(String nick)
|
Enumeration<Poster> |
getPosters()
get the posters of the forum |
int |
getPostersNewCount()
get the number of new posters for the forum |
Enumeration |
getPostersOnline()
get the posters that are online |
int |
getPostersOnlineCount()
get the number of online posters for the forum |
int |
getPostersTotalCount()
get the total number of posters in the forum |
int |
getPostingsLoadedCount()
|
int |
getPostingsOverflowPostArea()
|
int |
getPostingsOverflowThreadPage()
|
int |
getPostingsPerPage()
|
PostThread |
getPostThread(String postthreadid)
|
int |
getPostThreadCount()
get the total number of postthreads in this forum |
int |
getPostThreadLoadedCount()
|
String |
getPrivateMessagesEnabled()
|
ProfileEntryDef |
getProfileDef(String name)
|
Iterator |
getProfileDefs()
|
boolean |
getReplyOnEachPage()
|
String |
getSmileysEnabled()
|
int |
getSpeedPostTime()
|
SubArea |
getSubArea(String name)
|
ThreadObserver |
getThreadObserver(int id)
|
String |
getThreadStartLevel()
|
int |
getViewCount()
get the number of views on the forum |
String |
getXSLTPostingsEven()
|
String |
getXSLTPostingsOdd()
|
boolean |
hasNick()
|
boolean |
hasPoster(int posterid)
|
boolean |
isAdministrator(String nick)
determine if the given account is an administrator |
void |
leafsChanged()
Well, what does this do, then? |
void |
maintainMemoryCaches()
called to maintain the memorycaches |
int |
newFolder(int posterid,
String newfolder)
create a new folder (messagebox) for the given poster |
int |
newPostArea(String name,
String description)
create a new postarea for this forum |
void |
newPoster(Poster p)
add a poster to the newposters-Vector |
void |
newPosterOnline(Poster p)
add a poster to the onlineposters-Vector |
int |
newPrivateMessage(String poster,
String to,
String subject,
String body)
create a new private message |
boolean |
remove()
remove the forum |
boolean |
removeAdministrator(Poster mp)
|
boolean |
removeFolder(int posterid,
String foldername)
remove a folder(mailbox) for a poster |
void |
removeOnlinePoster(Poster p)
remove a poster from the onlineposters-Vector |
boolean |
removePostArea(String id)
remove a postarea of this forum by it's MMbase objectnumber |
void |
removeWordFilter(String name)
|
void |
resetConfig()
|
boolean |
save()
"Save" the forum (add it to the syncQueue) |
boolean |
saveConfig()
|
boolean |
saveDirect()
"Save direct" the forum |
List |
searchPostings(String searchkey,
int posterid)
|
void |
setAlias(String alias)
|
void |
setAvatarsGalleryEnabled(String mode)
|
void |
setAvatarsUploadEnabled(String mode)
|
boolean |
setBookmarkedChange(int id,
Poster ap,
boolean state)
|
void |
setDescription(String description)
Set the description of the forum |
boolean |
setEmailOnChange(int id,
Poster ap,
boolean state)
|
void |
setGuestReadModeType(String type)
|
void |
setGuestWriteModeType(String type)
|
void |
setId(int id)
Set the MMBase objectnumber of the forum |
void |
setLanguage(String language)
Set the language of the forum |
void |
setLastSubject(String subject)
|
void |
setLoginModeType(String type)
|
void |
setLoginSystemType(String system)
|
void |
setLogoutModeType(String type)
|
void |
setName(String name)
Set name of the forum |
void |
setNavigationMethod(String navigationmethod)
|
void |
setNode(Node node)
Set forum to node |
void |
setPostingsOverflowPostArea(int maxcount)
|
void |
setPostingsOverflowThreadPage(int maxcount)
|
void |
setPostingsPerPage(int maxcount)
|
void |
setReplyOnEachPage(boolean value)
|
void |
setSpeedPostTime(int delay)
|
void |
signalNewPost(PostArea child)
signal the forum that there is a new postthread updates the postthreadcount , and places it in the syncQueue |
void |
signalNewReply(PostArea child)
signal the forum that there is a new reply updates the postcount, lastposttime, lastposter, lastpostsubject of ths forum, and places it in the syncQueue |
void |
signalRemovedPost(PostArea child)
signal the forum that there was a postthread removed updates the postthreadcount , and places it in the syncQueue |
void |
signalRemovedReply(PostArea child)
signal the forum that a reply was removed updates the postcount, lastposttime, lastposter, lastpostsubject of ths forum, and places it in the syncQueue |
void |
signalViewsChanged(PostArea child)
signal the forum that there's a new view |
void |
syncTreeAreas()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Forum(Node node)
node - forum node| Method Detail |
|---|
public void resetConfig()
public void setId(int id)
id - MMase objectnumberpublic void setNode(Node node)
node - forumnodepublic void setName(String name)
name - public void setLanguage(String language)
language - public String getLanguage()
public void setDescription(String description)
description - public String getName()
public String getDescription()
public int getId()
public int getPostCount()
public int getViewCount()
public String getLastPoster()
public int getLastPosterNumber()
public int getLastPostTime()
public String getLastSubject()
public void setLastSubject(String subject)
public boolean save()
truepublic boolean saveConfig()
public boolean saveDirect()
truepublic Enumeration<Poster> getAdministrators()
public Enumeration<Poster> getNonAdministrators(String searchkey)
public Enumeration<Poster> getPosters()
public List searchPostings(String searchkey,
int posterid)
public PostThread getPostThread(String postthreadid)
public Enumeration getPostersOnline()
public boolean isAdministrator(String nick)
nick -
true if the account is an administratorpublic String getAdministratorsLine(String baseurl)
baseurl -
public PostArea getPostArea(String id)
id - MMbase objectnumber of the postareapublic SubArea getSubArea(String name)
public boolean removePostArea(String id)
id - MMbase objectnumber of the postarea
true if the action was successful, false if it wasn't
public boolean removeFolder(int posterid,
String foldername)
posterid - foldername -
true if the action was successfulpublic void removeOnlinePoster(Poster p)
p - posternodepublic int getPostAreaCount()
public Enumeration<PostArea> getPostAreas()
public void newPosterOnline(Poster p)
p - new online posterpublic void newPoster(Poster p)
p - new poster
public int newPostArea(String name,
String description)
name - name of the new postareadescription - description of the new postarea
public void syncTreeAreas()
public int getPostThreadCount()
public void leafsChanged()
public void signalNewReply(PostArea child)
child - PostAreapublic void signalRemovedReply(PostArea child)
child - PostAreapublic void signalNewPost(PostArea child)
child - PostAreapublic void signalRemovedPost(PostArea child)
child - PostAreapublic void signalViewsChanged(PostArea child)
child - PostAreapublic Poster getPoster(String posterid)
posterid - accountname/nick
null if the account was not foundpublic Poster getPosterNick(String nick)
public Poster getPoster(int posterid)
posterid - MMBase Objectnumber of the poster
null if the poster was not foundpublic boolean hasPoster(int posterid)
public int getPostersTotalCount()
public int getPostersOnlineCount()
public int getPostersNewCount()
public Poster createPoster(String account,
String password)
account - accountname to registerpassword - password to register
null if creation failedpublic boolean addAdministrator(Poster ap)
ap - Poster
false (ToDo ??)public boolean removeAdministrator(Poster mp)
public void childRemoved(Poster poster)
poster - posterpublic boolean remove()
true if it succeeds, false if it doesn'tpublic int getPosterExpireTime()
public int newPrivateMessage(String poster,
String to,
String subject,
String body)
poster - accountname/nick of the sending posterto - accountname/nick of the recepient postersubject - subject of the private messagebody - body of the private message
public int newFolder(int posterid,
String newfolder)
posterid - MMBase objectnumber of the posternewfolder - name of the new folder
public void maintainMemoryCaches()
public int getLastPostNumber()
public PostAreaConfig getPostAreaConfig(String name)
public String getAccountCreationType()
public String getAccountRemovalType()
public String getLoginModeType()
public String getLoginSystemType()
public String getLogoutModeType()
public void setLogoutModeType(String type)
public void setLoginSystemType(String system)
public void addProfileDef(ProfileEntryDef cm)
public void setLoginModeType(String type)
public String getGuestReadModeType()
public String getThreadStartLevel()
public void setAvatarsUploadEnabled(String mode)
public String getAlias()
public void setAlias(String alias)
public void setAvatarsGalleryEnabled(String mode)
public void setGuestReadModeType(String type)
public String getGuestWriteModeType()
public void setGuestWriteModeType(String type)
public void setNavigationMethod(String navigationmethod)
public String getAvatarsDisabled()
public String getAvatarsUploadEnabled()
public String getAvatarsGalleryEnabled()
public String getHeaderPath()
public String getFooterPath()
public String getFromEmailAddress()
public String getXSLTPostingsOdd()
public String getNavigationMethod()
public String getXSLTPostingsEven()
public String getContactInfoEnabled()
public String getSmileysEnabled()
public String getPrivateMessagesEnabled()
public int getPostingsPerPage()
public void setPostingsPerPage(int maxcount)
public void setPostingsOverflowPostArea(int maxcount)
public void setPostingsOverflowThreadPage(int maxcount)
public void setReplyOnEachPage(boolean value)
public void setSpeedPostTime(int delay)
public Iterator getProfileDefs()
public ProfileEntryDef getProfileDef(String name)
public boolean hasNick()
public int getPostThreadLoadedCount()
public int getPostingsLoadedCount()
public int getMemorySize()
public String filterContent(String body)
public Map<String,String> getFilterWords()
public void addWordFilter(String name,
String value)
public void removeWordFilter(String name)
public String filterContent(Map<String,String> filterwords,
String body)
public boolean getCloneMaster()
public String getGuiEdit(String key)
public int getSpeedPostTime()
public int getPostingsOverflowPostArea()
public int getPostingsOverflowThreadPage()
public ThreadObserver getThreadObserver(int id)
public boolean setEmailOnChange(int id,
Poster ap,
boolean state)
public boolean setBookmarkedChange(int id,
Poster ap,
boolean state)
public String getEmailtext(String role)
public String getExternalRootUrl()
public boolean getReplyOnEachPage()
public ForumConfig getConfig()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||