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.
Fields inherited from class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl |
attachmentManager, contentPermissionManager, contextProvider, 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,
CreateContextProvider contextProvider,
Draft draft,
com.atlassian.user.User user,
boolean notifySelf,
SpaceProvider spaceProvider)
|
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,
DraftService draftService,
AttachmentManager attachmentManager,
NotificationManager notificationManager,
com.atlassian.event.api.EventPublisher eventPublisher,
PageProvider pageProvider,
ContentPermissionProvider permissionProvider,
CreateContextProvider contextProvider,
Draft draft,
com.atlassian.user.User user,
boolean notifySelf,
SpaceProvider spaceProvider)
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.