@Deprecated public interface BlogEntry
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PAR_NAME
Deprecated.
|
static String |
DEFAULT_TEXT
Deprecated.
|
static String |
FIELD_INDEX_CATEGORY_DATE
Deprecated.
|
static String |
FIELD_INDEX_CATEGORY_YEAR
Deprecated.
|
static String |
FIELD_INDEX_MODIFIED_DATE
Deprecated.
|
static String |
NODE_COMMENTS
Deprecated.
|
static String |
NODE_TEXT
Deprecated.
|
static String |
NODE_TRACKBACKS
Deprecated.
|
static String |
PROP_AUTHOR
Deprecated.
|
static String |
PROP_CREATED
Deprecated.
|
static String |
PROP_ID
Deprecated.
|
static String |
PROP_LASTMODIFIED
Deprecated.
|
static String |
PROP_LASTMODIFIEDBY
Deprecated.
|
static String |
PROP_LASTREPLICATED
Deprecated.
|
static String |
PROP_LASTREPLICATEDBY
Deprecated.
|
static String |
PROP_PUBLISHED
Deprecated.
|
static String |
PROP_TAGS
Deprecated.
|
static String |
PROP_TEXT
Deprecated.
|
static String |
PROP_TITLE
Deprecated.
|
static String |
TYPE_COMMENTS
Deprecated.
|
static String |
TYPE_PARSYS
Deprecated.
|
static String |
TYPE_TEXT
Deprecated.
|
static String |
TYPE_TITLE
Deprecated.
|
static String |
TYPE_TRACKBACKS
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Comment |
addComment(String text,
String author)
Deprecated.
Adds a comment to this blog entry sing the specified text.
|
void |
addTrackback(String title,
String excerpt,
String url,
String blogName,
String ip)
Deprecated.
Adds a trackback to this blog entry.
|
int |
countComments()
Deprecated.
Returns the number of comments (including comments to comments).
|
List<String> |
getAttachments()
Deprecated.
Returns the paths to the attachments of this blog entry.
|
String |
getAuthor()
Deprecated.
Returns the author of this blog entry.
|
Blog |
getBlog()
Deprecated.
Returns the blog this blog entry belongs to or
null if no blog can be found. |
Iterator<Comment> |
getComments()
Deprecated.
Returns all comments (including comments to comments) to this blog entry in chronological order.
|
Resource |
getContentResource()
Deprecated.
Returns the content resource of this blog entry.
|
Date |
getDate()
Deprecated.
Returns the date this blog entry has been published on.
|
String |
getEditUrl(SlingHttpServletRequest request)
Deprecated.
Returns the URL this blog entry can be edited at, or
null if not available. |
String |
getFeedUrl()
Deprecated.
Returns the URL of the feed for this blog entry as absolute URL.
|
String |
getFeedUrl(boolean absolute)
Deprecated.
Returns the URL of the feed for this blog entry.
|
String |
getFullUrl()
Deprecated.
Returns the full URL of this blog entry, including scheme, server name and port.
|
String |
getId()
Deprecated.
Returns the unique ID of this blog entry.
|
Page |
getPage()
Deprecated.
Returns the page associated with this blog entry.
|
Resource |
getResource()
Deprecated.
Returns the resource associated with this blog entry.
|
Tag[] |
getTags()
Deprecated.
Returns the tags associated with this blog entry.
|
String |
getTagsAsHTML()
Deprecated.
Returns a comma-separated string of HTML links for the specified tags.
|
String |
getTagsAsHTML(ResourceBundle resourceBundle)
Deprecated.
Returns a comma-separated string of HTML links for the specified tags.
|
String |
getTagsAsString()
Deprecated.
Returns a comma-separated string of names the specified tags.
|
String |
getText()
Deprecated.
Returns the text of this blog entry.
|
String |
getTitle()
Deprecated.
Returns the title of this blog entry.
|
String |
getTrackBackUrl()
Deprecated.
Returns the track back URL for this blog entry.
|
String |
getUrl()
Deprecated.
Returns the server-local URL of this blog entry, omitting scheme, server name and port number.
|
boolean |
hasAttachments()
Deprecated.
Returns
true if this blog entry has one or more attachments. |
boolean |
hasComments()
Deprecated.
Returns
true if this blog entry has one or more comments. |
boolean |
hasTag(String path)
Deprecated.
Returns
true if this blog entry is filed under the tag at the specified path. |
boolean |
isDraft()
Deprecated.
Returns
true if this blog entry is an unpublished draft. |
boolean |
isModified()
Deprecated.
Returns whether this blog entry has been modified and needs to be saved.
|
boolean |
isPage()
Deprecated.
Returns
true if this blog entry is a page that doesn't show up in the timeline of the blog, e.g. |
void |
save()
Deprecated.
Saves all changes made to this blog entry.
|
void |
setAuthor(String author)
Deprecated.
Sets the author of this blog entry.
|
void |
setDate(Date date)
Deprecated.
Sets the date this blog entry has been published on.
|
void |
setId(String id)
Deprecated.
Sets the unique ID of this blog entry.
|
void |
setTags(Tag[] tags)
Deprecated.
Sets the tags associated with this blog entry.
|
void |
setText(String text)
Deprecated.
Sets the text of this blog entry.
|
void |
setTitle(String title)
Deprecated.
Sets the title of this blog entry.
|
static final String DEFAULT_TEXT
static final String PROP_ID
static final String PROP_TITLE
static final String PROP_TEXT
static final String PROP_TAGS
static final String PROP_AUTHOR
static final String PROP_CREATED
static final String PROP_LASTMODIFIED
static final String PROP_LASTMODIFIEDBY
static final String PROP_PUBLISHED
static final String PROP_LASTREPLICATED
static final String PROP_LASTREPLICATEDBY
static final String NODE_TEXT
static final String NODE_COMMENTS
static final String NODE_TRACKBACKS
static final String TYPE_TITLE
static final String TYPE_TEXT
static final String TYPE_COMMENTS
static final String TYPE_TRACKBACKS
static final String TYPE_PARSYS
static final String DEFAULT_PAR_NAME
static final String FIELD_INDEX_MODIFIED_DATE
static final String FIELD_INDEX_CATEGORY_DATE
static final String FIELD_INDEX_CATEGORY_YEAR
String getId()
void setId(String id)
id
- The IDString getTitle()
void setTitle(String title)
title
- The titleResource getContentResource()
String getText()
void setText(String text)
text
- The textString getAuthor()
void setAuthor(String author)
author
- The authorDate getDate()
void setDate(Date date)
date
- The dateTag[] getTags()
void setTags(Tag[] tags)
TagManager
in order to
retrieve and/or create tags.tags
- The tagsString getTagsAsString()
String getTagsAsHTML()
String getTagsAsHTML(ResourceBundle resourceBundle)
resourceBundle
- ResourceBundle
to use for translationsList<String> getAttachments()
Iterator<Comment> getComments()
int countComments()
Comment addComment(String text, String author)
text
- The textauthor
- The author of the comment (optional)void addTrackback(String title, String excerpt, String url, String blogName, String ip)
title
- The titleexcerpt
- The excerpt of the trackbackblogName
- The author's blogNameurl
- The URL of the author's websiteip
- The ip of the authorBlog getBlog()
null
if no blog can be found.Resource getResource()
Page getPage()
String getUrl()
String getFullUrl()
String getFeedUrl()
getFeedUrl(true)
.String getFeedUrl(boolean absolute)
absolute
- true if the URL should be absolute (http://server.com/blog), false if it should be relative
(/blog)String getTrackBackUrl()
String getEditUrl(SlingHttpServletRequest request)
null
if not available.request
- The requestboolean isPage()
true
if this blog entry is a page that doesn't show up in the timeline of the blog, e.g.
an "About" page.true
if blog entry is a page, false
otherwiseboolean isDraft()
true
if this blog entry is an unpublished draft.true
if blog entry is a draft, false
otherwiseboolean hasTag(String path)
true
if this blog entry is filed under the tag at the specified path.path
- the tag pathtrue
if blog entry has this tag, false
otherwiseboolean hasAttachments()
true
if this blog entry has one or more attachments.true
if blog entry has attachments, false
otherwiseboolean hasComments()
true
if this blog entry has one or more comments.true
if blog entry has comments, false
otherwiseboolean isModified()
true
if blog entry is modified, false
otherwisesave()
void save() throws BlogException
BlogException
- if saving fails"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"