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, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf) newCreateBlogPostCommand
(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, BlogPost draft, com.atlassian.user.User user, boolean notifySelf) newCreateBlogPostCommand
(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf) 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, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, BlogPost draft, com.atlassian.user.User user, boolean notifySelf) - Parameters:
provider
- an object that can provide a BlogPost to the commandpermissionProvider
- an object that can provide the permissions for the blog postcontextProvider
- an object that can provide a context to be included when publishing the blog post creation eventdraft
-user
- the user creating this blog post or null if the anonymous usernotifySelf
- a flag indicating whether the user themselves should be notified about this creation.- Returns:
- the CreateBlogPostCommand.
-
newCreateBlogPostCommand
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf) - Parameters:
provider
- an object that can provide a BlogPost to the commandpermissionProvider
- an object that can provide the permissions for the blog postcontextProvider
- an object that can provide a context to be included when publishing the blog post creation eventdraft
-user
- the user creating this blog post or null if the anonymous usernotifySelf
- a flag indicating whether the user themselves should be notified about this creation.- Returns:
- the CreateBlogPostCommand.
-
newCreateBlogPostCommand
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf) - Parameters:
provider
- an object that can provide a BlogPost to the commandpermissionProvider
- an object that can provide the permissions for the blog postcontextProvider
- an object that can provide a context to be included when publishing the blog post creation eventdraft
-user
- the user creating this blog post or null if the anonymous usernotifySelf
- a flag indicating whether the user themselves should be notified about this creation.- Returns:
- the CreateBlogPostCommand.
-
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.
-