Table of Contents

Class ReusableFieldSchemaCreate

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

Reusable schema create page.

[UIEvaluatePermission("Create")]
public sealed class ReusableFieldSchemaCreate : ReusableFieldSchemaEditBase, IPage
Inheritance
object
ReusableFieldSchemaCreate
Implements
Inherited Members
Extension Methods

Constructors

ReusableFieldSchemaCreate(IFormItemCollectionProvider, IFormDataBinder, IReusableFieldSchemaManager, IPageLinkGenerator)

Initializes a new instance of the ReusableFieldSchemaEdit class.

public ReusableFieldSchemaCreate(IFormItemCollectionProvider formItemCollectionProvider, IFormDataBinder formDataBinder, IReusableFieldSchemaManager schemaManager, IPageLinkGenerator pageLinkGenerator)

Parameters

formItemCollectionProvider IFormItemCollectionProvider
formDataBinder IFormDataBinder
schemaManager IReusableFieldSchemaManager
pageLinkGenerator IPageLinkGenerator

Methods

ConfigurePage()

Set up page's configuration. Configures the submit action.

public override Task ConfigurePage()

Returns

Task

ConfigureTemplateProperties(EditTemplateClientProperties)

Transforms the configuration to template properties.

public override Task<EditTemplateClientProperties> ConfigureTemplateProperties(EditTemplateClientProperties properties)

Parameters

properties EditTemplateClientProperties

Returns

Task<EditTemplateClientProperties>

Remarks

Performs also permission evaluation.

GetFormItems()

Examines properties of Model and returns corresponding IFormItems.

protected override Task<ICollection<IFormItem>> GetFormItems()

Returns

Task<ICollection<IFormItem>>

Remarks

Override the method in case when additional set-up of form components is required.

GetModel()

Gets the ReusableFieldSchemaModel model.

protected override ReusableFieldSchemaModel GetModel()

Returns

ReusableFieldSchemaModel

ProcessFormData(ReusableFieldSchemaModel, ICollection<IFormItem>)

Stores the model and creates a response for the Submit(FormSubmissionCommandArguments) command.

protected override Task<ICommandResponse> ProcessFormData(ReusableFieldSchemaModel model, ICollection<IFormItem> formItems)

Parameters

model ReusableFieldSchemaModel

Model to be stored.

formItems ICollection<IFormItem>

Form items with bound component values.

Returns

Task<ICommandResponse>

The response to be used for the Submit(FormSubmissionCommandArguments) command.