C# 클래스 Sitecore.Modules.WeBlog.Workflow.ExtendedMailAction

Uses NVelocity to parse templates in Sitecore mail action
파일 보기 프로젝트 열기: WeTeam/WeBlog

보호된 프로퍼티들

프로퍼티 타입 설명
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