Table of Contents

Class ContentItemCreateLanguageVariant

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

Content item language variant create page.

[UINavigation(false)]
public sealed class ContentItemCreateLanguageVariant : ContentItemCreateBase<ContentItemCreateLanguageVariantModel>, IPage
Inheritance
object
ContentItemCreateLanguageVariant
Implements
Inherited Members
Extension Methods

Constructors

ContentItemCreateLanguageVariant(IFormDataBinder, IFormComponentCommandInvoker, IFormItemCollectionProvider, IContentItemManagerFactory, IAuthenticatedUserAccessor, IPageLinkGenerator, IContentLanguageRetriever, IContentItemDisplayNameValidator)

Initializes a new instance of ContentItemCreateLanguageVariant.

public ContentItemCreateLanguageVariant(IFormDataBinder formDataBinder, IFormComponentCommandInvoker formComponentCommandInvoker, IFormItemCollectionProvider formItemCollectionProvider, IContentItemManagerFactory contentItemManagerFactory, IAuthenticatedUserAccessor userAccessor, IPageLinkGenerator pageLinkGenerator, IContentLanguageRetriever contentLanguageRetriever, IContentItemDisplayNameValidator contentItemDisplayNameValidator)

Parameters

formDataBinder IFormDataBinder
formComponentCommandInvoker IFormComponentCommandInvoker
formItemCollectionProvider IFormItemCollectionProvider
contentItemManagerFactory IContentItemManagerFactory
userAccessor IAuthenticatedUserAccessor
pageLinkGenerator IPageLinkGenerator
contentLanguageRetriever IContentLanguageRetriever
contentItemDisplayNameValidator IContentItemDisplayNameValidator

Properties

ItemID

Item ID.

[PageParameter(typeof(IntPageModelBinder), typeof(ContentItemEditSection))]
public int ItemID { get; set; }

Property Value

int

Methods

Change(ContentItemChangeCommandArguments, 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(ContentItemChangeCommandArguments args, CancellationToken cancellationToken = default)

Parameters

args ContentItemChangeCommandArguments

Form change arguments.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<FormChangeResult>>

ChangeWorkflowStepInternal(ContentItemSubmissionCommandArguments, IContentItemManager, List<IFormComponent>, CancellationToken)

Tries to create the content item and returns a response. If successful, redirects to the corresponding change workflow step tab.

protected override Task<ICommandResponse> ChangeWorkflowStepInternal(ContentItemSubmissionCommandArguments args, IContentItemManager manager, List<IFormComponent> formComponents, CancellationToken cancellationToken = default)

Parameters

args ContentItemSubmissionCommandArguments

Form submission arguments.

manager IContentItemManager

Content item manager.

formComponents List<IFormComponent>

Form components.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse>

ConfigureTemplateProperties(ContentItemClientProperties)

Gets the object representing client side template properties.

public override Task<ContentItemClientProperties> ConfigureTemplateProperties(ContentItemClientProperties properties)

Parameters

properties ContentItemClientProperties

Initialized properties object.

Returns

Task<ContentItemClientProperties>

CreateAndPublishInternal(ContentItemSubmissionCommandArguments, IContentItemManager, List<IFormComponent>, CancellationToken)

Tries to create the content item and returns a response. If successful, redirects to the corresponding cascade publish tab.

protected override Task<ICommandResponse> CreateAndPublishInternal(ContentItemSubmissionCommandArguments args, IContentItemManager manager, List<IFormComponent> formComponents, CancellationToken cancellationToken = default)

Parameters

args ContentItemSubmissionCommandArguments

Form submission arguments.

manager IContentItemManager

Content item manager.

formComponents List<IFormComponent>

Form components.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse>

CreateInternal(ContentItemSubmissionCommandArguments, IContentItemManager, List<IFormComponent>, CancellationToken)

Creates the content item and returns response.

protected override Task<ICommandResponse> CreateInternal(ContentItemSubmissionCommandArguments args, IContentItemManager manager, List<IFormComponent> formComponents, CancellationToken cancellationToken)

Parameters

args ContentItemSubmissionCommandArguments

Form submission arguments.

manager IContentItemManager

Content item manager.

formComponents List<IFormComponent>

Form components.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse>