public interface AlertNotificationManagerLocal
| 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.
this is used only by the legacy JSF UI and no longer works correctly
|
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 shortNama
|
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.
this is used only by the legacy JSF UI and no longer works correctly
|
void |
updateAlertNotification(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId,
org.rhq.core.domain.alert.notification.AlertNotification notification)
Deprecated.
this is used only by the legacy JSF UI and no longer works correctly
|
@Deprecated 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, AlertNotificationValidationException
user - subject of the calleralertDefinitionId - Id of the alert definitionsenderName - shortName of the AlertSenderconfiguration - Properties for this alert sender.AlertNotificationValidationException - if the alert sender of the notification failed to finalize and validate the provided notification's configurationAlertDefinitionUpdateException@Deprecated void updateAlertNotification(org.rhq.core.domain.auth.Subject subject, int alertDefinitionId, org.rhq.core.domain.alert.notification.AlertNotification notification) throws AlertDefinitionUpdateException, AlertNotificationValidationException
AlertNotificationnotification - AlertNotificationValidationException - if the alert sender of the notification failed to finalize and validate the notification's configurationAlertDefinitionUpdateException@Deprecated int removeNotifications(org.rhq.core.domain.auth.Subject subject, Integer alertDefinitionId, Integer[] notificationIds)
subject - CalleralertDefinitionId - alert definition to modifynotificationIds - Notifications to removeboolean finalizeNotifications(org.rhq.core.domain.auth.Subject subject,
List<org.rhq.core.domain.alert.notification.AlertNotification> notifications)
The notifications can be modified during this call. New properties can be added to their configurations, etc.
subject - the subject that is requesting the changesnotifications - the notifications to processint purgeOrphanedAlertNotifications()
List<String> listAllAlertSenders()
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)
user - Subject of the calleralertDefinitionId - Id of the alert definitionAlertSenderInfo getAlertInfoForSender(String shortName)
CustomAlertSenderBackingBean getBackingBeanForSender(String shortName, Integer alertNotificationId)
shortName - name of a senderalertNotificationId - org.rhq.core.domain.alert.notification.AlertNotification getAlertNotification(org.rhq.core.domain.auth.Subject user,
int alertNotificationId)
int cleanseAlertNotificationBySubject(int subjectId)
int cleanseAlertNotificationByRole(int roleId)
void massReconfigure(List<Integer> alertNotificationIds, Map<String,String> newConfigurationValues)
alertNotificationIds - the alert notifications to updatenewConfigurationValues - a map where keys are the property names and values are the new property valuesCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.