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
permissionManagerFields 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
ConstructorsConstructorDescriptionCreatePageFromExistingCommandImpl(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 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.CreatePageCommandImpl
getContent, getCreatedPage, getCreateEventMethods inherited from class com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
executeInternal, getCreatedContentMethods inherited from class com.atlassian.confluence.core.service.AbstractServiceCommand
execute, getCurrentUser, getValidationErrors, isAuthorized, isValidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:CreatePageCommandImplEnsure that a page has been provided and that its title will not be a duplicate in the target space.- Overrides:
validateInternalin classCreatePageCommandImpl
-
isAuthorizedInternal
protected boolean isAuthorizedInternal()Description copied from class:AbstractServiceCommandTemplate method for implementations to perform authorization.- Overrides:
isAuthorizedInternalin classCreatePageCommandImpl- Returns:
- true if the current user is authorized to perform this command, false otherwise
-