public abstract class CreateAbstractPageCommandImpl extends AbstractServiceCommand
Modifier and Type | Field and Description |
---|---|
protected AttachmentManager |
attachmentManager |
protected ContentPermissionManager |
contentPermissionManager |
protected ContentPropertyManager |
contentPropertyManager |
protected CreateContextProvider |
contextProvider |
protected AbstractPage |
createdContent
Will content the content created after executeInternal has successfully completed.
|
protected ContentEntityObject |
draft
The draft used while creating the content.
|
protected DraftService |
draftService |
protected com.atlassian.event.api.EventPublisher |
eventPublisher |
protected LabelManager |
labelManager |
protected NotificationManager |
notificationManager |
protected boolean |
notifySelf
A flag indicating if the user creating the page wants to be notified about this event.
|
protected PageManager |
pageManager |
protected ContentPermissionProvider |
permissionProvider |
protected com.atlassian.user.User |
user
The user who is creating the page.
|
Modifier | Constructor and Description |
---|---|
protected |
CreateAbstractPageCommandImpl(PageManager pageManager,
ContentPermissionManager contentPermissionManager,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
AbstractPage draft,
com.atlassian.user.User user,
boolean notifySelf,
ContentPropertyManager contentPropertyManager,
LabelManager labelManager) |
protected |
CreateAbstractPageCommandImpl(PageManager pageManager,
ContentPermissionManager contentPermissionManager,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
ContentEntityObject draft,
com.atlassian.user.User user,
boolean notifySelf,
ContentPropertyManager contentPropertyManager,
LabelManager labelManager) |
protected |
CreateAbstractPageCommandImpl(PageManager pageManager,
ContentPermissionManager contentPermissionManager,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
Draft draft,
com.atlassian.user.User user,
boolean notifySelf,
ContentPropertyManager contentPropertyManager,
LabelManager labelManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeInternal()
Template method for implementations to perform command execution.
|
protected abstract AbstractPage |
getContent() |
protected AbstractPage |
getCreatedContent() |
protected abstract Created |
getCreateEvent() |
protected void |
validateInternal(ServiceCommandValidator validator)
Ensure that an AbstractPage has been provided and that its title is valid.
|
execute, getCurrentUser, getValidationErrors, isAuthorized, isAuthorizedInternal, isValid
protected PageManager pageManager
protected ContentPermissionManager contentPermissionManager
protected AttachmentManager attachmentManager
protected NotificationManager notificationManager
protected com.atlassian.event.api.EventPublisher eventPublisher
protected ContentPermissionProvider permissionProvider
protected final CreateContextProvider contextProvider
protected final DraftService draftService
protected final ContentPropertyManager contentPropertyManager
protected final LabelManager labelManager
protected com.atlassian.user.User user
protected boolean notifySelf
protected AbstractPage createdContent
protected final ContentEntityObject draft
protected CreateAbstractPageCommandImpl(PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager)
protected CreateAbstractPageCommandImpl(PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager)
protected CreateAbstractPageCommandImpl(PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, AbstractPage draft, com.atlassian.user.User user, boolean notifySelf, ContentPropertyManager contentPropertyManager, LabelManager labelManager)
protected void validateInternal(ServiceCommandValidator validator)
validateInternal
in class AbstractServiceCommand
protected void executeInternal()
AbstractServiceCommand
executeInternal
in class AbstractServiceCommand
protected AbstractPage getCreatedContent()
protected abstract AbstractPage getContent()
protected abstract Created getCreateEvent()
Copyright © 2003–2016 Atlassian. All rights reserved.