public interface BlogPostService
Modifier and Type | Method and Description |
---|---|
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) |
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)
|
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 |
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
|
ServiceCommand newDeleteBlogPostCommand(BlogPostLocator blogPostLocator)
BlogPostLocator getIdBlogPostLocator(long pageId)
ServiceCommand newRevertBlogPostCommand(BlogPostLocator blogPostToRevert, int version, String revertComment, boolean revertTitle)
ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, BlogPost draft, com.atlassian.user.User user, boolean notifySelf)
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 eventdraft
- user
- 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.ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf)
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 eventdraft
- user
- 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.ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
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 eventdraft
- user
- 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 ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, User user, boolean notifySelf)
ServiceCommand
for creation of a new BlogPost
.provider
- an object that can provide a BlogPost to the commandpermissionProvider
- an object that can provide the permissions for the blog postdraft
- user
- 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. @return the CreateBlogPostCommand.@Deprecated ServiceCommand newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, com.atlassian.user.User user, boolean notifySelf)
newCreateBlogPostCommand(BlogPostProvider provider, ContentPermissionProvider permissionProvider, Draft draft, User user, boolean notifySelf)
ServiceCommand
for creation of a new BlogPost
.provider
- an object that can provide a BlogPost to the commandpermissionProvider
- an object that can provide the permissions for the blog postuser
- 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. @return the CreateBlogPostCommand.ServiceCommand newMoveBlogPostCommand(BlogPostLocator blogPostLocator, SpaceLocator targetSpaceLocator)
ServiceCommand
for moving an existing BlogPost
.blogPostLocator
- provides the BlogPost to the commandtargetSpaceLocator
- provides the target space to the commandServiceCommand newRemoveBlogPostVersionCommand(BlogPostLocator blogPostLocator)
blogPostLocator
- provides the BlogPost version to the commandCopyright © 2003–2015 Atlassian. All rights reserved.