Class ContactGroupEditConditionDialog
- Namespace
- Kentico.Xperience.Admin.DigitalMarketing.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalMarketing.dll
Contact group condition edit dialog.
[UIPageLocation(PageLocationEnum.Dialog)]
[UINavigation(false)]
[UIBreadcrumbs(false)]
public sealed class ContactGroupEditConditionDialog : ConditionBuilderPage<ContactGroupInfo>, IPage
- Inheritance
-
objectContactGroupEditConditionDialog
- Implements
- Inherited Members
- Extension Methods
Constructors
ContactGroupEditConditionDialog(IConditionParameterCommandProcessor, IAuthenticatedUserAccessor)
Initializes an instance of the ContactGroupEditConditionDialog class.
public ContactGroupEditConditionDialog(IConditionParameterCommandProcessor commandProcessor, IAuthenticatedUserAccessor authenticatedUserAccessor)
Parameters
commandProcessorIConditionParameterCommandProcessorProcessor for condition builder parameter form component command.
authenticatedUserAccessorIAuthenticatedUserAccessorCurrently logged in user accessor.
Properties
ConditionColumnName
Name of the condition column of the ContactGroupInfo.
protected override string ConditionColumnName { get; }
Property Value
- string
ObjectId
ID of a contact group.
[PageParameter(typeof(IntPageModelBinder))]
public override int ObjectId { get; set; }
Property Value
- int
Methods
ComponentCommand(FormComponentCommandModel, CancellationToken)
Handles the form component command invocation.
[PageCommand]
public Task<object> ComponentCommand(FormComponentCommandModel commandModel, CancellationToken cancellationToken)
Parameters
commandModelFormComponentCommandModelForm component command arguments.
cancellationTokenCancellationTokenThe cancellation instruction.
Returns
- Task<object>
Returns the form component command result.
ConfigurePage()
Set up page's configuration. Configures the submit action.
public override Task ConfigurePage()
Returns
- Task
SetInfoObject(ContactGroupInfo)
Sets the infoObject.
protected override void SetInfoObject(ContactGroupInfo infoObject)
Parameters
infoObjectContactGroupInfo
Submit(SelectedConditionTree)
Handles the condition builder submit command.
[PageCommand(Permission = "Update")]
public override Task<ICommandResponse> Submit(SelectedConditionTree conditiontree)
Parameters
conditiontreeSelectedConditionTreeCondition to save.
Returns
- Task<ICommandResponse>
Returns the form submission result.
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>