|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.blojsom.blog.database.DatabaseEntry
DatabaseEntry
| Field Summary | |
protected java.lang.Integer |
_allowComments
|
protected java.lang.Integer |
_allowPingbacks
|
protected java.lang.Integer |
_allowTrackbacks
|
protected java.lang.String |
_author
|
protected java.lang.Integer |
_blogCategoryId
|
protected java.lang.Integer |
_blogId
|
protected Category |
_category
|
protected java.util.List |
_comments
|
protected java.lang.String |
_description
|
protected java.util.Date |
_entryDate
|
protected java.lang.Integer |
_id
|
protected java.lang.String |
_link
|
protected java.util.Map |
_metaData
|
protected java.util.Date |
_modifiedDate
|
protected java.util.List |
_pingbacks
|
protected java.lang.String |
_postSlug
|
protected java.lang.String |
_status
|
protected java.lang.String |
_title
|
protected java.util.List |
_trackbacks
|
| Constructor Summary | |
DatabaseEntry()
Create a new instance of the database entry |
|
| Method Summary | |
java.lang.Boolean |
allowsComments()
Whether or not comments are allowed |
java.lang.Boolean |
allowsPingbacks()
Whether or not pingbacks are allowed |
java.lang.Boolean |
allowsTrackbacks()
Whether or not trackbacks are allowed |
java.lang.Integer |
getAllowComments()
Determines whether or not this blog entry supports comments. |
java.lang.Integer |
getAllowPingbacks()
Determines whether or not this blog entry supports pingbacks. |
java.lang.Integer |
getAllowTrackbacks()
Determines whether or not this blog entry supports trackbacks. |
java.lang.String |
getAuthor()
Get the author |
Category |
getBlogCategory()
Get the Category object for this blog entry |
java.lang.Integer |
getBlogCategoryId()
Get the blog category ID |
java.lang.Integer |
getBlogId()
Get the blog ID |
java.lang.String |
getCategory()
Category for the blog entry. |
java.util.List |
getComments()
Get the comments |
Comment[] |
getCommentsAsArray()
Get the comments as an array of Comment 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 |
getEncodedPostSlug()
Get the post slug encoded as UTF-8 |
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 |
getEscapedTitle()
Title for the entry where the <, >, and & characters are escaped |
java.lang.Integer |
getId()
Get the entry ID |
java.lang.String |
getISO8601Date()
Return an ISO 8601 style date http://www.w3.org/TR/NOTE-datetime |
java.util.Map |
getMetaData()
Return meta data for this blog entry. |
java.util.Date |
getModifiedDate()
Get the last modified date |
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 |
java.util.List |
getPingbacks()
Get the pingbacks for this entry |
Pingback[] |
getPingbacksAsArray()
Get the pingbacks as an array of Pingbacks objects |
java.lang.String |
getPostSlug()
Get the post slug |
java.util.List |
getResponses()
Get the responses (comments, trackbacks, pingbacks) |
java.util.List |
getResponsesMatchingStatus(java.lang.String status)
Get the responses (comments, trackbacks, pingbacks) matching some status code |
java.util.List |
getResponsesNotMatchingStatus(java.lang.String status)
Get the responses (comments, trackbacks, pingbacks) not matching some status code |
java.lang.String |
getRFC822Date()
Return an RFC 822 style date |
java.lang.String |
getStatus()
Get the status |
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 |
void |
setAllowComments(java.lang.Integer allowComments)
Set whether comments are allowed |
void |
setAllowPingbacks(java.lang.Integer allowPingbacks)
Set whether pingbacks are allowed |
void |
setAllowTrackbacks(java.lang.Integer allowTrackbacks)
Set whether trackbacks are allowed |
void |
setAuthor(java.lang.String author)
Set the author |
void |
setBlogCategory(Category blogCategory)
Set the Category object for this blog entry |
void |
setBlogCategoryId(java.lang.Integer blogCategoryId)
Set the blog category ID |
void |
setBlogId(java.lang.Integer blogId)
Set the blog ID |
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 |
setId(java.lang.Integer id)
Set the entry ID |
void |
setMetaData(java.util.Map metaData)
Set the meta-data associated with this blog entry |
void |
setModifiedDate(java.util.Date modifiedDate)
Set the last modified date |
void |
setPingbacks(java.util.List pingbacks)
Set the pingbacks for this blog entry. |
void |
setPostSlug(java.lang.String postSlug)
Set the post slug |
void |
setStatus(java.lang.String status)
Set the status |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.Integer _id
protected java.lang.Integer _blogCategoryId
protected java.lang.Integer _blogId
protected java.lang.String _title
protected java.lang.String _link
protected java.lang.String _description
protected java.util.Date _entryDate
protected java.util.Date _modifiedDate
protected java.util.List _comments
protected java.util.List _trackbacks
protected java.util.List _pingbacks
protected Category _category
protected java.util.Map _metaData
protected java.lang.Integer _allowComments
protected java.lang.Integer _allowTrackbacks
protected java.lang.Integer _allowPingbacks
protected java.lang.String _status
protected java.lang.String _author
protected java.lang.String _postSlug
| Constructor Detail |
public DatabaseEntry()
| Method Detail |
public void setId(java.lang.Integer id)
setId in interface Entryid - Entry IDpublic java.lang.Integer getId()
getId in interface Entrypublic java.lang.Integer getBlogCategoryId()
getBlogCategoryId in interface Entrypublic void setBlogCategoryId(java.lang.Integer blogCategoryId)
setBlogCategoryId in interface EntryblogCategoryId - Blog category IDpublic java.lang.Integer getBlogId()
getBlogId in interface Entrypublic void setBlogId(java.lang.Integer blogId)
setBlogId in interface EntryblogId - Blog IDpublic java.util.Date getDate()
getDate in interface Entrypublic void setDate(java.util.Date entryDate)
setDate in interface EntryentryDate - Date of the blog entrypublic java.util.Date getModifiedDate()
getModifiedDate in interface Entrypublic void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate in interface EntrymodifiedDate - Last modified datepublic java.lang.String getRFC822Date()
getRFC822Date in interface Entrypublic java.lang.String getUTCDate()
getUTCDate in interface Entrypublic java.lang.String getISO8601Date()
getISO8601Date in interface Entrypublic java.lang.String getDateAsFormat(java.lang.String format)
getDateAsFormat in interface Entryformat - 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)
getDateAsFormat in interface Entryformat - 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()
getTitle in interface Entrypublic void setTitle(java.lang.String title)
setTitle in interface Entrytitle - Title for the blog entrypublic java.lang.String getEscapedTitle()
getEscapedTitle in interface Entrypublic java.lang.String getDescription()
getDescription in interface Entrypublic java.lang.String getEscapedDescription()
getEscapedDescription in interface Entrypublic void setDescription(java.lang.String description)
setDescription in interface Entrydescription - Description for the blog entrypublic java.lang.String getCategory()
getCategory in interface Entrypublic java.lang.String getEncodedCategory()
getEncodedCategory in interface Entrypublic java.lang.Integer getAllowComments()
getAllowComments in interface Entrytrue if the blog entry supports comments, false otherwisepublic java.util.List getComments()
getComments in interface Entrypublic void setComments(java.util.List comments)
List
of Comment. This method will not writeback or change the comments on disk.
setComments in interface Entrycomments - Comments for this entrypublic Comment[] getCommentsAsArray()
Comment objects
getCommentsAsArray in interface Entrypublic int getNumComments()
getNumComments in interface Entrynull, or the number of comments otherwise, which could be 0public java.lang.Integer getAllowTrackbacks()
getAllowTrackbacks in interface Entrytrue if the blog entry supports trackbacks, false otherwisepublic java.util.List getTrackbacks()
getTrackbacks in interface Entrypublic void setTrackbacks(java.util.List trackbacks)
List
of Trackback. This method will not writeback or change the trackbacks to disk.
setTrackbacks in interface Entrytrackbacks - Trackbacks for this entrypublic Trackback[] getTrackbacksAsArray()
getTrackbacksAsArray in interface Entrypublic int getNumTrackbacks()
getNumTrackbacks in interface Entrynull, or the number of trackbacks otherwise, which could be 0public Category getBlogCategory()
Category object for this blog entry
getBlogCategory in interface EntryCategory objectpublic void setBlogCategory(Category blogCategory)
Category object for this blog entry
setBlogCategory in interface EntryblogCategory - New Category objectpublic java.util.Map getMetaData()
null.
getMetaData in interface Entrypublic void setMetaData(java.util.Map metaData)
setMetaData in interface EntrymetaData - Meta-datapublic java.lang.Integer getAllowPingbacks()
getAllowPingbacks in interface Entrytrue if the blog entry supports pingbacks, false otherwisepublic java.util.List getPingbacks()
getPingbacks in interface EntryPingbackpublic void setPingbacks(java.util.List pingbacks)
List
of Pingback. This method will not writeback or change the pingbacks to disk.
setPingbacks in interface Entrypingbacks - Pingbacks for this entrypublic Pingback[] getPingbacksAsArray()
Pingbacks objects
getPingbacksAsArray in interface EntryPingback[] arraypublic int getNumPingbacks()
getNumPingbacks in interface Entrynull, or the number of pingbacks otherwise, which could be 0public void setAllowComments(java.lang.Integer allowComments)
setAllowComments in interface EntryallowComments - true if comments are allowed, false otherwisepublic void setAllowTrackbacks(java.lang.Integer allowTrackbacks)
setAllowTrackbacks in interface EntryallowTrackbacks - true if trackbacks are allowed, false otherwisepublic void setAllowPingbacks(java.lang.Integer allowPingbacks)
setAllowPingbacks in interface EntryallowPingbacks - true if pingbacks are allowed, false otherwisepublic java.lang.String getStatus()
getStatus in interface Entrypublic void setStatus(java.lang.String status)
setStatus in interface Entrystatus - Statuspublic java.lang.String getAuthor()
getAuthor in interface Entrypublic void setAuthor(java.lang.String author)
setAuthor in interface Entryauthor - Authorpublic java.lang.Boolean allowsComments()
allowsComments in interface Entrytrue if comments are allowed, false otherwisepublic java.lang.Boolean allowsTrackbacks()
allowsTrackbacks in interface Entrytrue if trackbacks are allowed, false otherwisepublic java.lang.Boolean allowsPingbacks()
allowsPingbacks in interface Entrytrue if pingbacks are allowed, false otherwisepublic java.lang.String getPostSlug()
getPostSlug in interface Entrypublic java.lang.String getEncodedPostSlug()
getEncodedPostSlug in interface Entrypublic void setPostSlug(java.lang.String postSlug)
setPostSlug in interface EntrypostSlug - Post slugpublic java.util.List getResponses()
getResponses in interface Entrypublic java.util.List getResponsesMatchingStatus(java.lang.String status)
getResponsesMatchingStatus in interface Entrystatus - Status code
public java.util.List getResponsesNotMatchingStatus(java.lang.String status)
getResponsesNotMatchingStatus in interface Entrystatus - Status code
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||