Interface NotificationContext
- All Superinterfaces:
Countable
,Extendable<PropertySet>
,Iterable<PropertyValue>
,Mergable<PropertySet>
,MutablePropertyValueSource
,PropertySet
,PropertyValueSource
,Serializable
The context for a particular notification. Provides the
AlarmEvent
s 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 either
notificationDone()
or notificationFailed(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.PropertySet
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptiongetUser()
void
Call when notification has been completed successfully.void
notificationFailed
(LocalizedString failureMessage) None of theAlarmEvent
s in this context could be sent due some underlying failure.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSource
merge, remove, set, set
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
contains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties, getValues
-
Method Details
-
getUser
User getUser()- Returns:
- the
User
to notify.
-
getAlarmEvents
List<AlarmEvent> getAlarmEvents()- Returns:
- A List of
AlarmEvent
s that triggered this notification.
-
getDropoutConditions
EnumSet<DropoutCondition> getDropoutConditions()- Returns:
- the
DropoutCondition
s configured on the pipeline.
-
notificationDone
void notificationDone()Call when notification has been completed successfully. -
notificationFailed
None of theAlarmEvent
s in this context could be sent due some underlying failure. If a fall-back for the currentAlarmPipeline
is 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.
-