public class CreatePageFromExistingCommandImpl extends CreatePageCommandImpl
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.permissionManager
attachmentManager, contentPermissionManager, contentPropertyManager, contextProvider, createdContent, draft, draftService, draftsTransitionHelper, eventPublisher, labelManager, notificationManager, notifySelf, pageManager, permissionProvider, user
Constructor and Description |
---|
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(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(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) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isAuthorizedInternal()
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.
|
getContent, getCreatedPage, getCreateEvent
executeInternal, getCreatedContent
execute, getCurrentUser, getValidationErrors, isAuthorized, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getValidationErrors, isAuthorized, isValid
@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 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)
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)
protected void validateInternal(ServiceCommandValidator validator)
CreatePageCommandImpl
validateInternal
in class CreatePageCommandImpl
protected boolean isAuthorizedInternal()
AbstractServiceCommand
isAuthorizedInternal
in class CreatePageCommandImpl
Copyright © 2003–2021 Atlassian. All rights reserved.