|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.blog.Trackback
Trackback
Field Summary | |
protected BlogEntry |
_blogEntry
|
protected java.lang.String |
_blogName
|
protected java.lang.String |
_excerpt
|
protected java.lang.String |
_id
|
protected java.util.Map |
_metaData
|
protected java.lang.String |
_title
|
protected java.util.Date |
_trackbackDate
|
protected long |
_trackbackDateLong
|
protected java.lang.String |
_url
|
Constructor Summary | |
Trackback()
Default constructor |
|
Trackback(java.lang.String title,
java.lang.String excerpt,
java.lang.String url,
java.lang.String blogName)
Trackback constructor to take a title, excerpt, url, and blog name |
Method Summary | |
abstract void |
delete(BlogUser blogUser)
Delete the trackback |
BlogEntry |
getBlogEntry()
Retrieve the BlogEntry associated with this trackback |
java.lang.String |
getBlogName()
Get the blog name of the trackback |
java.lang.String |
getDateAsFormat(java.lang.String format)
Return the trackback date formatted with a specified date format |
java.lang.String |
getDateAsFormat(java.lang.String format,
java.util.Locale locale)
Return the trackback date formatted with a specified date format |
java.lang.String |
getExcerpt()
Get the excerpt of the trackback |
java.lang.String |
getId()
Get the id of this blog comments |
java.util.Map |
getMetaData()
Get the trackback meta-data |
java.lang.String |
getTitle()
Get the title of the trackback |
java.util.Date |
getTrackbackDate()
Retrieve the date this trackback was created |
long |
getTrackbackDateLong()
Get the date of the trackback |
java.lang.String |
getUrl()
Get the url of the trackback |
abstract void |
load(BlogUser blogUser)
Load the trackback |
abstract void |
save(BlogUser blogUser)
Save the trackback |
void |
setBlogEntry(BlogEntry blogEntry)
Set the BlogEntry associated with this trackback |
void |
setBlogName(java.lang.String blogName)
Set the blog name of the trackback |
void |
setExcerpt(java.lang.String excerpt)
Set the excerpt of the trackback |
void |
setId(java.lang.String id)
Set the id of this blog comment. |
void |
setMetaData(java.util.Map metaData)
Set the trackback meta-data |
void |
setTitle(java.lang.String title)
Set the title of the trackback |
void |
setTrackbackDate(java.util.Date trackbackDate)
Set the trackback date |
void |
setTrackbackDateLong(long trackbackDateLong)
Set the date for the trackback |
void |
setUrl(java.lang.String url)
Set the url of the trackback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String _title
protected java.lang.String _excerpt
protected java.lang.String _url
protected java.lang.String _blogName
protected java.util.Date _trackbackDate
protected long _trackbackDateLong
protected java.lang.String _id
protected java.util.Map _metaData
protected BlogEntry _blogEntry
Constructor Detail |
public Trackback()
public Trackback(java.lang.String title, java.lang.String excerpt, java.lang.String url, java.lang.String blogName)
title
- Title of the trackbackexcerpt
- Excerpt from the trackbackurl
- Url for the trackbackblogName
- Blog name of the trackbackMethod Detail |
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- Trackback titlepublic java.lang.String getExcerpt()
public void setExcerpt(java.lang.String excerpt)
excerpt
- Trackback excerptpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- Trackback urlpublic java.lang.String getBlogName()
public java.util.Map getMetaData()
Map
public void setBlogName(java.lang.String blogName)
blogName
- Trackback blog namepublic void setTrackbackDateLong(long trackbackDateLong)
trackbackDateLong
- Trackback date as a long
valuepublic long getTrackbackDateLong()
long
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 trackbackpublic java.lang.String getDateAsFormat(java.lang.String format)
format
- Date format
null
if the format is null, otherwise returns the trackback date formatted to
the specified format. If the format is invalid, returns trackbackDate.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 trackbackDate.toString()public BlogEntry getBlogEntry()
BlogEntry
associated with this trackback
BlogEntry
public void setBlogEntry(BlogEntry blogEntry)
BlogEntry
associated with this trackback
blogEntry
- BlogEntry
public java.util.Date getTrackbackDate()
public void setTrackbackDate(java.util.Date trackbackDate)
trackbackDate
- Trackback datepublic 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 |