public class Poster extends Object
| Constructor and Description |
|---|
Poster(Node node,
Forum parent,
boolean prefixwanted)
Contructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBookmarkedThread(int threadid) |
Mailbox |
addMailbox(String name,
String description,
int editstate,
int maxmessages,
int maxsize,
int carboncopymode,
int pos)
Add a new mailbox for the poster
|
void |
addPostCount()
increases postcount for this poster
|
void |
addProfileInfo(ProfileInfo pi) |
void |
addSignature(Signature sig) |
void |
addSignature(String body,
String mode,
String encoding) |
boolean |
checkDuplicatePost(String subject,
String body) |
void |
checkRemoteHost(String host) |
void |
decPostCount()
decreases postcount for this poster
|
void |
deleteSignature(Signature sig) |
boolean |
disable()
disable the poster
|
boolean |
enable()
enable the poster
|
String |
filterEmail(String body) |
String |
filterEmail(String body,
PostThread t) |
String |
getAccount()
get accountname / nick from this poster
|
int |
getAvatar()
get the MMBase objectnumber of the avatar (images-object)
|
Iterator |
getBookmarkedThreads(int page,
int pagesize) |
String |
getEmail()
get the Emailaddress of the poster
|
int |
getFirstLogin()
get the date/time (epoch) of the first login of the poster
|
String |
getFirstName()
get the firstname of the poster
|
String |
getGender()
get the gender of the poster
|
int |
getId()
get the MMBase objectnumber of the poster
|
String |
getLastName()
get the lastname of the poster
|
int |
getLastPostTime() |
RemoteHost |
getLastRemoteHost() |
int |
getLastSeen()
get the date/time (epoch) when the poster was last seen
|
int |
getLastSessionEnd()
get the date/time (epoch) when the poster ended the last session
|
String |
getLevel()
get the level of the poster
|
String |
getLevelGui() |
String |
getLevelImage() |
String |
getLocation()
get the location of the poster
|
Mailbox |
getMailbox(String name)
get the poster's mailbox by the name
|
String |
getNick() |
Node |
getNode()
get a node for a poster
|
Forum |
getParent() |
String |
getPassword() |
int |
getPostCount()
get the number of posts of this poster
|
ProfileInfo |
getProfileInfo() |
ProfileEntry |
getProfileValue(String name) |
Iterator |
getProfileValues() |
int |
getQuotaNumber() |
int |
getQuotaUsedNumber() |
RemoteHost |
getRemoteHost(String host) |
Iterator |
getRemoteHosts() |
int |
getSessionStart()
get the date/time (epoch) when the poster started this session
|
String |
getSignature() |
Signature |
getSignature(int sigid) |
Iterator |
getSignatures() |
Signature |
getSingleSignature() |
boolean |
isBlocked()
Check if the poster is blocked
|
boolean |
isQuotaReached() |
void |
mailboxChanged(Mailbox mb) |
boolean |
profileUpdated()
Signal that the profile of the poster has been updated and re-read the (avatar) images
|
void |
readRemoteHosts() |
boolean |
remove()
remove the poster.
|
void |
removeBookmarkedThread(int threadid) |
boolean |
removeMailbox(String name)
remove the poster's mailbox by the name
|
void |
savePoster()
Save the poster, and add the node to the syncQueue
|
void |
seenThread(PostThread t)
add the MMbase threadid to the HashMap of seen threads.
|
void |
sendEmailOnChange(PostThread t) |
void |
sendUpdateMail() |
void |
setAliasedFirstName(String a_firstname) |
void |
setAliasedLastName(String a_lastname) |
void |
setAliasedPassword(String a_password) |
void |
setEmail(String email)
set the email-address for this poster
|
void |
setFirstName(String firstname)
set the firstname for this poster
|
void |
setGender(String gender)
set the gender for this poster
|
void |
setId(int id)
set the id (MMBase object number) for this poster
|
void |
setLastBody(String lastbody) |
void |
setLastName(String lastname)
set the lastname for this poster
|
void |
setLastPostTime(int lastposttime) |
void |
setLastSubject(String lastsubject) |
void |
setLocation(String location)
set the location for this poster
|
void |
setPassword(String password) |
void |
setPostCount(int postcount)
set the number of posts for this poster
|
String |
setProfileValue(String name,
String value) |
void |
signalSeen()
update "lastseen" for the poster, and add the posternode to the syncQueue
|
boolean |
viewedThread(int id,
Integer lastposttime)
determine if the poster has viewed this thread
|
public void addPostCount()
public void decPostCount()
public void setId(int id)
id - public void setFirstName(String firstname)
firstname - public void setLastName(String lastname)
lastname - public void setEmail(String email)
email - public void setGender(String gender)
gender - public void setLocation(String location)
location - public void setPostCount(int postcount)
postcount - Number of postspublic String getAccount()
public String getNick()
public int getAvatar()
public String getEmail()
public boolean viewedThread(int id,
Integer lastposttime)
id - MMBase object number of the thread tolastposttime - Date/time (Epoch) of the last post in the threadtrue if the thread was viewed by this poster, false if it wasn't. Also returns false if the postthread contains new post(s) since the poster last viewed this thread.public void seenThread(PostThread t)
t - MMBase objectnumber of the threadpublic String getFirstName()
public String getPassword()
public void setPassword(String password)
public void setAliasedPassword(String a_password)
public void setAliasedFirstName(String a_firstname)
public void setAliasedLastName(String a_lastname)
public String getLastName()
public int getPostCount()
public String getLevel()
public String getLevelGui()
public String getLevelImage()
public String getGender()
public String getLocation()
public int getFirstLogin()
public int getLastSeen()
public int getSessionStart()
public int getLastSessionEnd()
public int getId()
public Node getNode()
public void signalSeen()
public void savePoster()
public boolean profileUpdated()
true if this method is calledpublic boolean remove()
true if this method is calledpublic boolean disable()
true if this method is calledpublic boolean enable()
true if this method is calledpublic boolean isBlocked()
true if this method is calledpublic Mailbox getMailbox(String name)
name - public boolean removeMailbox(String name)
name - true if the remove action was successfull, false if it wasn't.public Mailbox addMailbox(String name, String description, int editstate, int maxmessages, int maxsize, int carboncopymode, int pos)
name - name of the mailboxdescription - description of the mailboxeditstate - ToDo: docmaxmessages - maximum number of messages for the mailboxmaxsize - maximum size of the mailbox incarboncopymode - ToDo: docpos - ToDo: docnull if the creation of the mailbox didn't succeed.public boolean isQuotaReached()
public int getQuotaUsedNumber()
public int getQuotaNumber()
public void mailboxChanged(Mailbox mb)
public void setLastSubject(String lastsubject)
public void setLastBody(String lastbody)
public int getLastPostTime()
public void setLastPostTime(int lastposttime)
public String getSignature()
public Signature getSingleSignature()
public Signature getSignature(int sigid)
public void addSignature(Signature sig)
public void addProfileInfo(ProfileInfo pi)
public ProfileInfo getProfileInfo()
public Iterator getProfileValues()
public ProfileEntry getProfileValue(String name)
public void deleteSignature(Signature sig)
public Iterator getSignatures()
public Iterator getRemoteHosts()
public void checkRemoteHost(String host)
public RemoteHost getLastRemoteHost()
public RemoteHost getRemoteHost(String host)
public void readRemoteHosts()
public void sendEmailOnChange(PostThread t)
public void sendUpdateMail()
public String filterEmail(String body, PostThread t)
public Iterator getBookmarkedThreads(int page, int pagesize)
public void addBookmarkedThread(int threadid)
public void removeBookmarkedThread(int threadid)
public Forum getParent()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}