public class DefaultBlogPostService extends Object implements BlogPostService
Constructor and Description |
---|
DefaultBlogPostService(PageManager pageManager,
PermissionManager permissionManager,
ContentPermissionManager contentPermissionManager,
SpacePermissionManager spacePermissionManager,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPropertyManager contentPropertyManager,
LabelManager labelManager)
Deprecated.
since 5.10
|
DefaultBlogPostService(PageManager pageManager,
PermissionManager permissionManager,
ContentPermissionManager contentPermissionManager,
SpacePermissionManager spacePermissionManager,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPropertyManager contentPropertyManager,
LabelManager labelManager,
com.google.common.base.Supplier<DraftsTransitionHelper> draftsTransitionHelperSupplier) |
Modifier and Type | Method and Description |
---|---|
DraftsTransitionHelper |
getDraftsTransitionHelper() |
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,
BlogPost draft,
com.atlassian.user.User user,
boolean notifySelf) |
ServiceCommand |
newCreateBlogPostCommand(BlogPostProvider provider,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
ContentEntityObject draft,
com.atlassian.user.User user,
boolean notifySelf)
Deprecated.
|
ServiceCommand |
newCreateBlogPostCommand(BlogPostProvider provider,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
Draft draft,
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 |
newRemoveBlogPostVersionCommand(BlogPostLocator blogPostLocator) |
ServiceCommand |
newRevertBlogPostCommand(BlogPostLocator blogPostToRevert,
int version,
String revertComment,
boolean revertTitle)
Retrieve a command to revert a blogpost
|
void |
setPermissionManager(PermissionManager permissionManager) |
@Deprecated public DefaultBlogPostService(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, SpacePermissionManager spacePermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPropertyManager contentPropertyManager, LabelManager labelManager)
public DefaultBlogPostService(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, SpacePermissionManager spacePermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPropertyManager contentPropertyManager, LabelManager labelManager, com.google.common.base.Supplier<DraftsTransitionHelper> draftsTransitionHelperSupplier)
public ServiceCommand newDeleteBlogPostCommand(BlogPostLocator blogPostLocator)
BlogPostService
newDeleteBlogPostCommand
in interface BlogPostService
public BlogPostLocator getIdBlogPostLocator(long pageId)
BlogPostService
getIdBlogPostLocator
in interface BlogPostService
public ServiceCommand newRevertBlogPostCommand(BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle)
BlogPostService
newRevertBlogPostCommand
in interface BlogPostService
public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, BlogPost draft, com.atlassian.user.User user, boolean notifySelf)
newCreateBlogPostCommand
in interface BlogPostService
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 eventuser
- 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.@Deprecated public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf)
newCreateBlogPostCommand
in interface BlogPostService
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 eventuser
- 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.@Deprecated public ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
newCreateBlogPostCommand
in interface BlogPostService
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 eventuser
- 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.public ServiceCommand newMoveBlogPostCommand(BlogPostLocator blogPostLocator, SpaceLocator targetSpaceLocator)
BlogPostService
ServiceCommand
for moving an existing BlogPost
.newMoveBlogPostCommand
in interface BlogPostService
blogPostLocator
- provides the BlogPost to the commandtargetSpaceLocator
- provides the target space to the commandpublic ServiceCommand newRemoveBlogPostVersionCommand(BlogPostLocator blogPostLocator)
newRemoveBlogPostVersionCommand
in interface BlogPostService
blogPostLocator
- provides the BlogPost version to the commandpublic void setPermissionManager(PermissionManager permissionManager)
public DraftsTransitionHelper getDraftsTransitionHelper()
Copyright © 2003–2021 Atlassian. All rights reserved.