Class ReusableFieldSchemaCreate
Reusable schema create page.
[UIEvaluatePermission("Create")]
public sealed class ReusableFieldSchemaCreate : ReusableFieldSchemaEditBase, IPage
- Inheritance
-
objectReusableFieldSchemaCreate
- 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
IFormItemCollectionProviderformDataBinder
IFormDataBinderschemaManager
IReusableFieldSchemaManagerpageLinkGenerator
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
Remarks
Performs also permission evaluation.
GetFormItems()
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
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
ReusableFieldSchemaModelModel 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.