com.atlassian.confluence.content.service.page
Class CreatePageFromExistingCommandImpl

java.lang.Object
  extended by com.atlassian.confluence.core.service.AbstractServiceCommand
      extended by com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
          extended by com.atlassian.confluence.content.service.page.CreatePageCommandImpl
              extended by com.atlassian.confluence.content.service.page.CreatePageFromExistingCommandImpl
All Implemented Interfaces:
CreatePageCommand, ServiceCommand

public class CreatePageFromExistingCommandImpl
extends CreatePageCommandImpl

This command is only necessary because CopyPageAction has different authorisation and validation logic from CreatePageAction. Hopefully when we get time to investigate these differences we will be able to remove this command.


Field Summary
 
Fields inherited from class com.atlassian.confluence.content.service.page.CreatePageCommandImpl
permissionManager
 
Fields inherited from class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
attachmentManager, contentPermissionManager, createdContent, draft, draftManager, draftService, eventPublisher, notificationManager, notifySelf, pageManager, permissionProvider, user
 
Constructor Summary
CreatePageFromExistingCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftManager draftManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, Draft draft, com.atlassian.user.User user, boolean notifySelf)
           
 
Method Summary
protected  boolean isAuthorizedInternal()
          Template method for implementations to perform authorization.
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.
 
Methods inherited from class com.atlassian.confluence.content.service.page.CreatePageCommandImpl
getContent, getCreatedPage, getCreateEvent
 
Methods inherited from class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
executeInternal, getCreatedContent
 
Methods inherited from class com.atlassian.confluence.core.service.AbstractServiceCommand
execute, getCurrentUser, getValidationErrors, isAuthorized, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.core.service.ServiceCommand
execute, getValidationErrors, isAuthorized, isValid
 

Constructor Detail

CreatePageFromExistingCommandImpl

public CreatePageFromExistingCommandImpl(PageManager pageManager,
                                         PermissionManager permissionManager,
                                         ContentPermissionManager contentPermissionManager,
                                         DraftManager draftManager,
                                         DraftService draftService,
                                         AttachmentManager attachmentManager,
                                         NotificationManager notificationManager,
                                         com.atlassian.event.api.EventPublisher eventPublisher,
                                         PageProvider pageProvider,
                                         ContentPermissionProvider permissionProvider,
                                         Draft draft,
                                         com.atlassian.user.User user,
                                         boolean notifySelf)
Method Detail

validateInternal

protected void validateInternal(ServiceCommandValidator validator)
Description copied from class: CreatePageCommandImpl
Ensure that a page has been provided and that its title will not be a duplicate in the target space.

Overrides:
validateInternal in class CreatePageCommandImpl

isAuthorizedInternal

protected boolean isAuthorizedInternal()
Description copied from class: AbstractServiceCommand
Template method for implementations to perform authorization.

Overrides:
isAuthorizedInternal in class CreatePageCommandImpl
Returns:
true if the current user is authorized to perform this command, false otherwise


Copyright © 2003-2013 Atlassian. All Rights Reserved.