public class

CreatePageCommandImpl

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

Class Overview

An implementation of the CreatePageCommand that will create a page, and assign any provided permissions then perform the clean up of any Drafts and raise the necessary event.

Summary

Fields
protected PermissionManager permissionManager
[Expand]
Inherited Fields
From class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
Public Constructors
CreatePageCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftManager draftManager, AttachmentManager attachmentManager, NotificationManager notificationManager, EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, User user, boolean notifySelf)
Public Methods
Page getCreatedPage()
Protected Methods
AbstractPage getContent()
Created getCreateEvent()
boolean isAuthorizedInternal()
Template method for implementations to perform authorization.
void validateInternal(ServiceCommandValidator validator)
Ensure that a page has been provided and that its title will not be a duplicate in the target space.
[Expand]
Inherited Methods
From class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
From class com.atlassian.confluence.core.service.AbstractServiceCommand
From class java.lang.Object
From interface com.atlassian.confluence.content.service.page.CreatePageCommand
From interface com.atlassian.confluence.core.service.ServiceCommand

Fields

protected PermissionManager permissionManager

Public Constructors

public CreatePageCommandImpl (PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftManager draftManager, AttachmentManager attachmentManager, NotificationManager notificationManager, EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, User user, boolean notifySelf)

Public Methods

public Page getCreatedPage ()

Protected Methods

protected AbstractPage getContent ()

Returns
  • the content to be created.

protected Created getCreateEvent ()

Returns
  • the event to be published on successful creation

protected boolean isAuthorizedInternal ()

Template method for implementations to perform authorization.

Returns
  • true if the current user is authorized to perform this command, false otherwise

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.