com.atlassian.confluence.content.service
Interface BlogPostService

All Known Implementing Classes:
DefaultBlogPostService

public interface BlogPostService

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


Method Summary
 BlogPostLocator getIdBlogPostLocator(long pageId)
          Creates a blogpost locator that can locate a blogpost based on its id.
 ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
           
 ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
          Deprecated. @since 5.4 use newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, User user, boolean notifySelf)
 ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, com.atlassian.user.User user, boolean notifySelf)
          Deprecated. @since 4.3 use newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, Draft draft, User user, boolean notifySelf)
 ServiceCommand newDeleteBlogPostCommand(BlogPostLocator blogPostLocator)
          Retrieve a command to remove an existing blog post
 ServiceCommand newMoveBlogPostCommand(BlogPostLocator blogPostLocator, SpaceLocator targetSpaceLocator)
          Creates a new ServiceCommand for moving an existing BlogPost.
 ServiceCommand newRevertBlogPostCommand(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,
                                        Draft draft,
                                        com.atlassian.user.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
contextProvider - an object that can provide a context to be included when publishing the blog post creation event
draft -
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.

newCreateBlogPostCommand

@Deprecated
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider,
                                                   ContentPermissionProvider permissionProvider,
                                                   Draft draft,
                                                   com.atlassian.user.User user,
                                                   boolean notifySelf)
Deprecated. @since 5.4 use newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, User user, boolean notifySelf)

Creates a new ServiceCommand for creation of a new BlogPost.

Parameters:
provider - an object that can provide a BlogPost to the command
permissionProvider - an object that can provide the permissions for the blog post
draft -
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. @return the CreateBlogPostCommand.

newCreateBlogPostCommand

@Deprecated
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider,
                                                   ContentPermissionProvider permissionProvider,
                                                   com.atlassian.user.User user,
                                                   boolean notifySelf)
Deprecated. @since 4.3 use newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, Draft draft, User user, boolean notifySelf)

Creates a new ServiceCommand for creation of a new BlogPost.

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. @return the CreateBlogPostCommand.

newMoveBlogPostCommand

ServiceCommand newMoveBlogPostCommand(BlogPostLocator blogPostLocator,
                                      SpaceLocator targetSpaceLocator)
Creates a new ServiceCommand for moving an existing BlogPost.

Parameters:
blogPostLocator - provides the BlogPost to the command
targetSpaceLocator - provides the target space to the command


Copyright © 2003–2015 Atlassian. All rights reserved.