public class Posting extends Object
| Constructor and Description |
|---|
Posting(Node node,
PostThread parent,
boolean prefixwanted)
Construct the posting
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBody(String imagecontext)
get the body of this posting
|
String |
getBodyHtml(String imagecontext)
get the html body of this posting
meaning this will be decoded with BBCodes, Urls, Security checks..
|
String |
getDirectBody() |
int |
getEditTime()
get the date/time of the last time this posting was editted
|
int |
getId()
get the id of this posting
|
int |
getMemorySize() |
PostThread |
getParent() |
String |
getPoster()
get the accountname/nick of the poster of this posting
|
int |
getPostTime()
get the date/time (epoch) when this posting was posted
|
String |
getSubject()
get the subject of this posting
|
int |
getThreadPos() |
boolean |
inBody(String searchkey) |
boolean |
inSubject(String searchkey) |
boolean |
remove()
Delete a posting and signal the parent postthread that the posting must be removed
|
boolean |
save()
save the node to the cloud
|
void |
setBody(String body,
String imagecontext,
boolean parsed)
set the body of the posting
|
void |
setEditTime(int time)
set the date/time of the last time this posting was editted
|
void |
setId(int id)
Set the id of this postingnode
|
void |
setNode(Node node)
set the node of this posting
|
void |
setPostTime(int time)
set the date/time of the last time this posting was posted
|
void |
setSubject(String subject)
set the subject of the posting
|
void |
setThreadPos(int threadpos) |
public Posting(Node node, PostThread parent, boolean prefixwanted)
node - postingnodeparent - postthreadpublic int getMemorySize()
public void setId(int id)
id - posting idpublic void setThreadPos(int threadpos)
public void setSubject(String subject)
subject - public void setBody(String body, String imagecontext, boolean parsed)
body - imagecontext - The context where to find the images (eg smilies)public void setEditTime(int time)
time - Date/time (Epoch)public void setPostTime(int time)
time - Date/time (Epoch)public int getEditTime()
public int getId()
public int getThreadPos()
public void setNode(Node node)
node - postingpublic String getSubject()
public String getDirectBody()
public String getBody(String imagecontext)
imagecontext - The context where to find the images (eg smilies)public String getBodyHtml(String imagecontext)
imagecontext - The context where to find the images (eg smilies)public boolean inBody(String searchkey)
public boolean inSubject(String searchkey)
public String getPoster()
public int getPostTime()
public boolean remove()
truepublic boolean save()
truepublic PostThread getParent()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}