Table of Contents

Class UserCreate

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

User creation page.

[UIPageLocation(PageLocationEnum.Dialog)]
[UINavigation(false)]
[UIBreadcrumbs(false)]
public sealed class UserCreate : CreatePage<UserInfo, UserEdit>, IPage
Inheritance
object
UserCreate
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 IFormComponentMapper
formDataBinder IFormDataBinder
pageLinkGenerator IPageLinkGenerator
userManagementService IUserManagementService
userEmailService IUserEmailService
adminIdentityOptionsAccessor 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 UserInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

cancellationToken CancellationToken

The 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 UserInfo

Object 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 UserInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task