|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.blog.BlogEntry
BlogEntry
Field Summary | |
protected BlogCategory |
_blogCategory
|
protected java.lang.String |
_category
|
protected java.util.List |
_comments
|
protected java.lang.String |
_description
|
protected java.util.Date |
_entryDate
|
protected java.lang.String |
_filename
|
protected long |
_lastModified
|
protected java.lang.String |
_link
|
protected org.apache.commons.logging.Log |
_logger
|
protected java.util.Map |
_metaData
|
protected java.util.List |
_pingbacks
|
protected java.lang.String |
_title
|
protected java.util.List |
_trackbacks
|
Fields inherited from interface org.blojsom.util.BlojsomMetaDataConstants |
BLOG_ENTRY_METADATA_AUTHOR, BLOG_ENTRY_METADATA_AUTHOR_EXT, BLOG_ENTRY_METADATA_TIMESTAMP, BLOG_METADATA_COMMENTS_DISABLED, BLOG_METADATA_HEADER, BLOG_METADATA_PINGBACKS_DISABLED, BLOG_METADATA_TRACKBACKS_DISABLED, SOURCE_ATTRIBUTE |
Constructor Summary | |
BlogEntry()
Create a new blog entry with no data |
Method Summary | |
abstract void |
delete(BlogUser blogUser)
Delete the blog entry. |
boolean |
equals(java.lang.Object o)
Checks to see if the link to this entry is the same as the input entry |
BlogCategory |
getBlogCategory()
Get the BlogCategory object for this blog entry |
java.lang.String |
getCategory()
Category for the blog entry. |
java.util.List |
getComments()
Get the comments |
BlogComment[] |
getCommentsAsArray()
Get the comments as an array of BlogComment objects |
java.util.Date |
getDate()
Date of the blog entry This value is constructed from the lastModified value of the file |
java.lang.String |
getDateAsFormat(java.lang.String format)
Return the blog entry date formatted with a specified date format |
java.lang.String |
getDateAsFormat(java.lang.String format,
java.util.Locale locale)
Return the blog entry date formatted with a specified date format |
java.lang.String |
getDescription()
Description of the blog entry |
java.lang.String |
getEncodedCategory()
Return the category name encoded. |
java.lang.String |
getEscapedDescription()
Escaped description of the blog entry This method would be used for generating RSS feeds where the <, >, and & characters are escaped |
java.lang.String |
getEscapedLink()
Permalink for the blog entry where the <, >, and & characters are escaped |
java.lang.String |
getEscapedTitle()
Title for the entry where the <, >, and & characters are escaped |
java.lang.String |
getFilename()
Filename of the blog entry |
abstract java.lang.String |
getId()
Returns the BlogId for this entry |
java.lang.String |
getISO8601Date()
Return an ISO 8601 style date http://www.w3.org/TR/NOTE-datetime |
long |
getLastModified()
Last modified time for the blog entry |
java.lang.String |
getLink()
Permalink for the blog entry |
java.util.Map |
getMetaData()
Return meta data for this blog entry. |
int |
getNumComments()
Get the number of comments for this entry |
int |
getNumPingbacks()
Get the number of pingbacks for this entry |
int |
getNumTrackbacks()
Get the number of trackbacks for this entry |
abstract java.lang.String |
getPermalink()
Return the permalink name for this blog entry |
java.util.List |
getPingbacks()
Get the pingbacks for this entry |
Pingback[] |
getPingbacksAsArray()
Get the pingbacks as an array of Pingback s objects |
java.lang.String |
getRFC822Date()
Return an RFC 822 style date |
java.lang.String |
getTitle()
Title of the blog entry |
java.util.List |
getTrackbacks()
Get the trackbacks |
Trackback[] |
getTrackbacksAsArray()
Get the trackbacks as an array of Trackback objects |
java.lang.String |
getUTCDate()
Return an UTC style date |
abstract void |
load(BlogUser blogUser)
Load a blog entry. |
abstract void |
save(BlogUser blogUser)
Save the blog entry. |
void |
setAttributes(java.util.Map attributeMap)
Set any attributes of the blog entry using data from the map. |
void |
setBlogCategory(BlogCategory blogCategory)
Set the BlogCategory object for this blog entry |
void |
setCategory(java.lang.String category)
Set the category for the blog entry. |
void |
setComments(java.util.List comments)
Set the comments for this blog entry. |
void |
setDate(java.util.Date entryDate)
Date of this blog entry |
void |
setDescription(java.lang.String description)
Set the description for the blog entry |
void |
setFilename(java.lang.String filename)
Set the proposed filename of the blog entry |
void |
setLink(java.lang.String link)
Set the permalink for the blog entry |
void |
setMetaData(java.util.Map metaData)
Set the meta-data associated with this blog entry |
void |
setPingbacks(java.util.List pingbacks)
Set the pingbacks for this blog entry. |
void |
setTitle(java.lang.String title)
Set the title of the blog entry |
void |
setTrackbacks(java.util.List trackbacks)
Set the trackbacks for this blog entry. |
abstract boolean |
supportsComments()
Determines whether or not this blog entry supports comments. |
abstract boolean |
supportsPingbacks()
Determines whether or not this blog entry supports pingbacks. |
abstract boolean |
supportsTrackbacks()
Determines whether or not this blog entry supports trackbacks. |
java.lang.String |
toString()
Return a string representation of the entry. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient org.apache.commons.logging.Log _logger
protected java.lang.String _title
protected java.lang.String _link
protected java.lang.String _filename
protected java.lang.String _description
protected java.lang.String _category
protected java.util.Date _entryDate
protected long _lastModified
protected java.util.List _comments
protected java.util.List _trackbacks
protected java.util.List _pingbacks
protected BlogCategory _blogCategory
protected java.util.Map _metaData
Constructor Detail |
public BlogEntry()
Method Detail |
public java.util.Date getDate()
public void setDate(java.util.Date entryDate)
entryDate
- Date of the blog entrypublic java.lang.String getRFC822Date()
public java.lang.String getUTCDate()
public java.lang.String getISO8601Date()
public java.lang.String getDateAsFormat(java.lang.String format)
format
- Date format
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 entryDate.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 entryDate.toString()public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- Title for the blog entrypublic java.lang.String getEscapedTitle()
public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- Filename for the blog entrypublic java.lang.String getLink()
public java.lang.String getEscapedLink()
public void setLink(java.lang.String link)
link
- Permalink for the blog entrypublic java.lang.String getDescription()
public java.lang.String getEscapedDescription()
public void setDescription(java.lang.String description)
description
- Description for the blog entrypublic long getLastModified()
public abstract java.lang.String getId()
public abstract java.lang.String getPermalink()
public java.lang.String getCategory()
public java.lang.String getEncodedCategory()
public void setCategory(java.lang.String category)
category
- Category for the blog entrypublic boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
public abstract boolean supportsComments()
true
if the blog entry supports comments, false
otherwisepublic java.util.List getComments()
public void setComments(java.util.List comments)
List
of BlogComment
. This method will not writeback or change the comments on disk.
comments
- Comments for this entrypublic BlogComment[] getCommentsAsArray()
public int getNumComments()
null
, or the number of comments otherwise, which could be 0public abstract boolean supportsTrackbacks()
true
if the blog entry supports trackbacks, false
otherwisepublic java.util.List getTrackbacks()
public void setTrackbacks(java.util.List trackbacks)
List
of Trackback
. This method will not writeback or change the trackbacks to disk.
trackbacks
- Trackbacks for this entrypublic Trackback[] getTrackbacksAsArray()
public int getNumTrackbacks()
null
, or the number of trackbacks otherwise, which could be 0public BlogCategory getBlogCategory()
BlogCategory
object for this blog entry
BlogCategory
objectpublic void setBlogCategory(BlogCategory blogCategory)
BlogCategory
object for this blog entry
blogCategory
- New BlogCategory
objectpublic java.util.Map getMetaData()
null
.
public void setMetaData(java.util.Map metaData)
metaData
- Meta-datapublic java.lang.String toString()
public void setAttributes(java.util.Map attributeMap)
attributeMap
- Attributespublic abstract boolean supportsPingbacks()
true
if the blog entry supports pingbacks, false
otherwisepublic java.util.List getPingbacks()
Pingback
spublic void setPingbacks(java.util.List pingbacks)
List
of Pingback
. This method will not writeback or change the pingbacks to disk.
pingbacks
- Pingback
s for this entrypublic Pingback[] getPingbacksAsArray()
Pingback
s objects
Pingback
[] arraypublic int getNumPingbacks()
null
, or the number of pingbacks otherwise, which could be 0public abstract void load(BlogUser blogUser) throws BlojsomException
blogUser
- User information
BlojsomException
- If there is an error loading the entrypublic abstract void save(BlogUser blogUser) throws BlojsomException
blogUser
- User information
BlojsomException
- If there is an error saving the entrypublic abstract void delete(BlogUser blogUser) throws BlojsomException
blogUser
- User information
BlojsomException
- If there is an error deleting the entry
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |