|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.core.service.AbstractServiceCommand
com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
public abstract class CreateAbstractPageCommandImpl
An abstract base class for create commands for AbstractPage subclasses such as Page or BlogPost
Field Summary | |
---|---|
protected AttachmentManager |
attachmentManager
|
protected ContentPermissionManager |
contentPermissionManager
|
protected AbstractPage |
createdContent
Will content the content created after executeInternal has successfully completed. |
protected Draft |
draft
The draft used while creating the content. |
protected DraftManager |
draftManager
|
protected DraftService |
draftService
|
protected com.atlassian.event.api.EventPublisher |
eventPublisher
|
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. |
Constructor Summary | |
---|---|
protected |
CreateAbstractPageCommandImpl(PageManager pageManager,
ContentPermissionManager contentPermissionManager,
DraftService draftService,
DraftManager draftManager,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ContentPermissionProvider permissionProvider,
Draft draft,
com.atlassian.user.User user,
boolean notifySelf)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.atlassian.confluence.core.service.AbstractServiceCommand |
---|
execute, getCurrentUser, getValidationErrors, isAuthorized, isAuthorizedInternal, isValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PageManager pageManager
protected ContentPermissionManager contentPermissionManager
protected DraftManager draftManager
protected AttachmentManager attachmentManager
protected NotificationManager notificationManager
protected com.atlassian.event.api.EventPublisher eventPublisher
protected ContentPermissionProvider permissionProvider
protected final DraftService draftService
protected com.atlassian.user.User user
protected boolean notifySelf
protected AbstractPage createdContent
protected final Draft draft
Constructor Detail |
---|
protected CreateAbstractPageCommandImpl(PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftService draftService, DraftManager draftManager, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |