Table of Contents

Class AccountGeneral

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

General account page.

public sealed class AccountGeneral : InfoEditPage<UserInfo>, IPage
Inheritance
object
AccountGeneral
Implements
Inherited Members
Extension Methods

Constructors

AccountGeneral(IFormComponentMapper, IFormDataBinder, IServiceProvider, IAuthenticatedUserAccessor, AdminSignInManager, IPageLinkGenerator, IOptions<AdminExternalAuthenticationProviderOptions>)

Initializes a new instance of AccountGeneral.

public AccountGeneral(IFormComponentMapper mapper, IFormDataBinder formDataBinder, IServiceProvider services, IAuthenticatedUserAccessor authenticatedUserAccessor, AdminSignInManager signInManager, IPageLinkGenerator pageLinkGenerator, IOptions<AdminExternalAuthenticationProviderOptions> adminExternalAuthenticationProviderOptionsAcessor)

Parameters

mapper IFormComponentMapper
formDataBinder IFormDataBinder
services IServiceProvider
authenticatedUserAccessor IAuthenticatedUserAccessor
signInManager AdminSignInManager
pageLinkGenerator IPageLinkGenerator
adminExternalAuthenticationProviderOptionsAcessor IOptions<AdminExternalAuthenticationProviderOptions>

Properties

ObjectId

Gets or sets user identifier.

public override int ObjectId { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures the submit action.

public override Task ConfigurePage()

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>

ResetAuthenticatorKey()

Resets the authenticator key.

public Task<ICommandResponse> ResetAuthenticatorKey()

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