Interface NotificationContext
- 
- All Superinterfaces:
- Countable,- Extendable<PropertySet>,- java.lang.Iterable<PropertyValue>,- Mergable<PropertySet>,- MutablePropertyValueSource,- PropertySet,- PropertyValueSource,- java.io.Serializable
 
 public interface NotificationContext extends PropertySet The context for a particular notification. Provides theAlarmEvents that should be described in the notification, as well as the user that should be notified. Beyond providing information, the notification context is an important control mechanism. Profiles must call eithernotificationDone()ornotificationFailed(LocalizedString)when finished. The NotificationContext extends PropertySet, and will contain the configured properties defined by the notification profile.
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<AlarmEvent>getAlarmEvents()java.util.EnumSet<DropoutCondition>getDropoutConditions()UsergetUser()voidnotificationDone()Call when notification has been completed successfully.voidnotificationFailed(LocalizedString failureMessage)None of theAlarmEvents in this context could be sent due some underlying failure.- 
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSourcemerge, remove, set, set
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetextend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourcecontains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties, getValues
 
- 
 
- 
- 
- 
Method Detail- 
getAlarmEventsjava.util.List<AlarmEvent> getAlarmEvents() - Returns:
- A List of AlarmEvents that triggered this notification.
 
 - 
getDropoutConditionsjava.util.EnumSet<DropoutCondition> getDropoutConditions() - Returns:
- the DropoutConditions configured on the pipeline.
 
 - 
notificationDonevoid notificationDone() Call when notification has been completed successfully.
 - 
notificationFailedvoid notificationFailed(LocalizedString failureMessage) None of theAlarmEvents in this context could be sent due some underlying failure. If a fall-back for the currentAlarmPipelineis defined, all events will be placed upon it for evaluation.- Parameters:
- failureMessage- The reason for failure. This message will be user-facing in the pipeline status area if no fall-back is defined.
 
 
- 
 
-