Class TagCreate
Page for creating the tag.
[UINavigation(false)]
[UIBreadcrumbs(false)]
public sealed class TagCreate : CreatePage<TagInfo, TagEdit>, IPage
- Inheritance
-
objectTagCreate
- Implements
- Inherited Members
- Extension Methods
Constructors
TagCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IInfoProvider<TagInfo>)
Initializes a new instance of the TagCreate class.
public TagCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IInfoProvider<TagInfo> tagInfoProvider)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGeneratortagInfoProvider
IInfoProvider<TagInfo>
Properties
ParentTagID
Parent tag ID.
[PageParameter(typeof(IntPageModelBinder), typeof(TagEditLayout))]
public int ParentTagID { get; set; }
Property Value
- int
TaxonomyID
Taxonomy ID.
[PageParameter(typeof(IntPageModelBinder), typeof(TaxonomyEditSection))]
public int TaxonomyID { get; set; }
Property Value
- int
Methods
ConfigurePage()
Set up page's configuration. Configures UI page.
public override Task ConfigurePage()
Returns
- Task
FinalizeInfoObject(TagInfo, IFormFieldValueProvider, CancellationToken)
Allows to modify values of infoObject
before validation and saving.
protected override Task FinalizeInfoObject(TagInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)
Parameters
infoObject
TagInfoInfo 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.
GetSubmitSuccessResponse(TagInfo, ICollection<IFormItem>)
Response that has to be returned after successful form submission.
protected override Task<ICommandResponse> GetSubmitSuccessResponse(TagInfo savedInfoObject, ICollection<IFormItem> items)
Parameters
savedInfoObject
TagInfoObject info after persisting.
items
ICollection<IFormItem>Collection with updated form items.
Returns
- Task<ICommandResponse>
SaveAndCreateAnother(FormSubmissionCommandArguments)
Creates the tag and navigates to create another tag under the same parent.
public Task<ICommandResponse> SaveAndCreateAnother(FormSubmissionCommandArguments args)
Parameters
Returns
- Task<ICommandResponse>
SetFormData(TagInfo, IFormFieldValueProvider)
Sets the infoObject
.
protected override Task SetFormData(TagInfo infoObject, IFormFieldValueProvider fieldValueProvider)
Parameters
infoObject
TagInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>