Class UserCreate
User creation page.
[UIPageLocation(PageLocationEnum.Dialog)]
[UINavigation(false)]
[UIBreadcrumbs(false)]
public sealed class UserCreate : CreatePage<UserInfo, UserEdit>, IPage
- Inheritance
-
objectUserCreate
- Implements
- Inherited Members
- Extension Methods
Constructors
UserCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IUserManagementService, IUserEmailService, IOptions<AdminIdentityOptions>, IOptions<AdminExternalAuthenticationProviderOptions>)
Initializes a new instance of UserCreate.
public UserCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IUserManagementService userManagementService, IUserEmailService userEmailService, IOptions<AdminIdentityOptions> adminIdentityOptionsAccessor, IOptions<AdminExternalAuthenticationProviderOptions> externalAuthenticationProviderOptionsAccessor)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGeneratoruserManagementService
IUserManagementServiceuserEmailService
IUserEmailServiceadminIdentityOptionsAccessor
IOptions<AdminIdentityOptions>externalAuthenticationProviderOptionsAccessor
IOptions<AdminExternalAuthenticationProviderOptions>
Methods
ConfigurePage()
Set up page's configuration. Configures UI page.
public override Task ConfigurePage()
Returns
- Task
FinalizeInfoObject(UserInfo, IFormFieldValueProvider, CancellationToken)
Allows to modify values of infoObject
before validation and saving.
protected override Task FinalizeInfoObject(UserInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)
Parameters
infoObject
UserInfoInfo 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(UserInfo, ICollection<IFormItem>)
Response that has to be returned after successful form submission.
protected override Task<ICommandResponse> GetSubmitSuccessResponse(UserInfo savedInfoObject, ICollection<IFormItem> items)
Parameters
savedInfoObject
UserInfoObject info after persisting.
items
ICollection<IFormItem>Collection with updated form items.
Returns
- Task<ICommandResponse>
SetFormData(UserInfo, IFormFieldValueProvider)
Sets the infoObject
.
protected override Task SetFormData(UserInfo infoObject, IFormFieldValueProvider fieldValueProvider)
Parameters
infoObject
UserInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task