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
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
ConstructorsConstructorDescriptionCreatePageFromExistingCommandImpl
(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, CreateContextProvider contextProvider, ContentEntityObject draft, ConfluenceUser user, SpaceProvider spaceProvider, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
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 Details
-
CreatePageFromExistingCommandImpl
public CreatePageFromExistingCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, CreateContextProvider contextProvider, ContentEntityObject draft, ConfluenceUser user, SpaceProvider spaceProvider, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) - Since:
- 10.0
-
-
Method Details
-
validateInternal
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 classCreatePageCommandImpl
-
isAuthorizedInternal
protected boolean isAuthorizedInternal()Description copied from class:AbstractServiceCommand
Template method for implementations to perform authorization.- Overrides:
isAuthorizedInternal
in classCreatePageCommandImpl
- Returns:
- true if the current user is authorized to perform this command, false otherwise
-