Class UserEdit
General tab of the user's edit page.
public sealed class UserEdit : InfoEditPage<UserInfo>, IPage
- Inheritance
-
objectUserEdit
- Implements
- Inherited Members
- Extension Methods
Constructors
UserEdit(IFormComponentMapper, IFormDataBinder, IServiceProvider, IRoleInfoProvider, IUserRoleInfoProvider, IAuthenticatedUserAccessor, AdminSignInManager, IPageLinkGenerator, IOptions<AdminExternalAuthenticationProviderOptions>)
Initializes a new instance of the UserEdit class.
public UserEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IServiceProvider services, IRoleInfoProvider roleProvider, IUserRoleInfoProvider userRoleProvider, IAuthenticatedUserAccessor authenticatedUserAccessor, AdminSignInManager signInManager, IPageLinkGenerator pageLinkGenerator, IOptions<AdminExternalAuthenticationProviderOptions> adminExternalAuthenticationProviderOptionsAcessor)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderservices
IServiceProviderroleProvider
IRoleInfoProvideruserRoleProvider
IUserRoleInfoProviderauthenticatedUserAccessor
IAuthenticatedUserAccessorsignInManager
AdminSignInManagerpageLinkGenerator
IPageLinkGeneratoradminExternalAuthenticationProviderOptionsAcessor
IOptions<AdminExternalAuthenticationProviderOptions>
Properties
ObjectId
ID of the user.
[PageParameter(typeof(IntPageModelBinder))]
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
UserInfoObject 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
UserInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task