|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.blog.BlogComment
BlogComment
Field Summary | |
protected java.lang.String |
_author
|
protected java.lang.String |
_authorEmail
|
protected java.lang.String |
_authorURL
|
protected BlogEntry |
_blogEntry
|
protected java.lang.String |
_comment
|
protected java.util.Date |
_commentDate
|
protected long |
_commentDateLong
|
protected java.lang.String |
_id
|
protected java.util.Map |
_metaData
|
Constructor Summary | |
BlogComment()
Default constructor |
Method Summary | |
abstract void |
delete(BlogUser blogUser)
Delete the blog comment |
java.lang.String |
getAuthor()
Get the author of the comment |
java.lang.String |
getAuthorEmail()
Get the e-mail of the author of the comment |
java.lang.String |
getAuthorURL()
Get the URL of the author |
BlogEntry |
getBlogEntry()
Retrieve the BlogEntry associated with this comment |
java.lang.String |
getComment()
Get the comment |
java.util.Date |
getCommentDate()
Get the date the comment was entered |
long |
getCommentDateLong()
Get the date of this comment as a Long. |
java.lang.String |
getDateAsFormat(java.lang.String format)
Return the comment date formatted with a specified date format |
java.lang.String |
getDateAsFormat(java.lang.String format,
java.util.Locale locale)
Return the comment date formatted with a specified date format |
java.lang.String |
getEscapedComment()
Get the comment as a escaped string |
java.lang.String |
getId()
Get the id of this blog comments |
java.lang.String |
getISO8601Date()
Return an ISO 8601 style date http://www.w3.org/TR/NOTE-datetime |
java.util.Map |
getMetaData()
Get the trackback meta-data |
java.lang.String |
getRFC822Date()
Return an RFC 822 style date |
abstract void |
load(BlogUser blogUser)
Load the blog comment |
abstract void |
save(BlogUser blogUser)
Save the blog comment |
void |
setAuthor(java.lang.String author)
Set the author of the comment |
void |
setAuthorEmail(java.lang.String authorEmail)
Set the e-mail of the author of the comment |
void |
setAuthorURL(java.lang.String authorURL)
Set the URL for the author |
void |
setBlogEntry(BlogEntry blogEntry)
Set the BlogEntry associated with this comment |
void |
setComment(java.lang.String comment)
Set the new comment |
void |
setCommentDate(java.util.Date commentDate)
Set the date for the comment |
void |
setCommentDateLong(long commentDateLong)
Set the Comment Date as a Long |
void |
setId(java.lang.String id)
Set the id of this blog comment. |
void |
setMetaData(java.util.Map metaData)
Set the trackback meta-data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String _author
protected java.lang.String _authorEmail
protected java.lang.String _authorURL
protected java.lang.String _comment
protected java.util.Date _commentDate
protected long _commentDateLong
protected java.lang.String _id
protected java.util.Map _metaData
protected BlogEntry _blogEntry
Constructor Detail |
public BlogComment()
Method Detail |
public java.lang.String getAuthor()
public void setAuthor(java.lang.String author)
author
- Comment's new authorpublic java.lang.String getAuthorEmail()
public void setAuthorEmail(java.lang.String authorEmail)
authorEmail
- Author's new e-mailpublic java.lang.String getAuthorURL()
public void setAuthorURL(java.lang.String authorURL)
authorURL
- New URL for the authorpublic java.lang.String getEscapedComment()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- New commentpublic java.util.Date getCommentDate()
public java.lang.String getISO8601Date()
public java.lang.String getRFC822Date()
public java.util.Map getMetaData()
Map
public void setCommentDate(java.util.Date commentDate)
commentDate
- Comment datepublic long getCommentDateLong()
public void setCommentDateLong(long commentDateLong)
commentDateLong
- the comment file's lastModified()public java.lang.String getId()
public void setId(java.lang.String id)
id
- New idpublic void setMetaData(java.util.Map metaData)
metaData
- Map
containing meta-data for this commentpublic java.lang.String getDateAsFormat(java.lang.String format)
format
- Date format
null
if the comment date or format is null, otherwise returns the comment date
formatted to the specified format. If the format is invalid, returns commentDate.toString()public java.lang.String getDateAsFormat(java.lang.String format, java.util.Locale locale)
format
- Date formatlocale
- Locale for date formatting
null
if the entry date or format is null, otherwise returns the entry date formatted to the specified format. If the format is invalid, returns commentDate.toString()public BlogEntry getBlogEntry()
BlogEntry
associated with this comment
BlogEntry
public void setBlogEntry(BlogEntry blogEntry)
BlogEntry
associated with this comment
blogEntry
- BlogEntry
public abstract void load(BlogUser blogUser) throws BlojsomException
blogUser
- BlogUser
BlojsomException
public abstract void save(BlogUser blogUser) throws BlojsomException
blogUser
- BlogUser
BlojsomException
public abstract void delete(BlogUser blogUser) throws BlojsomException
blogUser
- BlogUser
BlojsomException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |