| java.lang.Object org.blojsom.blog.database.DatabaseEntry
DatabaseEntry | public class DatabaseEntry implements Entry,Serializable(Code) | | DatabaseEntry
author: David Czarnecki since: blojsom 3.0 version: $Id: DatabaseEntry.java,v 1.7 2007/01/17 02:35:16 czarneckid Exp $ |
DatabaseEntry | public DatabaseEntry()(Code) | | Create a new instance of the database entry
|
allowsComments | public Boolean allowsComments()(Code) | | Whether or not comments are allowed
true if comments are allowed, false otherwise |
allowsPingbacks | public Boolean allowsPingbacks()(Code) | | Whether or not pingbacks are allowed
true if pingbacks are allowed, false otherwise |
allowsTrackbacks | public Boolean allowsTrackbacks()(Code) | | Whether or not trackbacks are allowed
true if trackbacks are allowed, false otherwise |
getAllowComments | public Integer getAllowComments()(Code) | | Determines whether or not this blog entry supports comments.
true if the blog entry supports comments, false otherwise |
getAllowPingbacks | public Integer getAllowPingbacks()(Code) | | Determines whether or not this blog entry supports pingbacks.
true if the blog entry supports pingbacks, false otherwise |
getAllowTrackbacks | public Integer getAllowTrackbacks()(Code) | | Determines whether or not this blog entry supports trackbacks.
true if the blog entry supports trackbacks, false otherwise |
getAuthor | public String getAuthor()(Code) | | Get the author
Author |
getBlogCategoryId | public Integer getBlogCategoryId()(Code) | | Get the blog category ID
Blog category ID |
getBlogId | public Integer getBlogId()(Code) | | Get the blog ID
Blog ID |
getCategory | public String getCategory()(Code) | | Category for the blog entry. This corresponds to the category directory name.
Blog entry category |
getComments | public List getComments()(Code) | | Get the comments
List of comments |
getCommentsAsArray | public Comment[] getCommentsAsArray()(Code) | | Get the comments as an array of
Comment objects
BlogComment[] array |
getDate | public Date getDate()(Code) | | Date of the blog entry
This value is constructed from the lastModified value of the file
Date of the blog entry |
getDateAsFormat | public String getDateAsFormat(String format)(Code) | | Return the blog entry date formatted with a specified date format
Parameters: 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() |
getDateAsFormat | public String getDateAsFormat(String format, Locale locale)(Code) | | Return the blog entry date formatted with a specified date format
Parameters: format - Date format Parameters: locale - 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() |
getDescription | public String getDescription()(Code) | | Description of the blog entry
Blog entry description |
getEncodedCategory | public String getEncodedCategory()(Code) | | Return the category name encoded.
Category name encoded as UTF-8 |
getEncodedPostSlug | public String getEncodedPostSlug()(Code) | | Get the post slug encoded as UTF-8
Post slug encoded as UTF-8 |
getEscapedDescription | public String getEscapedDescription()(Code) | | Escaped description of the blog entry
This method would be used for generating RSS feeds where the <, >, and & characters are escaped
Blog entry description where &, <, and > have been escaped |
getEscapedTitle | public String getEscapedTitle()(Code) | | Title for the entry where the <, >, and & characters are escaped
Escaped entry title |
getISO8601Date | public String getISO8601Date()(Code) | | Return an ISO 8601 style date
http://www.w3.org/TR/NOTE-datetime
Date formatted in ISO 8601 format |
getMetaData | public Map getMetaData()(Code) | | Return meta data for this blog entry. This method may return null .
Meta data |
getModifiedDate | public Date getModifiedDate()(Code) | | Get the last modified date
Last modified date |
getNumComments | public int getNumComments()(Code) | | Get the number of comments for this entry
0 if comments is null , or the number of comments otherwise, which could be 0 |
getNumPingbacks | public int getNumPingbacks()(Code) | | Get the number of pingbacks for this entry
0 if pingbacks is null , or the number of pingbacks otherwise, which could be 0 |
getNumTrackbacks | public int getNumTrackbacks()(Code) | | Get the number of trackbacks for this entry
0 if trackbacks is null , or the number of trackbacks otherwise, which could be 0 |
getPostSlug | public String getPostSlug()(Code) | | Get the post slug
Post slug |
getRFC822Date | public String getRFC822Date()(Code) | | Return an RFC 822 style date
Date formatted in RFC 822 format |
getResponses | public List getResponses()(Code) | | Get the responses (comments, trackbacks, pingbacks)
Responses (comments, trackbacks, pingbacks) |
getResponsesMatchingStatus | public List getResponsesMatchingStatus(String status)(Code) | | Get the responses (comments, trackbacks, pingbacks) matching some status code
Parameters: status - Status code Responses (comments, trackbacks, pingbacks) matching some status code |
getResponsesNotMatchingStatus | public List getResponsesNotMatchingStatus(String status)(Code) | | Get the responses (comments, trackbacks, pingbacks) not matching some status code
Parameters: status - Status code Responses (comments, trackbacks, pingbacks) not matching some status code |
getStatus | public String getStatus()(Code) | | Get the status
Status |
getTitle | public String getTitle()(Code) | | Title of the blog entry
Blog title |
getTrackbacks | public List getTrackbacks()(Code) | | Get the trackbacks
List of trackbacks |
getTrackbacksAsArray | public Trackback[] getTrackbacksAsArray()(Code) | | Get the trackbacks as an array of Trackback objects
Trackback[] array |
getUTCDate | public String getUTCDate()(Code) | | Return an UTC style date
Date formatted in UTC format |
setAllowComments | public void setAllowComments(Integer allowComments)(Code) | | Set whether comments are allowed
Parameters: allowComments - true if comments are allowed, false otherwise |
setAllowPingbacks | public void setAllowPingbacks(Integer allowPingbacks)(Code) | | Set whether pingbacks are allowed
Parameters: allowPingbacks - true if pingbacks are allowed, false otherwise |
setAllowTrackbacks | public void setAllowTrackbacks(Integer allowTrackbacks)(Code) | | Set whether trackbacks are allowed
Parameters: allowTrackbacks - true if trackbacks are allowed, false otherwise |
setAuthor | public void setAuthor(String author)(Code) | | Set the author
Parameters: author - Author |
setBlogCategoryId | public void setBlogCategoryId(Integer blogCategoryId)(Code) | | Set the blog category ID
Parameters: blogCategoryId - Blog category ID |
setBlogId | public void setBlogId(Integer blogId)(Code) | | Set the blog ID
Parameters: blogId - Blog ID |
setComments | public void setComments(List comments)(Code) | | Set the comments for this blog entry. The comments must be an List
of
Comment . This method will not writeback or change the comments on disk.
Parameters: comments - Comments for this entry |
setDate | public void setDate(Date entryDate)(Code) | | Date of this blog entry
Parameters: entryDate - Date of the blog entry |
setDescription | public void setDescription(String description)(Code) | | Set the description for the blog entry
Parameters: description - Description for the blog entry |
setId | public void setId(Integer id)(Code) | | Set the entry ID
Parameters: id - Entry ID |
setMetaData | public void setMetaData(Map metaData)(Code) | | Set the meta-data associated with this blog entry
Parameters: metaData - Meta-data |
setModifiedDate | public void setModifiedDate(Date modifiedDate)(Code) | | Set the last modified date
Parameters: modifiedDate - Last modified date |
setPostSlug | public void setPostSlug(String postSlug)(Code) | | Set the post slug
Parameters: postSlug - Post slug |
setStatus | public void setStatus(String status)(Code) | | Set the status
Parameters: status - Status |
setTitle | public void setTitle(String title)(Code) | | Set the title of the blog entry
Parameters: title - Title for the blog entry |
setTrackbacks | public void setTrackbacks(List trackbacks)(Code) | | Set the trackbacks for this blog entry. The trackbacks must be an List
of
org.blojsom.blog.Trackback . This method will not writeback or change the trackbacks to disk.
Parameters: trackbacks - Trackbacks for this entry |
|
|