@Deprecated public interface Blog
Modifier and Type | Field and Description |
---|---|
static String |
ANONYMOUS
Deprecated.
|
static String |
AUTHOR_MAPPING_PREFIX
Deprecated.
|
static String |
DEFAULT_RESOURCE_TYPE
Deprecated.
|
static String |
DEFAULT_TEMPLATE
Deprecated.
|
static String |
DEFAULT_TITLE
Deprecated.
|
static String |
FEED_SUFFIX
Deprecated.
|
static String |
GENERATOR_NAME
Deprecated.
|
static String |
GENERATOR_URL
Deprecated.
|
static String |
NODE_ENTRIES
Deprecated.
|
static String |
PARAM_AUTHOR
Deprecated.
|
static String |
PARAM_PERIOD
Deprecated.
|
static String |
PARAM_QUERY
Deprecated.
|
static String |
PARAM_TAG
Deprecated.
|
static String |
PARAM_VIEW
Deprecated.
|
static String |
PROP_BLOG_ARCHIVE
Deprecated.
|
static String |
PROP_DESCRIPTION
Deprecated.
|
static String |
PROP_RESOURCE_TYPE
Deprecated.
|
static String |
PROP_TEMPLATE
Deprecated.
|
static String |
PROP_TITLE
Deprecated.
|
static String |
TRACKBACK_SUFFIX
Deprecated.
|
static String |
URL_SUFFIX
Deprecated.
|
static String |
VIEW_ARCHIVE
Deprecated.
|
static String |
VIEW_AUTHOR
Deprecated.
|
static String |
VIEW_DEFAULT
Deprecated.
|
static String |
VIEW_EDIT
Deprecated.
|
static String |
VIEW_NEW
Deprecated.
|
static String |
VIEW_SEARCH
Deprecated.
|
static String |
VIEW_TAG
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BlogEntry |
addEntry(String title,
String text,
Date date)
Deprecated.
Adds a new entry to this blog.
|
BlogEntry |
addPage(String title,
String text)
Deprecated.
Adds a new page to this blog.
|
String |
getAddEntryUrl(SlingHttpServletRequest request)
Deprecated.
Returns the URL where a new blog entry can be added, or
null if not available. |
BlogArchive |
getArchive(int max,
DateFormat dateFormat)
Deprecated.
Returns the archive for this blog.
|
String |
getArchiveAsHTML(int max,
DateFormat dateFormat)
Deprecated.
Returns an HTML list created from the archive of this blog.
|
String |
getArchiveAsHTML(int max,
DateFormat dateFormat,
ResourceBundle resourceBundle)
Deprecated.
Returns an HTML list created from the archive of this blog.
|
String |
getAuthorAsHTML(String author)
Deprecated.
Returns the specified author as an HTML link.
|
String |
getAuthorAsHTML(String author,
ResourceBundle resourceBundle)
Deprecated.
Returns the specified author as an HTML link.
|
String[] |
getAuthors()
Deprecated.
Returns all authors of this blog.
|
String |
getAuthorsAsHTML()
Deprecated.
Returns all authors of this blog as a list of HTML links.
|
String |
getAuthorsAsHTML(ResourceBundle resourceBundle)
Deprecated.
Returns all authors of this blog as a list of HTML links.
|
String |
getDescription()
Deprecated.
Returns the description of this blog.
|
List<BlogEntry> |
getEntries()
Deprecated.
Returns the entries in this blog.
|
List<BlogEntry> |
getEntries(BlogEntryFilter filter)
Deprecated.
Returns the entries in this blog using the specified filter.
|
List<BlogEntry> |
getEntries(List<BlogEntryFilter> filters)
Deprecated.
Returns the entries in this blog using the specified filters.
|
BlogEntry |
getEntry()
Deprecated.
Returns the blog entry if the underlying page is a blog entry page, or
null if it is a main blog
page. |
String |
getFeedUrl()
Deprecated.
Returns the URL of the feed for this blog as absolute URL.
|
String |
getFeedUrl(boolean absolute)
Deprecated.
Returns the URL of the feed for this blog.
|
String |
getFullUrl()
Deprecated.
Returns the full URL of this blog, including scheme, server name and port.
|
BlogEntry |
getNextEntry(BlogEntry refEntry)
Deprecated.
Returns the entry after the specified entry or
null if the specified entry is the last one. |
Page |
getPage()
Deprecated.
Returns the page associated with this blog.
|
List<BlogEntry> |
getPages()
Deprecated.
Returns the pages in this blog.
|
String |
getPagesAsHTML()
Deprecated.
Returns the pages in this blog as a list of HTML links.
|
BlogEntry |
getPreviousEntry(BlogEntry refEntry)
Deprecated.
Returns the entry before the specified entry or
null if the specified entry is the first one. |
Resource |
getResource()
Deprecated.
Returns the resource associated with this blog entry.
|
String |
getTagAsHTML(Tag tag)
Deprecated.
Returns the specified tag as an HTML link.
|
String |
getTagAsHTML(Tag tag,
ResourceBundle resourceBundle)
Deprecated.
Returns the specified tag as an HTML link.
|
int |
getTagCount(Tag tag)
Deprecated.
Returns the number of blog entries filed under the specified tag.
|
Tag[] |
getTags()
Deprecated.
Returns all tags entries in this blog are filed under.
|
String |
getTagsAsHTML()
Deprecated.
Returns all tags entries in this blog are filed under as a list of HTML links.
|
String |
getTagsAsHTML(ResourceBundle resourceBundle)
Deprecated.
Returns all tags entries in this blog are filed under as a list of HTML links.
|
String |
getTitle()
Deprecated.
Returns the title of this blog.
|
String |
getUrl()
Deprecated.
Returns the server-local URL of this blog, omitting scheme, server name and port number.
|
String |
getViewUrl(String view)
Deprecated.
Returns the URL for view of this blog.
|
boolean |
isArchive()
Deprecated.
Returns whether the underlying resource is a blog archive, i.e.
|
boolean |
isEmpty()
Deprecated.
Returns whether the blog contains any blog entries.
|
boolean |
isEntry()
Deprecated.
Returns whether the underlying resource is a blog entry.
|
boolean |
isModified()
Deprecated.
Returns whether this blog has been modified and needs to be saved.
|
void |
save()
Deprecated.
Saves all changes made to this blog.
|
void |
setDescription(String desc)
Deprecated.
Sets the description of this blog.
|
void |
setTitle(String title)
Deprecated.
Sets the title of this blog.
|
static final String ANONYMOUS
static final String NODE_ENTRIES
static final String URL_SUFFIX
static final String FEED_SUFFIX
static final String TRACKBACK_SUFFIX
static final String GENERATOR_NAME
static final String GENERATOR_URL
static final String PARAM_VIEW
static final String PARAM_PERIOD
static final String PARAM_QUERY
static final String PARAM_TAG
static final String PARAM_AUTHOR
static final String VIEW_DEFAULT
static final String VIEW_NEW
static final String VIEW_EDIT
static final String VIEW_SEARCH
static final String VIEW_ARCHIVE
static final String VIEW_AUTHOR
static final String VIEW_TAG
static final String PROP_TITLE
static final String PROP_DESCRIPTION
static final String PROP_TEMPLATE
static final String PROP_RESOURCE_TYPE
static final String PROP_BLOG_ARCHIVE
static final String DEFAULT_TEMPLATE
static final String DEFAULT_RESOURCE_TYPE
static final String DEFAULT_TITLE
static final String AUTHOR_MAPPING_PREFIX
List<BlogEntry> getEntries()
List<BlogEntry> getEntries(BlogEntryFilter filter)
filter
- The blog entry filterList<BlogEntry> getEntries(List<BlogEntryFilter> filters)
filters
- The blog entry filtersList<BlogEntry> getPages()
String getPagesAsHTML()
getPages()
BlogEntry addEntry(String title, String text, Date date)
title
- The title of the blog entrytext
- The text of the blog entrydate
- The date of the blog entry (optional)BlogEntry addPage(String title, String text)
title
- The title of the blog entrytext
- The text of the blog entryBlogEntry getPreviousEntry(BlogEntry refEntry)
null
if the specified entry is the first one.refEntry
- The reference entryBlogEntry getNextEntry(BlogEntry refEntry)
null
if the specified entry is the last one.refEntry
- The reference entryTag[] getTags()
String getTagAsHTML(Tag tag)
tag
- The tagString getTagAsHTML(Tag tag, ResourceBundle resourceBundle)
tag
- The tagresourceBundle
- ResourceBundle
to use for translationsString getTagsAsHTML()
String getTagsAsHTML(ResourceBundle resourceBundle)
resourceBundle
- ResourceBundle
to use for translationsint getTagCount(Tag tag)
tag
- The tagString[] getAuthors()
String getAuthorAsHTML(String author)
author
- The author nameString getAuthorAsHTML(String author, ResourceBundle resourceBundle)
author
- The author nameresourceBundle
- ResourceBundle
to use for translationsString getAuthorsAsHTML()
String getAuthorsAsHTML(ResourceBundle resourceBundle)
resourceBundle
- ResourceBundle
to use for translationsPage getPage()
Resource getResource()
BlogEntry getEntry()
null
if it is a main blog
page.boolean isEntry()
true
if the underlying resource is a blog entry, false
otherwiseboolean isArchive()
true
if the underlying resource is a blog archive, false
otherwiseString getTitle()
void setTitle(String title)
title
- The titleString getDescription()
void setDescription(String desc)
desc
- The descriptionString getUrl()
String getFullUrl()
String getFeedUrl()
String getFeedUrl(boolean absolute)
absolute
- true if the URL should be absolute (http://server.com/blog), false if it should be relative
(/blog)String getViewUrl(String view)
VIEW_DEFAULT
(default)VIEW_EDIT
VIEW_SEARCH
VIEW_ARCHIVE
view
- The viewString getAddEntryUrl(SlingHttpServletRequest request)
null
if not available.request
- The requestboolean isEmpty()
true
if blog is empty, false
otherwiseBlogArchive getArchive(int max, DateFormat dateFormat)
max
- The maximum number of items (optional)dateFormat
- The date format (optional)String getArchiveAsHTML(int max, DateFormat dateFormat)
max
- The maximum number of items (optional)dateFormat
- The date format (optional)String getArchiveAsHTML(int max, DateFormat dateFormat, ResourceBundle resourceBundle)
max
- The maximum number of items (optional)dateFormat
- The date format (optional)resourceBundle
- ResourceBundle
to use for translationsboolean isModified()
true
if blog is modified, false
otherwisesave()
void save() throws BlogException
BlogException
- if saving fails"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"