com.atlassian.confluence.content.service.page
Class CreatePageFromExistingCommandImpl
java.lang.Object
com.atlassian.confluence.core.service.AbstractServiceCommand
com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
com.atlassian.confluence.content.service.page.CreatePageCommandImpl
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.
Constructor Summary |
CreatePageFromExistingCommandImpl(PageManager pageManager,
PermissionManager permissionManager,
ContentPermissionManager contentPermissionManager,
DraftManager draftManager,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
PageProvider pageProvider,
ContentPermissionProvider permissionProvider,
com.atlassian.user.User user,
boolean notifySelf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CreatePageFromExistingCommandImpl
public CreatePageFromExistingCommandImpl(PageManager pageManager,
PermissionManager permissionManager,
ContentPermissionManager contentPermissionManager,
DraftManager draftManager,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
PageProvider pageProvider,
ContentPermissionProvider permissionProvider,
com.atlassian.user.User user,
boolean notifySelf)
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-2012 Atlassian. All Rights Reserved.