Table of Contents

Class CreateWebPage

Namespace
Kentico.Xperience.Admin.Websites.UIPages
Assembly
Kentico.Xperience.Admin.Websites.dll

Page for creating a new web page.

[UIEvaluatePermission("View")]
[UINavigation(false)]
public sealed class CreateWebPage : CreateWebPageBase<CreateWebPageCreateCommandResult, ContentTypeSelectionModel>, IPage
Inheritance
object
CreateWebPage
Implements
Inherited Members
Extension Methods

Constructors

CreateWebPage(IFormComponentCommandInvoker, IAuthenticatedUserAccessor, IWebPageManagerFactory, IPageLinkGenerator, IContentItemDisplayNameValidator, IContentItemCommonDataInfoRetriever, IContentItemReferenceManagerCore, IInfoProvider<WebPageItemInfo>, IServiceProvider)

Initializes an instance of the CreateWebPage class.

public CreateWebPage(IFormComponentCommandInvoker formComponentCommandInvoker, IAuthenticatedUserAccessor authenticatedUserAccessor, IWebPageManagerFactory webPageManagerFactory, IPageLinkGenerator pageLinkGenerator, IContentItemDisplayNameValidator contentItemDisplayNameValidator, IContentItemCommonDataInfoRetriever contentItemCommonDataInfoRetriever, IContentItemReferenceManagerCore contentItemReferenceManagerCore, IInfoProvider<WebPageItemInfo> webPageItemInfoProvider, IServiceProvider serviceProvider)

Parameters

formComponentCommandInvoker IFormComponentCommandInvoker
authenticatedUserAccessor IAuthenticatedUserAccessor
webPageManagerFactory IWebPageManagerFactory
pageLinkGenerator IPageLinkGenerator
contentItemDisplayNameValidator IContentItemDisplayNameValidator
contentItemCommonDataInfoRetriever IContentItemCommonDataInfoRetriever
contentItemReferenceManagerCore IContentItemReferenceManagerCore
webPageItemInfoProvider IInfoProvider<WebPageItemInfo>
serviceProvider IServiceProvider

Methods

CascadePublish(CreateWebPageCreateCommandArguments, CancellationToken)

Creates new web page and redirects to the publish page.

[Obsolete("Use Publish command instead.")]
[ObsoleteSince(29, 1)]
public override Task<ICommandResponse> CascadePublish(CreateWebPageCreateCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Create web page command arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse>

Change(CreateWebPageCreateCommandArguments, CancellationToken)

Handles the form change command. The command is invoked whenever visibility conditions or form component configurators of the form need to be reevaluated to re-render the form.

public override Task<ICommandResponse<FormChangeResult>> Change(CreateWebPageCreateCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Form change arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<FormChangeResult>>

ChangeWorkflowStep(CreateWebPageCreateCommandArguments, CancellationToken)

Create a new web page language variant as the initial draft and redirects to the change workflow step UI.

public override Task<ICommandResponse> ChangeWorkflowStep(CreateWebPageCreateCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Create web page command arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse>

ConfigurePage()

Allows configure and share page specific values prior invocation of the ConfigureTemplateProperties(TClientProperties) or command method.

public override Task ConfigurePage()

Returns

Task

ConfigureTemplateProperties(CreateWebPageClientProperties)

Gets the object representing client side template properties.

public override Task<CreateWebPageClientProperties> ConfigureTemplateProperties(CreateWebPageClientProperties properties)

Parameters

properties CreateWebPageClientProperties

Initialized properties object.

Returns

Task<CreateWebPageClientProperties>

Create(CreateWebPageCreateCommandArguments, CancellationToken)

Creates the web page language variant.

public override Task<ICommandResponse<CreateWebPageCreateCommandResult>> Create(CreateWebPageCreateCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Create web page command arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<CreateWebPageCreateCommandResult>>

CreateInternal(CreateWebPageCreateCommandArguments, List<IFormComponent>, bool, CancellationToken)

Creates the web page and returns response.

protected override Task<ICommandResponse<CreateWebPageCreateCommandResult>> CreateInternal(CreateWebPageCreateCommandArguments args, List<IFormComponent> formComponents, bool publish, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Form submission arguments.

formComponents List<IFormComponent>

Form components.

publish bool

Indicates whether the web page should also be immediately published.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<CreateWebPageCreateCommandResult>>

Discard()

Discards the unsaved draft of web page and redirects back to the parent page.

public Task<INavigateResponse> Discard()

Returns

Task<INavigateResponse>

GetChangeWorkflowStepPageUrl(int)

Returns change workflow step page URL for given webPageId.

protected override string GetChangeWorkflowStepPageUrl(int webPageId)

Parameters

webPageId int

Web page identifier.

Returns

string

GetPublishPageUrl(int)

Returns publish page URL for given webPageId.

protected override string GetPublishPageUrl(int webPageId)

Parameters

webPageId int

Web page identifier.

Returns

string

GetUrlComponents(CreateWebPageCreateCommandArguments, bool)

Gets URL slug edit components.

protected override Task<ICollection<IFormItem>> GetUrlComponents(CreateWebPageCreateCommandArguments args, bool useExistingValue)

Parameters

args CreateWebPageCreateCommandArguments

Create web page command arguments.

useExistingValue bool

Indicates if the URL slug component should be pre-filled with existing value.

Returns

Task<ICollection<IFormItem>>

Publish(CreateWebPageCreateCommandArguments, CancellationToken)

Creates new web page and redirects to the publish page.

public override Task<ICommandResponse<CreateWebPageCreateCommandResult>> Publish(CreateWebPageCreateCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Create web page command arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<CreateWebPageCreateCommandResult>>

SubmitFirstStep(FormSubmissionCommandArguments, CancellationToken)

Confirms the selection of web page parameters.

public override Task<ICommandResponse<ICreateWebPageStepCommandResult>> SubmitFirstStep(FormSubmissionCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args FormSubmissionCommandArguments

Confirm selection form command arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<ICreateWebPageStepCommandResult>>

SubmitSecondStep(CreateWebPageCreateCommandArguments, CancellationToken)

Confirms the selection of web page parameters.

public override Task<ICommandResponse<ICreateWebPageStepCommandResult>> SubmitSecondStep(CreateWebPageCreateCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args CreateWebPageCreateCommandArguments

Selected data form command arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<ICreateWebPageStepCommandResult>>

ValidateDisplayName(RenameCommandArguments)

Validates the content item display name.

public override Task<ICommandResponse<RenameCommandResult>> ValidateDisplayName(RenameCommandArguments args)

Parameters

args RenameCommandArguments

Rename command arguments.

Returns

Task<ICommandResponse<RenameCommandResult>>