|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Pingback s 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 Entry
id
- Entry IDpublic java.lang.Integer getId()
getId
in interface Entry
public java.lang.Integer getBlogCategoryId()
getBlogCategoryId
in interface Entry
public void setBlogCategoryId(java.lang.Integer blogCategoryId)
setBlogCategoryId
in interface Entry
blogCategoryId
- Blog category IDpublic java.lang.Integer getBlogId()
getBlogId
in interface Entry
public void setBlogId(java.lang.Integer blogId)
setBlogId
in interface Entry
blogId
- Blog IDpublic java.util.Date getDate()
getDate
in interface Entry
public void setDate(java.util.Date entryDate)
setDate
in interface Entry
entryDate
- Date of the blog entrypublic java.util.Date getModifiedDate()
getModifiedDate
in interface Entry
public void setModifiedDate(java.util.Date modifiedDate)
setModifiedDate
in interface Entry
modifiedDate
- Last modified datepublic java.lang.String getRFC822Date()
getRFC822Date
in interface Entry
public java.lang.String getUTCDate()
getUTCDate
in interface Entry
public java.lang.String getISO8601Date()
getISO8601Date
in interface Entry
public java.lang.String getDateAsFormat(java.lang.String format)
getDateAsFormat
in interface Entry
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)
getDateAsFormat
in interface Entry
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()
getTitle
in interface Entry
public void setTitle(java.lang.String title)
setTitle
in interface Entry
title
- Title for the blog entrypublic java.lang.String getEscapedTitle()
getEscapedTitle
in interface Entry
public java.lang.String getDescription()
getDescription
in interface Entry
public java.lang.String getEscapedDescription()
getEscapedDescription
in interface Entry
public void setDescription(java.lang.String description)
setDescription
in interface Entry
description
- Description for the blog entrypublic java.lang.String getCategory()
getCategory
in interface Entry
public java.lang.String getEncodedCategory()
getEncodedCategory
in interface Entry
public java.lang.Integer getAllowComments()
getAllowComments
in interface Entry
true
if the blog entry supports comments, false
otherwisepublic java.util.List getComments()
getComments
in interface Entry
public void setComments(java.util.List comments)
List
of Comment
. This method will not writeback or change the comments on disk.
setComments
in interface Entry
comments
- Comments for this entrypublic Comment[] getCommentsAsArray()
Comment
objects
getCommentsAsArray
in interface Entry
public int getNumComments()
getNumComments
in interface Entry
null
, or the number of comments otherwise, which could be 0public java.lang.Integer getAllowTrackbacks()
getAllowTrackbacks
in interface Entry
true
if the blog entry supports trackbacks, false
otherwisepublic java.util.List getTrackbacks()
getTrackbacks
in interface Entry
public void setTrackbacks(java.util.List trackbacks)
List
of Trackback
. This method will not writeback or change the trackbacks to disk.
setTrackbacks
in interface Entry
trackbacks
- Trackbacks for this entrypublic Trackback[] getTrackbacksAsArray()
getTrackbacksAsArray
in interface Entry
public int getNumTrackbacks()
getNumTrackbacks
in interface Entry
null
, or the number of trackbacks otherwise, which could be 0public Category getBlogCategory()
Category
object for this blog entry
getBlogCategory
in interface Entry
Category
objectpublic void setBlogCategory(Category blogCategory)
Category
object for this blog entry
setBlogCategory
in interface Entry
blogCategory
- New Category
objectpublic java.util.Map getMetaData()
null
.
getMetaData
in interface Entry
public void setMetaData(java.util.Map metaData)
setMetaData
in interface Entry
metaData
- Meta-datapublic java.lang.Integer getAllowPingbacks()
getAllowPingbacks
in interface Entry
true
if the blog entry supports pingbacks, false
otherwisepublic java.util.List getPingbacks()
getPingbacks
in interface Entry
Pingback
public void setPingbacks(java.util.List pingbacks)
List
of Pingback
. This method will not writeback or change the pingbacks to disk.
setPingbacks
in interface Entry
pingbacks
- Pingback
s for this entrypublic Pingback[] getPingbacksAsArray()
Pingback
s objects
getPingbacksAsArray
in interface Entry
Pingback
[] arraypublic int getNumPingbacks()
getNumPingbacks
in interface Entry
null
, or the number of pingbacks otherwise, which could be 0public void setAllowComments(java.lang.Integer allowComments)
setAllowComments
in interface Entry
allowComments
- true
if comments are allowed, false
otherwisepublic void setAllowTrackbacks(java.lang.Integer allowTrackbacks)
setAllowTrackbacks
in interface Entry
allowTrackbacks
- true
if trackbacks are allowed, false
otherwisepublic void setAllowPingbacks(java.lang.Integer allowPingbacks)
setAllowPingbacks
in interface Entry
allowPingbacks
- true
if pingbacks are allowed, false
otherwisepublic java.lang.String getStatus()
getStatus
in interface Entry
public void setStatus(java.lang.String status)
setStatus
in interface Entry
status
- Statuspublic java.lang.String getAuthor()
getAuthor
in interface Entry
public void setAuthor(java.lang.String author)
setAuthor
in interface Entry
author
- Authorpublic java.lang.Boolean allowsComments()
allowsComments
in interface Entry
true
if comments are allowed, false
otherwisepublic java.lang.Boolean allowsTrackbacks()
allowsTrackbacks
in interface Entry
true
if trackbacks are allowed, false
otherwisepublic java.lang.Boolean allowsPingbacks()
allowsPingbacks
in interface Entry
true
if pingbacks are allowed, false
otherwisepublic java.lang.String getPostSlug()
getPostSlug
in interface Entry
public java.lang.String getEncodedPostSlug()
getEncodedPostSlug
in interface Entry
public void setPostSlug(java.lang.String postSlug)
setPostSlug
in interface Entry
postSlug
- Post slugpublic java.util.List getResponses()
getResponses
in interface Entry
public java.util.List getResponsesMatchingStatus(java.lang.String status)
getResponsesMatchingStatus
in interface Entry
status
- Status code
public java.util.List getResponsesNotMatchingStatus(java.lang.String status)
getResponsesNotMatchingStatus
in interface Entry
status
- Status code
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |