com.atlassian.confluence.content.service
Class DefaultBlogPostService

java.lang.Object
  extended by com.atlassian.confluence.content.service.DefaultBlogPostService
All Implemented Interfaces:
BlogPostService

public class DefaultBlogPostService
extends java.lang.Object
implements BlogPostService


Constructor Summary
DefaultBlogPostService(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, SpacePermissionManager spacePermissionManager, DraftManager draftManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
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. 
 ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, com.atlassian.user.User user, boolean notifySelf)
          Deprecated. 
 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, java.lang.String revertComment, boolean revertTitle)
          Retrieve a command to revert a blogpost
 void setPermissionManager(PermissionManager permissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBlogPostService

public DefaultBlogPostService(PageManager pageManager,
                              PermissionManager permissionManager,
                              ContentPermissionManager contentPermissionManager,
                              SpacePermissionManager spacePermissionManager,
                              DraftManager draftManager,
                              DraftService draftService,
                              AttachmentManager attachmentManager,
                              NotificationManager notificationManager,
                              com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

newDeleteBlogPostCommand

public ServiceCommand newDeleteBlogPostCommand(BlogPostLocator blogPostLocator)
Description copied from interface: BlogPostService
Retrieve a command to remove an existing blog post

Specified by:
newDeleteBlogPostCommand in interface BlogPostService

getIdBlogPostLocator

public BlogPostLocator getIdBlogPostLocator(long pageId)
Description copied from interface: BlogPostService
Creates a blogpost locator that can locate a blogpost based on its id.

Specified by:
getIdBlogPostLocator in interface BlogPostService

newRevertBlogPostCommand

public ServiceCommand newRevertBlogPostCommand(BlogPostLocator blogPostToRevert,
                                               int version,
                                               java.lang.String revertComment,
                                               boolean revertTitle)
Description copied from interface: BlogPostService
Retrieve a command to revert a blogpost

Specified by:
newRevertBlogPostCommand in interface BlogPostService

newCreateBlogPostCommand

public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider,
                                               ContentPermissionProvider permissionProvider,
                                               CreateContextProvider contextProvider,
                                               Draft draft,
                                               com.atlassian.user.User user,
                                               boolean notifySelf)
Specified by:
newCreateBlogPostCommand in interface BlogPostService
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
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
public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider,
                                                          ContentPermissionProvider permissionProvider,
                                                          Draft draft,
                                                          com.atlassian.user.User user,
                                                          boolean notifySelf)
Deprecated. 

Description copied from interface: BlogPostService
Creates a new ServiceCommand for creation of a new BlogPost.

Specified by:
newCreateBlogPostCommand in interface BlogPostService
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.

newCreateBlogPostCommand

@Deprecated
public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider,
                                                          ContentPermissionProvider permissionProvider,
                                                          com.atlassian.user.User user,
                                                          boolean notifySelf)
Deprecated. 

Description copied from interface: BlogPostService
Creates a new ServiceCommand for creation of a new BlogPost.

Specified by:
newCreateBlogPostCommand in interface BlogPostService
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

public ServiceCommand newMoveBlogPostCommand(BlogPostLocator blogPostLocator,
                                             SpaceLocator targetSpaceLocator)
Description copied from interface: BlogPostService
Creates a new ServiceCommand for moving an existing BlogPost.

Specified by:
newMoveBlogPostCommand in interface BlogPostService
Parameters:
blogPostLocator - provides the BlogPost to the command
targetSpaceLocator - provides the target space to the command

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.