Interface BlogPostService
- All Known Implementing Classes:
DefaultBlogPostService
public interface BlogPostService
A service that provides methods to retrieve service commands to manipulate blog posts
-
Method Summary
Modifier and TypeMethodDescriptiongetIdBlogPostLocator
(long pageId) Creates a blogpost locator that can locate a blogpost based on its id.newCreateBlogPostCommand
(BlogPostProvider provider, CreateContextProvider contextProvider, ContentEntityObject draft, ConfluenceUser user) newCreateBlogPostCommand
(BlogPostProvider provider, CreateContextProvider contextProvider, BlogPost draft, ConfluenceUser user) newCreateBlogPostCommand
(BlogPostProvider provider, CreateContextProvider contextProvider, Draft draft, ConfluenceUser user) newDeleteBlogPostCommand
(BlogPostLocator blogPostLocator) Retrieve a command to remove an existing blog postnewMoveBlogPostCommand
(BlogPostLocator blogPostLocator, SpaceLocator targetSpaceLocator) Creates a newServiceCommand
for moving an existingBlogPost
.newRemoveBlogPostVersionCommand
(BlogPostLocator blogPostLocator) newRevertBlogPostCommand
(BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle) Retrieve a command to revert a blogpost
-
Method Details
-
newDeleteBlogPostCommand
Retrieve a command to remove an existing blog post -
getIdBlogPostLocator
Creates a blogpost locator that can locate a blogpost based on its id. -
newRevertBlogPostCommand
ServiceCommand newRevertBlogPostCommand(BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle) Retrieve a command to revert a blogpost -
newCreateBlogPostCommand
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, CreateContextProvider contextProvider, BlogPost draft, ConfluenceUser user) - Parameters:
provider
- an object that can provide a BlogPost to the commandcontextProvider
- an object that can provide a context to be included when publishing the blog post creation eventuser
- the user creating this blog post or null if the anonymous user- Returns:
- the CreateBlogPostCommand.
- Since:
- 10.0
-
newCreateBlogPostCommand
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, CreateContextProvider contextProvider, ContentEntityObject draft, ConfluenceUser user) - Parameters:
provider
- an object that can provide a BlogPost to the commandcontextProvider
- an object that can provide a context to be included when publishing the blog post creation eventuser
- the user creating this blog post or null if the anonymous user- Returns:
- the CreateBlogPostCommand.
- Since:
- 10.0
-
newCreateBlogPostCommand
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, CreateContextProvider contextProvider, Draft draft, ConfluenceUser user) - Parameters:
provider
- an object that can provide a BlogPost to the commandcontextProvider
- an object that can provide a context to be included when publishing the blog post creation eventuser
- the user creating this blog post or null if the anonymous user- Returns:
- the CreateBlogPostCommand.
- Since:
- 10.0
-
newMoveBlogPostCommand
ServiceCommand newMoveBlogPostCommand(BlogPostLocator blogPostLocator, SpaceLocator targetSpaceLocator) Creates a newServiceCommand
for moving an existingBlogPost
.- Parameters:
blogPostLocator
- provides the BlogPost to the commandtargetSpaceLocator
- provides the target space to the command
-
newRemoveBlogPostVersionCommand
- Parameters:
blogPostLocator
- provides the BlogPost version to the command- Returns:
- a command to remove a version of a blog post.
-