public interface BlogManager
BlogManager
is a central interface to manage blogs and blog entries. To retrieve a BlogManager, please
use ResourceResolver#adaptTo(Class)
.Modifier and Type | Method and Description |
---|---|
Blog |
createBlog(String path,
String title)
Creates a
Blog at path using the specified title and description. |
Blog |
getBlog(SlingHttpServletRequest req)
Returns the
Blog for the specified request. |
Blog |
getBlog(SlingHttpServletRequest req,
String path)
Returns the
Blog at the specified path, or null if no blog can be found. |
Blog |
getBlog(String path)
Returns the
Blog at the specified path, or null if no blog can be found. |
BlogEntry |
getBlogEntry(SlingHttpServletRequest req,
String path)
Returns the
BlogEntry for the specified request and resource. |
BlogEntry |
getBlogEntry(String path)
Returns the
BlogEntry at the specified path or null if no blog entry can be found. |
String |
getView(HttpServletRequest req)
Returns the selected view for the blog.
|
static final String ATTR_BLOG
Blog getBlog(String path)
Blog
at the specified path, or null
if no blog can be found.path
- The blog pathBlog getBlog(SlingHttpServletRequest req)
Blog
for the specified request. The corresponding resource will be retrieved from the
request, and the blog will be instantiated only once per request.req
- The requestBlog getBlog(SlingHttpServletRequest req, String path)
Blog
at the specified path, or null
if no blog can be found. The request
is needed for certain operations.req
- The requestpath
- The blog pathBlog createBlog(String path, String title)
Blog
at path
using the specified title and description.path
- The path of the blogtitle
- The title of the blogBlogEntry getBlogEntry(String path)
BlogEntry
at the specified path or null
if no blog entry can be found.path
- The blog entry pathBlogEntry getBlogEntry(SlingHttpServletRequest req, String path)
BlogEntry
for the specified request and resource. If the resource is null
, it will be retrieved from the request.req
- The requestpath
- The blog entry path (optional)String getView(HttpServletRequest req)
req
- The request"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"