Table of Contents

Class RoleAddUser

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

Add user to role page.

[UIPageLocation(PageLocationEnum.Dialog)]
[UINavigation(false)]
[UIBreadcrumbs(false)]
public sealed class RoleAddUser : CreatePage<UserRoleInfo, RoleUserList>, IPage
Inheritance
object
RoleAddUser
Implements
Inherited Members
Extension Methods

Constructors

RoleAddUser(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator, IUserInfoProvider, IAuthenticatedUserAccessor)

Initializes an instance of the RoleAddUser class.

public RoleAddUser(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator, IUserInfoProvider userInfoProvider, IAuthenticatedUserAccessor authenticatedUserAccessor)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
pageLinkGenerator IPageLinkGenerator
userInfoProvider IUserInfoProvider
authenticatedUserAccessor IAuthenticatedUserAccessor

Properties

RoleID

Role id.

[PageParameter(typeof(IntPageModelBinder), typeof(RoleEditSection))]
public int RoleID { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures UI page.

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.

SubmitInternal(FormSubmissionCommandArguments, ICollection<IFormItem>, IFormFieldValueProvider)

Handles the internal specific processing of form submit command.

protected override Task<ICommandResponse> SubmitInternal(FormSubmissionCommandArguments args, ICollection<IFormItem> items, IFormFieldValueProvider formFieldValueProvider)

Parameters

args FormSubmissionCommandArguments

Form submission arguments.

items ICollection<IFormItem>

Form items with bound component values.

formFieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task<ICommandResponse>

Returns the form submission result.

Remarks

This method is called by the default implementation of the Submit(FormSubmissionCommandArguments) method.

See Also