public class BasicAlertPolicyFilter extends AbstractPolicyFilter implements AlertPolicyFilter
order
REVISION
Constructor and Description |
---|
BasicAlertPolicyFilter() |
Modifier and Type | Method and Description |
---|---|
Alert |
beforeSendAlert(Alert alert,
AlertChannel alertChannel)
This method is called before sending an alert in a given alert channel.
|
java.util.Set<AlertChannel> |
getAlertChannelSet(Alert alert,
java.util.Set<AlertChannel> alertChannelSet)
This method is called before sending an alert to filter the alert channel set to use.
|
boolean |
init(Plugin plugin)
Initialize the component with the given plugin configuration
|
boolean |
saveAlert(Alert alert,
boolean saveAlert)
This method is called before saving an alert.
|
compareTo, equals, getOrder, setOrder
public boolean init(Plugin plugin)
PluginComponent
init
in interface PluginComponent
plugin
- the calling pluginpublic java.util.Set<AlertChannel> getAlertChannelSet(Alert alert, java.util.Set<AlertChannel> alertChannelSet)
AlertPolicyFilter
getAlertChannelSet
in interface AlertPolicyFilter
alert
- the alertalertChannelSet
- the proposed alertChannelSet for this alertpublic Alert beforeSendAlert(Alert alert, AlertChannel alertChannel)
AlertPolicyFilter
beforeSendAlert
in interface AlertPolicyFilter
alert
- the alertalertChannel
- the alertChannelpublic boolean saveAlert(Alert alert, boolean saveAlert)
AlertPolicyFilter
saveAlert
in interface AlertPolicyFilter
alert
- the alert to be savedsaveAlert
- the default valueCopyright © 2001-2017 Jalios SA. All Rights Reserved.