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
-
objectEmailCreate
- Implements
- Inherited Members
- Extension Methods
Constructors
EmailCreate(IAuthenticatedUserAccessor, IEmailConfigurationManagerFactory, IPageLinkGenerator, IInfoProvider<EmailTemplateInfo>, IInfoProvider<EmailPresetTemplateInfo>)
Initializes an instance of the EmailCreate class.
public EmailCreate(IAuthenticatedUserAccessor authenticatedUserAccessor, IEmailConfigurationManagerFactory emailConfigurationManagerFactory, IPageLinkGenerator pageLinkGenerator, IInfoProvider<EmailTemplateInfo> emailTemplateInfoProvider, IInfoProvider<EmailPresetTemplateInfo> emailPresetTemplateInfoProvider)
Parameters
authenticatedUserAccessorIAuthenticatedUserAccessoremailConfigurationManagerFactoryIEmailConfigurationManagerFactorypageLinkGeneratorIPageLinkGeneratoremailTemplateInfoProviderIInfoProvider<EmailTemplateInfo>emailPresetTemplateInfoProviderIInfoProvider<EmailPresetTemplateInfo>
Properties
ChannelApplicationIdentifier
Application identifier.
[PageParameter(typeof(EmailChannelsApplicationModelBinder), typeof(EmailChannelApplication))]
public EmailChannelApplicationUrlIdentifier ChannelApplicationIdentifier { get; set; }
Property Value
ContentLanguageIdentifier
Content language identifier.
[PageParameter(typeof(ContentLanguageModelBinder), typeof(EmailChannelContentLanguage))]
public ContentLanguageUrlIdentifier ContentLanguageIdentifier { get; set; }
Property Value
Methods
Back(FormSubmissionCommandArguments, CancellationToken)
Redirects to the previous email creation step with filled values.
[PageCommand(CommandName = "Back", Permission = "Create")]
public Task<ICommandResponse<EmailContinueCommandResult>> Back(FormSubmissionCommandArguments args, CancellationToken cancellationToken)
Parameters
argsFormSubmissionCommandArgumentsForm arguments for the first email creation step.
cancellationTokenCancellationTokenCancellation instruction.
Returns
Cancel()
Cancels the creation of a new email and redirects to the listing.
[PageCommand(CommandName = "Cancel", Permission = "Create")]
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
propertiesEmailCreateClientPropertiesInitialized properties object.
Returns
Continue(FormSubmissionCommandArguments, CancellationToken)
Confirms the selection of creation parameters in the first step of email creation.
[PageCommand(CommandName = "Continue", Permission = "Create")]
public Task<ICommandResponse<EmailContinueCommandResult>> Continue(FormSubmissionCommandArguments args, CancellationToken cancellationToken)
Parameters
argsFormSubmissionCommandArgumentsForm submission arguments from the first email creation step.
cancellationTokenCancellationTokenCancellation instruction.
Returns
Create(EmailCreateCommandArguments)
Confirms the selection of creation parameters in the second email creation step and creates an email.
[PageCommand(CommandName = "Create", Permission = "Create")]
public Task<ICommandResponse<EmailCreateCommandResult>> Create(EmailCreateCommandArguments args)
Parameters
argsEmailCreateCommandArgumentsCreate email command arguments.
Returns
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>