Class RoleAddUser
Add user to role page.
[UIPageLocation(PageLocationEnum.Dialog)]
[UINavigation(false)]
[UIBreadcrumbs(false)]
public sealed class RoleAddUser : CreatePage<UserRoleInfo, RoleUserList>, IPage
- Inheritance
-
objectRoleAddUser
- 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
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGeneratoruserInfoProvider
IUserInfoProviderauthenticatedUserAccessor
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
FormSubmissionCommandArgumentsForm submission arguments.
items
ICollection<IFormItem>Form items with bound component values.
formFieldValueProvider
IFormFieldValueProviderProvider 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