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 Object
implements BlogPostService


Constructor Summary
DefaultBlogPostService(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, SpacePermissionManager spacePermissionManager, DraftManager draftManager, 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, com.atlassian.user.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
 
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,
                              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,
                                               String revertComment,
                                               boolean revertTitle)
Description copied from interface: BlogPostService
Retreive a command to revert a blogpost

Specified by:
newRevertBlogPostCommand in interface BlogPostService

newCreateBlogPostCommand

public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider,
                                               ContentPermissionProvider permissionProvider,
                                               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
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.


Copyright © 2003-2011 Atlassian. All Rights Reserved.