C# Класс Sitecore.Modules.WeBlog.Workflow.ExtendedMailAction

Uses NVelocity to parse templates in Sitecore mail action
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
velocityContext NVelocity.VelocityContext

Открытые методы

Метод Описание
ExtendedMailAction ( ) : System
Process ( WorkflowPipelineArgs args ) : void

Processes the mail action, creates and sends the email

Защищенные методы

Метод Описание
CreateContext ( WorkflowPipelineArgs args ) : void

Creates velocity context.

To add your own data to the context, you should override the PopulateContext method

PopulateContext ( WorkflowPipelineArgs args ) : void

Populates the velocity template context. Only the objects that were added in this method will be accessible in the mail template.

Override this to add your own data to the context

ProcessValue ( string value, System.Item item ) : string

Processes the template, expanding all known values

Приватные методы

Метод Описание
GetNextState ( WorkflowPipelineArgs args ) : string
ProcessFieldValue ( string fieldName, System.Item item ) : string

Описание методов

CreateContext() защищенный Метод

Creates velocity context.
To add your own data to the context, you should override the PopulateContext method
protected CreateContext ( WorkflowPipelineArgs args ) : void
args WorkflowPipelineArgs
Результат void

ExtendedMailAction() публичный Метод

public ExtendedMailAction ( ) : System
Результат System

PopulateContext() защищенный Метод

Populates the velocity template context. Only the objects that were added in this method will be accessible in the mail template.
Override this to add your own data to the context
protected PopulateContext ( WorkflowPipelineArgs args ) : void
args WorkflowPipelineArgs
Результат void

Process() публичный Метод

Processes the mail action, creates and sends the email
public Process ( WorkflowPipelineArgs args ) : void
args WorkflowPipelineArgs
Результат void

ProcessValue() защищенный Метод

Processes the template, expanding all known values
protected ProcessValue ( string value, System.Item item ) : string
value string Template to process
item System.Item
Результат string

Описание свойств

velocityContext защищенное свойство

protected VelocityContext,NVelocity velocityContext
Результат NVelocity.VelocityContext