public class NotificationConfiguration
extends java.lang.Object
The type NotificationConfiguration, which can be used to create a NotificationProvider
instance.
Modifier and Type | Field and Description |
---|---|
Configuration |
internalConfiguration |
Constructor and Description |
---|
NotificationConfiguration(java.lang.String sourceName)
Instantiates a new NotificationConfiguration.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChannelNamespace()
Gets the channel namespace.
|
java.lang.String |
getItemNamespace()
Gets the item namespace.
|
java.lang.String |
getSourceName()
Gets the notification source name.
|
boolean |
isNotificationUsingImageFlag()
Returns true if image flags are set to true on each Notification record for its initial message, otherwise false.
|
void |
setNotificationUsingImageFlag(boolean useImageFlag)
Set the Notification records' image flags to be set to true on publishing initial message.
|
java.lang.String |
toString() |
public NotificationConfiguration(java.lang.String sourceName)
Instantiates a new NotificationConfiguration.
The sourceName can anything but without spaces is preferable. It will appear in the logging.
sourceName
- the NotificationProvider identifierpublic boolean isNotificationUsingImageFlag()
Returns true if image flags are set to true on each Notification record for its initial message, otherwise false.
public void setNotificationUsingImageFlag(boolean useImageFlag)
Set the Notification records' image flags to be set to true on publishing initial message.
The default, recommended setting is true. The use case for setting to false is to prevent notifications' fields being overwritten when two providers provide for the same Notifications.
useImageFlag
- boolean used to set the channel items image flagspublic java.lang.String getChannelNamespace()
Gets the channel namespace.
public java.lang.String getItemNamespace()
Gets the item namespace.
public java.lang.String getSourceName()
Gets the notification source name.
public java.lang.String toString()
toString
in class java.lang.Object
Please send bug reports and comments to Caplin support