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 SummaryConstructorsConstructorDescriptionCreatePageFromExistingCommandImpl(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 SummaryModifier and TypeMethodDescriptionprotected booleanTemplate method for implementations to perform authorization.protected voidvalidateInternal(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.CreatePageCommandImplgetContent, getCreatedPage, getCreateEventMethods inherited from class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImplexecuteInternal, getCreatedContentMethods inherited from class com.atlassian.confluence.core.service.AbstractServiceCommandexecute, getCurrentUser, getValidationErrors, isAuthorized, isValidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.core.service.ServiceCommandexecute, getValidationErrors, isAuthorized, isValid
- 
Constructor Details- 
CreatePageFromExistingCommandImplpublic 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- 
validateInternalDescription copied from class:CreatePageCommandImplEnsure that a page has been provided and that its title will not be a duplicate in the target space.- Overrides:
- validateInternalin class- CreatePageCommandImpl
 
- 
isAuthorizedInternalprotected boolean isAuthorizedInternal()Description copied from class:AbstractServiceCommandTemplate method for implementations to perform authorization.- Overrides:
- isAuthorizedInternalin class- CreatePageCommandImpl
- Returns:
- true if the current user is authorized to perform this command, false otherwise
 
 
-