public abstract class

CreateAbstractPageCommandImpl

extends AbstractServiceCommand
java.lang.Object
   ↳ com.atlassian.confluence.core.service.AbstractServiceCommand
     ↳ com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

An abstract base class for create commands for AbstractPage subclasses such as Page or BlogPost

Summary

Fields
protected AttachmentManager attachmentManager
protected ContentPermissionManager contentPermissionManager
protected AbstractPage createdContent Will content the content created after executeInternal has successfully completed.
protected DraftManager draftManager
protected 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 User user The user who is creating the page.
Protected Constructors
CreateAbstractPageCommandImpl(PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftManager draftManager, AttachmentManager attachmentManager, NotificationManager notificationManager, EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, User user, boolean notifySelf)
Protected Methods
void executeInternal()
Template method for implementations to perform command execution.
abstract AbstractPage getContent()
abstract Created getCreateEvent()
AbstractPage getCreatedContent()
void validateInternal(ServiceCommandValidator validator)
Ensure that an AbstractPage has been provided and that its title is valid.
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.service.AbstractServiceCommand
From class java.lang.Object
From interface com.atlassian.confluence.core.service.ServiceCommand

Fields

protected AttachmentManager attachmentManager

protected ContentPermissionManager contentPermissionManager

protected AbstractPage createdContent

Will content the content created after executeInternal has successfully completed.

protected DraftManager draftManager

protected 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 User user

The user who is creating the page. This may be null if the anonymous user.

Protected Constructors

protected CreateAbstractPageCommandImpl (PageManager pageManager, ContentPermissionManager contentPermissionManager, DraftManager draftManager, AttachmentManager attachmentManager, NotificationManager notificationManager, EventPublisher eventPublisher, ContentPermissionProvider permissionProvider, User user, boolean notifySelf)

Protected Methods

protected void executeInternal ()

Template method for implementations to perform command execution. Implementations can assume that if this method is called, both authorization and validation have already been completed successfully.

protected abstract AbstractPage getContent ()

Returns
  • the content to be created.

protected abstract Created getCreateEvent ()

Returns
  • the event to be published on successful creation

protected AbstractPage getCreatedContent ()

protected void validateInternal (ServiceCommandValidator validator)

Ensure that an AbstractPage has been provided and that its title is valid.