public class PostArea extends Object
| Constructor and Description |
|---|
PostArea(Forum parent,
Node node)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addModerator(Poster mp)
add moderator status to given poster for this postarea
|
void |
childRemoved(PostThread t)
remove a postthread from the postthreads and signal the
parent forum that Thread was removed
|
void |
decPinnedCount()
decrease the numberofpinned threads in the postarea
|
String |
filterContent(String body) |
String |
getDescription()
get the description of the postarea
|
String |
getGuestReadModeType() |
String |
getGuestWriteModeType() |
int |
getId()
get the MMBase objectnumber of the postarea
|
String |
getLastPoster()
get the accountname/nick of the last poster in the postarea
|
int |
getLastPosterNumber()
get the last poster in the postarea
|
int |
getLastPostNumber()
get the last post in the postarea
|
int |
getLastPostThreadNumber()
get the last postthread in the postarea
|
int |
getLastPostTime()
get the date/time of the last post in the postarea
|
String |
getLastSubject()
get the subject of the last post in the postarea
|
int |
getMemorySize() |
Enumeration<Poster> |
getModerators()
Deprecated.
returning enumerations?!
|
String |
getModeratorsLine(String baseurl)
get the moderators line in html
|
String |
getName()
get the name of the postarea
|
String |
getNavigationLine(String baseurl,
int page,
int pagesize,
String cssclass)
get a (html) navigationline to "walk through" the different pages of PostThreads for a postarea
|
Enumeration<Poster> |
getNonModerators(String searchKey)
Deprecated.
returning enumerations?!
|
int |
getPageCount(int pagesize)
get the number of pages for this postarea
|
Forum |
getParent()
get the parent forum of this postarea
|
int |
getPos() |
int |
getPostCount()
get the number of posts in this postarea
|
int |
getPostingsLoadedCount() |
PostThread |
getPostThread(String id)
get a postthread by it's MMbase Objectnumber
|
int |
getPostThreadCount()
get the number of postthreads of the postarea
|
int |
getPostThreadCountAvg()
get the average number of posts per postthread
|
int |
getPostThreadLoadedCount() |
Enumeration<PostThread> |
getPostThreads()
get all the postthreads in the postarea
|
Iterator<PostThread> |
getPostThreads(int page,
int pagecount)
get an iterator of the postthreads in the postarea
|
String |
getShortName() |
int |
getSpeedPostTime() |
String |
getThreadStartLevel() |
int |
getViewCount()
get the number of views in this postarea
|
void |
incPinnedCount()
increase the numberofpinned threads in the postarea
|
boolean |
isModerator(String nick)
determine if the given accountname/nick is a moderator of this postarea
|
void |
maintainMemoryCaches()
called to maintain the memorycaches
|
boolean |
movePostThread(String postthreadid,
String newpostareaid,
Poster poster) |
int |
newPost(String subject,
Poster poster,
String body,
String mood,
boolean parsed)
create a new postthread in the postarea
|
boolean |
remove()
remove the postarea
remove the postarea.
|
boolean |
removeModerator(Poster mp)
remove the moderator status of the poster regarding this postarea
|
boolean |
removePostThread(String postthreadid)
remove a postthread by it's MMbase objectnumber
|
protected void |
resort(PostThread child)
re-add the given PostThread to the postthreads-Vector
|
boolean |
save()
save the postarea (add it to the SyncQueue)
|
List<Posting> |
searchPostings(List results,
String searchkey,
int posterid) |
List<Posting> |
searchPostings(String searchkey,
int posterid) |
void |
setDescription(String description)
set a description for the postarea
|
void |
setGuestReadModeType(String guestreadmodetype) |
void |
setGuestWriteModeType(String guestwritemodetype) |
void |
setId(int id)
set the MMBase objectnumber for the postarea
|
void |
setLastSubject(String subject) |
void |
setName(String name)
set the name for the postarea
|
void |
setPos(int pos) |
void |
setThreadStartLevel(String threadstartlevel) |
void |
signalNewReply(PostThread child)
signal the postarea that there is a new reply
|
void |
signalRemovedReply(PostThread child)
signal the postarea that a reply was removed so it cat update the postcount etc ..
|
void |
signalViewsChanged(PostThread child)
signal the postarea that the number of views has been changed
|
public void setId(int id)
id - MMBase objectnumberpublic void setName(String name)
name - postareanamepublic void setDescription(String description)
description - postareadescriptionpublic String getName()
public String getShortName()
public String getDescription()
public int getId()
public int getPostThreadCount()
public int getPostThreadCountAvg()
public int getPostThreadLoadedCount()
public int getPostingsLoadedCount()
public int getMemorySize()
public int getPageCount(int pagesize)
pagesize - maximum number of postthreads per pagepublic int getPostCount()
public int getViewCount()
public String getLastPoster()
public int getLastPosterNumber()
public int getLastPostThreadNumber()
public int getLastPostNumber()
public int getLastPostTime()
public String getLastSubject()
public void setLastSubject(String subject)
public Enumeration<PostThread> getPostThreads()
public Iterator<PostThread> getPostThreads(int page, int pagecount)
page - which page in the sequencepagecount - maximum number of PostThreads on the pagepublic PostThread getPostThread(String id)
id - MMbase Objectnumberpublic String getNavigationLine(String baseurl, int page, int pagesize, String cssclass)
baseurl - urlpage - which page in the sequencepagesize - maximum number of postthreads to be shown on one pagecssclass - cssclass to be used to display the navigationlinepublic Enumeration<Poster> getModerators()
public Enumeration<Poster> getNonModerators(String searchKey)
public boolean isModerator(String nick)
nick - accountname/nick to be evaluatedtrue if the account is moderator. Also true if the account is administrator of the parent forum.public boolean removeModerator(Poster mp)
mp - Poster with moderator statusfalsepublic boolean addModerator(Poster mp)
mp - Postertrue if the action succeededpublic String getModeratorsLine(String baseurl)
baseurl - public void incPinnedCount()
public void decPinnedCount()
public int newPost(String subject, Poster poster, String body, String mood, boolean parsed)
subject - subject of the new postthreadposter - accountname/nick of the poster that posts the new postthreadbody - body of the new postthreadpublic void signalNewReply(PostThread child)
child - postthreadpublic void signalRemovedReply(PostThread child)
child - postthreadprotected void resort(PostThread child)
child - postthreadpublic boolean movePostThread(String postthreadid, String newpostareaid, Poster poster)
public Forum getParent()
public void signalViewsChanged(PostThread child)
child - public boolean save()
public boolean remove()
true if it succeeds, false if it doesn'tpublic boolean removePostThread(String postthreadid)
postthreadid - MMbase objectnumber of the postthreadtrue if it succeeds, false if it doesn'tpublic void childRemoved(PostThread t)
t - postthreadpublic void maintainMemoryCaches()
public String getGuestReadModeType()
public String getGuestWriteModeType()
public String getThreadStartLevel()
public int getSpeedPostTime()
public void setGuestReadModeType(String guestreadmodetype)
public void setGuestWriteModeType(String guestwritemodetype)
public void setThreadStartLevel(String threadstartlevel)
public void setPos(int pos)
public int getPos()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}