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.-
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, contentPropertyManager, contextProvider, createdContent, draft, draftService, draftsTransitionHelper, eventPublisher, labelManager, notificationManager, notifySelf, pageManager, permissionProvider, user
-
Constructor Summary
ConstructorDescriptionCreatePageFromExistingCommandImpl
(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10CreatePageFromExistingCommandImpl
(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, 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, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10CreatePageFromExistingCommandImpl
(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Page draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider, ContentPropertyManager contentPropertyManager, 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
@Deprecated public CreatePageFromExistingCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, 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, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10 -
CreatePageFromExistingCommandImpl
@Deprecated public CreatePageFromExistingCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, ContentEntityObject draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) Deprecated.since 5.10 -
CreatePageFromExistingCommandImpl
public CreatePageFromExistingCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, AttachmentManager attachmentManager, NotificationManager notificationManager, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, ContentPermissionProvider permissionProvider, CreateContextProvider contextProvider, Page draft, com.atlassian.user.User user, boolean notifySelf, SpaceProvider spaceProvider, ContentPropertyManager contentPropertyManager, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper)
-
-
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
-