Class CreatePageCommandImpl
java.lang.Object
com.atlassian.confluence.core.service.AbstractServiceCommand
com.atlassian.confluence.content.service.page.CreateAbstractPageCommandImpl
com.atlassian.confluence.content.service.page.CreatePageCommandImpl
- All Implemented Interfaces:
- CreatePageCommand,- ServiceCommand
- Direct Known Subclasses:
- CreatePageFromExistingCommandImpl
public class CreatePageCommandImpl
extends CreateAbstractPageCommandImpl
implements CreatePageCommand
An implementation of the CreatePageCommand that will create a page, and assign any provided permissions
 then perform the clean up of any Drafts and raise the necessary event.
- 
Constructor SummaryConstructorsConstructorDescriptionCreatePageCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, CreateContextProvider contextProvider, ContentEntityObject draft, ConfluenceUser user, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected AbstractPageprotected Createdprotected 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.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- 
CreatePageCommandImplpublic CreatePageCommandImpl(PageManager pageManager, PermissionManager permissionManager, ContentPermissionManager contentPermissionManager, DraftService draftService, com.atlassian.event.api.EventPublisher eventPublisher, PageProvider pageProvider, CreateContextProvider contextProvider, ContentEntityObject draft, ConfluenceUser user, LabelManager labelManager, DraftsTransitionHelper draftsTransitionHelper) - Since:
- 10.0
 
 
- 
- 
Method Details- 
validateInternalEnsure that a page has been provided and that its title will not be a duplicate in the target space.- Overrides:
- validateInternalin class- CreateAbstractPageCommandImpl
 
- 
isAuthorizedInternalprotected boolean isAuthorizedInternal()Description copied from class:AbstractServiceCommandTemplate method for implementations to perform authorization.- Specified by:
- isAuthorizedInternalin class- AbstractServiceCommand
- Returns:
- true if the current user is authorized to perform this command, false otherwise
 
- 
getContent- Specified by:
- getContentin class- CreateAbstractPageCommandImpl
- Returns:
- the content to be created.
 
- 
getCreateEvent- Specified by:
- getCreateEventin class- CreateAbstractPageCommandImpl
- Returns:
- the event to be published on successful creation
 
- 
getCreatedPage- Specified by:
- getCreatedPagein interface- CreatePageCommand
- Returns:
- the page that was created if the command has executed already. Null if the command has not yet executed.
 
 
-