|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlogManager
BlogManager is a central interface to manage blogs and blog
entries. To retrieve a BlogManager, please use
Adaptable.adaptTo(Class).
| Field Summary | |
|---|---|
static String |
ATTR_BLOG
|
| Method Summary | |
|---|---|
Blog |
createBlog(String path,
String title)
Creates a Blog at path using
the specified title and description. |
Page |
createPage(String path,
String template,
String resourceType,
String title)
Creates a new page. |
Page |
createPage(String parentPath,
String name,
String template,
String resourceType,
String title)
Creates a new page. |
Blog |
getBlog(org.apache.sling.api.SlingHttpServletRequest req)
Returns the Blog for the specified request. |
Blog |
getBlog(String path)
Returns the Blog at the specified path,
or null if no blog can be found. |
BlogEntry |
getBlogEntry(String path)
Returns the BlogEntry at the specified path or
null if no blog entry can be found. |
String |
getView(javax.servlet.http.HttpServletRequest req)
Returns the selected view for the blog. |
String |
map(String url)
Returns the full URL for the specified URL, including scheme, server name and port. |
void |
save()
Saves all changes made. |
| Field Detail |
|---|
static final String ATTR_BLOG
| Method Detail |
|---|
Blog getBlog(String path)
Blog at the specified path,
or null if no blog can be found.
path - The blog path
Blog getBlog(org.apache.sling.api.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 request
Blog createBlog(String path,
String title)
throws BlogException
Blog at path using
the specified title and description.
path - The path of the blogtitle - The title of the blog
BlogException - If the blog cannot be createdBlogEntry getBlogEntry(String path)
BlogEntry at the specified path or
null if no blog entry can be found.
path - The blog entry path
String map(String url)
url - The URL
ResourceResolver.map(String)String getView(javax.servlet.http.HttpServletRequest req)
req - The request
Page createPage(String path,
String template,
String resourceType,
String title)
throws BlogException
path - The path of the pagetemplate - The template of the pageresourceType - The resource type of the pagetitle - The title of the page
BlogException - If the page cannot be created
Page createPage(String parentPath,
String name,
String template,
String resourceType,
String title)
throws BlogException
parentPath - The parent page of the pagename - The name of the pagetemplate - The template of the pageresourceType - The resource type of the pagetitle - The title of the page
BlogException - If the page cannot be created
void save()
throws BlogException
BlogException - if saving fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||