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
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)
|
Fields
Public Constructors
Public Methods
public
Page
getCreatedPage
()
Protected Methods
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
Ensure that a page has been provided and that its title will not be a duplicate in the target space.