Class SendDraftPageBase
- Namespace
- Kentico.Xperience.Admin.DigitalMarketing.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalMarketing.dll
'Send draft email' page.
public abstract class SendDraftPageBase : ModelEditPage<SendDraftModel>, IPage
- Inheritance
-
objectSendDraftPageBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SendDraftPageBase(IFormDataBinder, IInfoProvider<EmailConfigurationInfo>, IAuthenticatedUserAccessor, IServiceProvider)
Initializes a new instance of the SendDraftPageBase class.
public SendDraftPageBase(IFormDataBinder formDataBinder, IInfoProvider<EmailConfigurationInfo> emailConfigurationInfoProvider, IAuthenticatedUserAccessor authenticatedUserAccessor, IServiceProvider serviceProvider)
Parameters
formDataBinder
IFormDataBinderemailConfigurationInfoProvider
IInfoProvider<EmailConfigurationInfo>authenticatedUserAccessor
IAuthenticatedUserAccessorserviceProvider
IServiceProvider
Properties
EmailConfigurationID
Email configuration identifier.
[PageParameter(typeof(IntPageModelBinder), typeof(EmailEditLayout))]
public int EmailConfigurationID { get; set; }
Property Value
- int
Model
Gets edited model that represents the form.
protected override SendDraftModel Model { get; }
Property Value
SuccessMessageKey
Gets or sets the success message displayed after submitting the form.
protected override string SuccessMessageKey { get; }
Property Value
- string
Methods
ConfigurePage()
Set up page's configuration. Configures the submit action.
public override Task ConfigurePage()
Returns
- Task
ProcessFormData(SendDraftModel, ICollection<IFormItem>)
Stores the model
and creates a response for the Submit(FormSubmissionCommandArguments) command.
protected override Task<ICommandResponse> ProcessFormData(SendDraftModel model, ICollection<IFormItem> formItems)
Parameters
model
SendDraftModelModel to be stored.
formItems
ICollection<IFormItem>Form items with bound component values.
Returns
- Task<ICommandResponse>
The response to be used for the Submit(FormSubmissionCommandArguments) command.
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>