|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlogEntry
BlogEntry represents a blog entry.
| Field Summary | |
|---|---|
static String |
DEFAULT_TEXT
|
static String |
NODE_COMMENTS
|
static String |
NODE_ENTRY
|
static String |
PATH_USERCONTENT
|
static String |
PROP_CREATED
|
static String |
PROP_LASTMODIFIED
|
static String |
PROP_LASTMODIFIEDBY
|
static String |
PROP_LASTPUBLISHED
|
static String |
PROP_LASTPUBLISHEDBY
|
static String |
PROP_TEXT
|
static String |
PROP_TITLE
|
static String |
TYPE_BLOGENTRY
|
| Method Summary | |
|---|---|
void |
addComment(String text,
String author,
String email,
String url)
Adds a comment to this blog entry. |
List<String> |
getAttachments()
Returns the paths to the attachments of this blog entry. |
String |
getAuthor()
Returns the author of this blog entry. |
Blog |
getBlog()
Returns the blog this blog entry belongs to or null
if no blog can be found. |
ParagraphSystem |
getComments()
Returns a paragraph system with the comments for this blog entry. |
Date |
getDate()
Returns the date this blog entry has been created. |
String |
getFeedUrl()
Returns the URL of the feed for this blog entry. |
String |
getFullUrl()
Returns the full URL of this blog entry, including scheme, server name and port. |
Page |
getPage()
Returns the page associated with this blog entry. |
org.apache.sling.api.resource.Resource |
getResource()
Returns the resource associated with this blog entry. |
com.day.cq.tagging.Tag[] |
getTags()
Returns the tags associated with this blog entry. |
String |
getTagsAsHTML()
Returns a comma-separated string of HTML links for the specified tags. |
String |
getText()
Returns the text of this blog entry. |
String |
getTitle()
Returns the title of this blog entry. |
String |
getTrackBackUrl()
Returns the track back URL for this blog entry. |
String |
getUrl()
Returns the server-local URL of this blog entry, omitting scheme, server name and port number. |
boolean |
hasAttachments()
Returns true if this blog entry has one or more
attachments. |
boolean |
hasComments()
Returns true if this blog entry has one or more comments. |
boolean |
hasTag(String path)
Returns true if this blog entry is filed under
the tag at the specified path. |
boolean |
isModified()
Returns whether this blog entry has been modified and needs to be saved. |
void |
save()
Saves all changes made to this blog entry. |
void |
setAuthor(String author)
Sets the author of this blog entry. |
void |
setTags(com.day.cq.tagging.Tag[] tags)
Sets the tags associated with this blog entry. |
void |
setText(String text)
Sets the text of this blog entry. |
void |
setTitle(String title)
Sets the title of this blog entry. |
| Field Detail |
|---|
static final String DEFAULT_TEXT
static final String PROP_TITLE
static final String PROP_TEXT
static final String PROP_CREATED
static final String PROP_LASTMODIFIED
static final String PROP_LASTMODIFIEDBY
static final String PROP_LASTPUBLISHED
static final String PROP_LASTPUBLISHEDBY
static final String NODE_ENTRY
static final String NODE_COMMENTS
static final String PATH_USERCONTENT
static final String TYPE_BLOGENTRY
| Method Detail |
|---|
String getTitle()
void setTitle(String title)
title - The titleString getText()
void setText(String text)
text - The textString getAuthor()
void setAuthor(String author)
author - The authorDate getDate()
com.day.cq.tagging.Tag[] getTags()
void setTags(com.day.cq.tagging.Tag[] tags)
TagManager in order to retrieve
and/or create tags.
tags - The tagsString getTagsAsHTML()
List<String> getAttachments()
ParagraphSystem getComments()
void addComment(String text,
String author,
String email,
String url)
throws BlogException
text - The textauthor - The author of the commentemail - The author's e-mail addressurl - The URL of the author's website
BlogException - If the comment cannot be createdBlog getBlog()
null
if no blog can be found.
org.apache.sling.api.resource.Resource getResource()
Page getPage()
String getUrl()
String getFullUrl()
String getFeedUrl()
String getTrackBackUrl()
boolean hasTag(String path)
true if this blog entry is filed under
the tag at the specified path.
path - the tag path
true 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||