C# Class SenseNet.Messaging.NotificationConfig

Inheritance: SenseNet.ContentRepository.GenericContent
显示文件 Open project: maxpavlov/FlexNet Class Usage Examples

Public Properties

Property Type Description
CONFIGFOLDERNAME string
NOTIFICATIONCONFIGCONTENTNAME string
NOTIFICATIONCONFIGTYPENAME string

Private Properties

Property Type Description

Public Methods

Method Description
GetBody ( Node context ) : string

Returns the subject for the emails controlled by this config. {FieldName} entities are replaced with referenced Field value.

GetProperty ( string name ) : object
GetSubject ( Node context ) : string

Returns the subject for the emails controlled by this config. {FieldName} entities are replaced with referenced Field value.

IsNotificationAllowedForContent ( Node context ) : bool

Returns false if notification email should not be sent for current context. The default implementation only returns false when the notification would be about this config.

NotificationConfig ( Node parent ) : System
NotificationConfig ( Node parent, string nodeTypeName ) : System
SetProperty ( string name, object value ) : void

Protected Methods

Method Description
NotificationConfig ( NodeToken nt ) : System
ReplacePropertyValues ( Node context, string text ) : string

Method Details

GetBody() public method

Returns the subject for the emails controlled by this config. {FieldName} entities are replaced with referenced Field value.
public GetBody ( Node context ) : string
context Node
return string

GetProperty() public method

public GetProperty ( string name ) : object
name string
return object

GetSubject() public method

Returns the subject for the emails controlled by this config. {FieldName} entities are replaced with referenced Field value.
public GetSubject ( Node context ) : string
context Node
return string

IsNotificationAllowedForContent() public method

Returns false if notification email should not be sent for current context. The default implementation only returns false when the notification would be about this config.
public IsNotificationAllowedForContent ( Node context ) : bool
context Node
return bool

NotificationConfig() public method

public NotificationConfig ( Node parent ) : System
parent Node
return System

NotificationConfig() public method

public NotificationConfig ( Node parent, string nodeTypeName ) : System
parent Node
nodeTypeName string
return System

NotificationConfig() protected method

protected NotificationConfig ( NodeToken nt ) : System
nt SenseNet.ContentRepository.Storage.NodeToken
return System

ReplacePropertyValues() protected method

protected ReplacePropertyValues ( Node context, string text ) : string
context Node
text string
return string

SetProperty() public method

public SetProperty ( string name, object value ) : void
name string
value object
return void

Property Details

CONFIGFOLDERNAME public_oe static_oe property

public static string CONFIGFOLDERNAME
return string

NOTIFICATIONCONFIGCONTENTNAME public_oe static_oe property

public static string NOTIFICATIONCONFIGCONTENTNAME
return string

NOTIFICATIONCONFIGTYPENAME public_oe static_oe property

public static string NOTIFICATIONCONFIGTYPENAME
return string