public class CreateBlogPostCommandImpl extends CreateAbstractPageCommandImpl implements CreateBlogPostCommand
Modifier and Type | Field and Description |
---|---|
protected SpacePermissionManager |
spacePermissionManager |
attachmentManager, contentPermissionManager, contentPropertyManager, contextProvider, createdContent, draft, draftService, eventPublisher, labelManager, notificationManager, notifySelf, pageManager, permissionProvider, user
Constructor and Description |
---|
CreateBlogPostCommandImpl(PageManager pageManager,
SpacePermissionManager spacePermissionManager,
ContentPermissionManager contentPermissionManager,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
BlogPostProvider blogPostProvider,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
Draft draft,
com.atlassian.user.User user,
boolean notifySelf,
ContentPropertyManager contentPropertyManager,
LabelManager labelManager) |
Modifier and Type | Method and Description |
---|---|
protected AbstractPage |
getContent() |
BlogPost |
getCreatedBlogPost() |
protected Created |
getCreateEvent() |
protected boolean |
isAuthorizedInternal()
Template method for implementations to perform authorization.
|
protected void |
validateInternal(ServiceCommandValidator validator)
Ensure that a page has been provided and that its title will not be a duplicate in the target space.
|
executeInternal, getCreatedContent
execute, getCurrentUser, getValidationErrors, isAuthorized, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getValidationErrors, isAuthorized, isValid
protected SpacePermissionManager spacePermissionManager
public CreateBlogPostCommandImpl(PageManager pageManager, SpacePermissionManager spacePermissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, BlogPostProvider blogPostProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager)
protected void validateInternal(ServiceCommandValidator validator)
validateInternal
in class CreateAbstractPageCommandImpl
protected boolean isAuthorizedInternal()
AbstractServiceCommand
isAuthorizedInternal
in class AbstractServiceCommand
protected AbstractPage getContent()
getContent
in class CreateAbstractPageCommandImpl
protected Created getCreateEvent()
getCreateEvent
in class CreateAbstractPageCommandImpl
public BlogPost getCreatedBlogPost()
getCreatedBlogPost
in interface CreateBlogPostCommand
Copyright © 2003–2015 Atlassian. All rights reserved.