public interface

BlogPostService

com.atlassian.confluence.content.service.BlogPostService
Known Indirect Subclasses

Class Overview

A service provides methods to retreive service commands to manipulate blog posts

Summary

Public Methods
BlogPostLocator getIdBlogPostLocator(long pageId)
Creates a blogpost locator that can locate a blogpost based on its id.
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, User user, boolean notifySelf)
ServiceCommand newDeleteBlogPostCommand(BlogPostLocator blogPostLocator)
Retrieve a command to remove an existing blog post
ServiceCommand newRevertBlogPostCommand(BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle)
Retreive a command to revert a blogpost

Public Methods

public BlogPostLocator getIdBlogPostLocator (long pageId)

Creates a blogpost locator that can locate a blogpost based on its id.

public ServiceCommand newCreateBlogPostCommand (BlogPostProvider provider, ContentPermissionProvider permissionProvider, User user, boolean notifySelf)

Parameters
provider an object that can provide a BlogPost to the command
permissionProvider an object that can provide the permissions for the blog post
user the user creating this blog post or null if the anonymous user
notifySelf a flag indicating whether the user themselves should be notified about this creation.
Returns
  • the CreateBlogPostCommand.

public ServiceCommand newDeleteBlogPostCommand (BlogPostLocator blogPostLocator)

Retrieve a command to remove an existing blog post

public ServiceCommand newRevertBlogPostCommand (BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle)

Retreive a command to revert a blogpost