Package com.jalios.jcms.alert
Interface AlertPolicyFilter
- All Superinterfaces:
Comparable,PluginComponent,PolicyFilter
- All Known Implementing Classes:
BasicAlertPolicyFilter
This interface provides hooks for Alert management.
- Since:
- jcms-8.0.0
- Author:
- Olivier Dedieu
-
Method Summary
Modifier and TypeMethodDescriptionbeforeSendAlert(Alert alert, AlertChannel alertChannel) This method is called before sending an alert in a given alert channel.getAlertChannelSet(Alert alert, Set<AlertChannel> alertChannelSet) This method is called before sending an alert to filter the alert channel set to use.booleanThis method is called before saving an alert.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.jalios.jcms.plugin.PluginComponent
init
-
Method Details
-
getAlertChannelSet
This method is called before sending an alert to filter the alert channel set to use.- Parameters:
alert- the alertalertChannelSet- the proposed alertChannelSet for this alert. Do not modify it.- Returns:
- the alertChannelSet to use for this sending.
- Since:
- jcms-8.0.0
-
beforeSendAlert
This method is called before sending an alert in a given alert channel.- Parameters:
alert- the alertalertChannel- the alertChannel- Returns:
- the alert to be sent in the given AlertChannel
- Since:
- jcms-8.0.0
-
saveAlert
This method is called before saving an alert.- Parameters:
alert- the alert to be savedsaveAlert- the default value- Returns:
- true if the alert must saved false otherwise
- Since:
- jcms-8.0.0
-