Class ContentTypeCreate
Content type create page.
public sealed class ContentTypeCreate : CreatePage<DataClassInfo, ContentTypeEditSection>, IPage
- Inheritance
-
objectContentTypeCreate
- Implements
- Inherited Members
- Extension Methods
Constructors
ContentTypeCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IContentTypeManager)
Initializes a new instance of the ContentTypeCreate class.
public ContentTypeCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IContentTypeManager contentItemTypeManager)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGeneratorcontentItemTypeManager
IContentTypeManager
Properties
ObjectType
Gets the OBJECT_TYPE_CONTENTTYPE object type.
protected override string ObjectType { get; }
Property Value
- string
Methods
ConfigurePage()
Set up page's configuration. Configures UI page.
public override Task ConfigurePage()
Returns
- Task
FinalizeInfoObject(DataClassInfo, IFormFieldValueProvider, CancellationToken)
Allows to modify values of infoObject
before validation and saving.
protected override Task FinalizeInfoObject(DataClassInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)
Parameters
infoObject
DataClassInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
cancellationToken
CancellationTokenThe cancellation instruction.
Returns
- Task
GetFormItems()
Prepares form items for editing object of the specified ObjectType.
protected override Task<ICollection<IFormItem>> GetFormItems()
Returns
- Task<ICollection<IFormItem>>
Returns the collection of form items.