public class AlertNotificationManagerBean extends Object implements AlertNotificationManagerLocal
| Constructor and Description |
|---|
AlertNotificationManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.alert.notification.AlertNotification |
addAlertNotification(org.rhq.core.domain.auth.Subject user,
int alertDefinitionId,
org.rhq.core.domain.alert.notification.AlertNotification notification)
Deprecated.
|
int |
cleanseAlertNotificationByRole(int roleId) |
int |
cleanseAlertNotificationBySubject(int subjectId) |
boolean |
finalizeNotifications(org.rhq.core.domain.auth.Subject subject,
List<org.rhq.core.domain.alert.notification.AlertNotification> notifications)
This method calls out to the alert senders responsible to individual notifications and ask
them to finalize and validate the notifications before they are processed further.
|
AlertSenderInfo |
getAlertInfoForSender(String shortName) |
org.rhq.core.domain.alert.notification.AlertNotification |
getAlertNotification(org.rhq.core.domain.auth.Subject user,
int alertNotificationId) |
CustomAlertSenderBackingBean |
getBackingBeanForSender(String shortName,
Integer alertNotificationId)
Return the backing bean for the AlertSender with the passed shortName.
|
String |
getBackingBeanNameForSender(String shortName) |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getConfigurationDefinitionForSender(String shortName) |
List<org.rhq.core.domain.alert.notification.AlertNotification> |
getNotificationsForAlertDefinition(org.rhq.core.domain.auth.Subject user,
int alertDefinitionId)
Return notifications for a certain alertDefinitionId
NOTE: this only returns notifications that have an AlertSender defined.
|
List<String> |
listAllAlertSenders()
Return a list of all available AlertSenders in the system by their shortname.
|
void |
massReconfigure(List<Integer> alertNotificationIds,
Map<String,String> newConfigurationValues)
This method can be used to reconfigure a number of notifications en-masse.
|
int |
purgeOrphanedAlertNotifications() |
int |
removeNotifications(org.rhq.core.domain.auth.Subject subject,
Integer alertDefinitionId,
Integer[] notificationIds)
Deprecated.
|
void |
updateAlertNotification(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId,
org.rhq.core.domain.alert.notification.AlertNotification notification)
Deprecated.
|
@Deprecated public org.rhq.core.domain.alert.notification.AlertNotification addAlertNotification(org.rhq.core.domain.auth.Subject user, int alertDefinitionId, org.rhq.core.domain.alert.notification.AlertNotification notification) throws AlertDefinitionUpdateException
AlertNotificationManagerLocaladdAlertNotification in interface AlertNotificationManagerLocaluser - subject of the calleralertDefinitionId - Id of the alert definitionAlertDefinitionUpdateException - if the AlertNotification is not associated with a known sender@Deprecated public void updateAlertNotification(org.rhq.core.domain.auth.Subject subject, int alertDefinitionId, org.rhq.core.domain.alert.notification.AlertNotification notification)
AlertNotificationManagerLocalAlertNotificationupdateAlertNotification in interface AlertNotificationManagerLocal@Deprecated public int removeNotifications(org.rhq.core.domain.auth.Subject subject, Integer alertDefinitionId, Integer[] notificationIds)
AlertNotificationManagerLocalremoveNotifications in interface AlertNotificationManagerLocalsubject - CalleralertDefinitionId - alert definition to modifynotificationIds - Notifications to removepublic int purgeOrphanedAlertNotifications()
purgeOrphanedAlertNotifications in interface AlertNotificationManagerLocalpublic org.rhq.core.domain.configuration.definition.ConfigurationDefinition getConfigurationDefinitionForSender(String shortName)
getConfigurationDefinitionForSender in interface AlertNotificationManagerLocalpublic List<String> listAllAlertSenders()
listAllAlertSenders in interface AlertNotificationManagerLocalpublic AlertSenderInfo getAlertInfoForSender(String shortName)
getAlertInfoForSender in interface AlertNotificationManagerLocalpublic CustomAlertSenderBackingBean getBackingBeanForSender(String shortName, Integer alertNotificationId)
getBackingBeanForSender in interface AlertNotificationManagerLocalshortName - name of a senderalertNotificationId - id of the notification we assign this sender + its backing bean topublic String getBackingBeanNameForSender(String shortName)
getBackingBeanNameForSender in interface AlertNotificationManagerLocalpublic List<org.rhq.core.domain.alert.notification.AlertNotification> getNotificationsForAlertDefinition(org.rhq.core.domain.auth.Subject user, int alertDefinitionId)
getNotificationsForAlertDefinition in interface AlertNotificationManagerLocaluser - Subject of the calleralertDefinitionId - Id of the alert definitionpublic org.rhq.core.domain.alert.notification.AlertNotification getAlertNotification(org.rhq.core.domain.auth.Subject user,
int alertNotificationId)
getAlertNotification in interface AlertNotificationManagerLocalpublic boolean finalizeNotifications(org.rhq.core.domain.auth.Subject subject,
List<org.rhq.core.domain.alert.notification.AlertNotification> notifications)
AlertNotificationManagerLocalThe notifications can be modified during this call. New properties can be added to their configurations, etc.
finalizeNotifications in interface AlertNotificationManagerLocalsubject - the subject that is requesting the changesnotifications - the notifications to processpublic int cleanseAlertNotificationBySubject(int subjectId)
cleanseAlertNotificationBySubject in interface AlertNotificationManagerLocalpublic int cleanseAlertNotificationByRole(int roleId)
cleanseAlertNotificationByRole in interface AlertNotificationManagerLocalpublic void massReconfigure(List<Integer> alertNotificationIds, Map<String,String> newConfigurationValues)
AlertNotificationManagerLocalmassReconfigure in interface AlertNotificationManagerLocalalertNotificationIds - the alert notifications to updatenewConfigurationValues - a map where keys are the property names and values are the new property valuesCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.