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
commandProcessor
IConditionParameterCommandProcessorProcessor for condition builder parameter form component command.
authenticatedUserAccessor
IAuthenticatedUserAccessorCurrently 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.
public Task<object> ComponentCommand(FormComponentCommandModel commandModel, CancellationToken cancellationToken)
Parameters
commandModel
FormComponentCommandModelForm component command arguments.
cancellationToken
CancellationTokenThe 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
infoObject
ContactGroupInfo
Submit(SelectedConditionTree)
Handles the condition builder submit command.
public override Task<ICommandResponse> Submit(SelectedConditionTree conditiontree)
Parameters
conditiontree
SelectedConditionTreeCondition 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>