Table of Contents

Class EmailCreate

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

Email creation page.

[UIEvaluatePermission("Create")]
public sealed class EmailCreate : Page<EmailCreateClientProperties>, IPage
Inheritance
object
EmailCreate
Implements
Inherited Members
Extension Methods

Constructors

EmailCreate(IFormItemCollectionProvider, IAuthenticatedUserAccessor, IEmailConfigurationManagerFactory, IPageLinkGenerator, IEmailTemplateDropDownOptionProvider, IInfoProvider<EmailTemplateInfo>)

Initializes an instance of the EmailCreate class.

public EmailCreate(IFormItemCollectionProvider formItemCollectionProvider, IAuthenticatedUserAccessor authenticatedUserAccessor, IEmailConfigurationManagerFactory emailConfigurationManagerFactory, IPageLinkGenerator pageLinkGenerator, IEmailTemplateDropDownOptionProvider emailTemplateDropDownOptionProvider, IInfoProvider<EmailTemplateInfo> emailTemplateInfoProvider)

Parameters

formItemCollectionProvider IFormItemCollectionProvider
authenticatedUserAccessor IAuthenticatedUserAccessor
emailConfigurationManagerFactory IEmailConfigurationManagerFactory
pageLinkGenerator IPageLinkGenerator
emailTemplateDropDownOptionProvider IEmailTemplateDropDownOptionProvider
emailTemplateInfoProvider IInfoProvider<EmailTemplateInfo>

Properties

ChannelApplicationIdentifier

Application identifier.

[PageParameter(typeof(EmailChannelsApplicationModelBinder), typeof(EmailChannelApplication))]
public EmailChannelApplicationUrlIdentifier ChannelApplicationIdentifier { get; set; }

Property Value

EmailChannelApplicationUrlIdentifier

ContentLanguageIdentifier

Content language identifier.

[PageParameter(typeof(ContentLanguageModelBinder), typeof(EmailChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }

Property Value

ContentLanguageUrlIdentifier

Methods

Back(FormSubmissionCommandArguments, CancellationToken)

Redirects to the previous email creation step with filled values.

public Task<ICommandResponse<EmailContinueCommandResult>> Back(FormSubmissionCommandArguments args, CancellationToken cancellationToken)

Parameters

args FormSubmissionCommandArguments

Form arguments for the first email creation step.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<EmailContinueCommandResult>>

Cancel()

Cancels the creation of a new email and redirects to the listing.

public Task<INavigateResponse> Cancel()

Returns

Task<INavigateResponse>

ConfigureTemplateProperties(EmailCreateClientProperties)

Gets the object representing client side template properties.

public override Task<EmailCreateClientProperties> ConfigureTemplateProperties(EmailCreateClientProperties properties)

Parameters

properties EmailCreateClientProperties

Initialized properties object.

Returns

Task<EmailCreateClientProperties>

Continue(FormSubmissionCommandArguments, CancellationToken)

Confirms the selection of creation parameters in the first step of email creation.

public Task<ICommandResponse<EmailContinueCommandResult>> Continue(FormSubmissionCommandArguments args, CancellationToken cancellationToken)

Parameters

args FormSubmissionCommandArguments

Form submission arguments from the first email creation step.

cancellationToken CancellationToken

Cancellation instruction.

Returns

Task<ICommandResponse<EmailContinueCommandResult>>

Create(EmailCreateCommandArguments)

Confirms the selection of creation parameters in the second email creation step and creates an email.

public Task<ICommandResponse<EmailCreateCommandResult>> Create(EmailCreateCommandArguments args)

Parameters

args EmailCreateCommandArguments

Create email command arguments.

Returns

Task<ICommandResponse<EmailCreateCommandResult>>

ValidatePage()

Validates the page state prior invocation of the ConfigurePage() method.

public override Task<PageValidationResult> ValidatePage()

Returns

Task<PageValidationResult>