Interface BlogPostService
-
- All Known Implementing Classes:
DefaultBlogPostService
public interface BlogPostServiceA service that provides methods to retrieve service commands to manipulate blog posts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlogPostLocatorgetIdBlogPostLocator(long pageId)Creates a blogpost locator that can locate a blogpost based on its id.ServiceCommandnewCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf)ServiceCommandnewCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, BlogPost draft, com.atlassian.user.User user, boolean notifySelf)ServiceCommandnewCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)ServiceCommandnewDeleteBlogPostCommand(BlogPostLocator blogPostLocator)Retrieve a command to remove an existing blog postServiceCommandnewMoveBlogPostCommand(BlogPostLocator blogPostLocator, SpaceLocator targetSpaceLocator)Creates a newServiceCommandfor moving an existingBlogPost.ServiceCommandnewRemoveBlogPostVersionCommand(BlogPostLocator blogPostLocator)ServiceCommandnewRevertBlogPostCommand(BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle)Retrieve a command to revert a blogpost
-
-
-
Method Detail
-
newDeleteBlogPostCommand
ServiceCommand newDeleteBlogPostCommand(BlogPostLocator blogPostLocator)
Retrieve a command to remove an existing blog post
-
getIdBlogPostLocator
BlogPostLocator getIdBlogPostLocator(long pageId)
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 newServiceCommandfor moving an existingBlogPost.- Parameters:
blogPostLocator- provides the BlogPost to the commandtargetSpaceLocator- provides the target space to the command
-
newRemoveBlogPostVersionCommand
ServiceCommand newRemoveBlogPostVersionCommand(BlogPostLocator blogPostLocator)
- Parameters:
blogPostLocator- provides the BlogPost version to the command- Returns:
- a command to remove a version of a blog post.
-
-