|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AlertNotificationManagerLocal
| Method Summary | |
|---|---|
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)
Add a new AlertNotification to the passed definition |
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)
Remove the passed notifications from the passed alert definition (all identified by their id) |
void |
updateAlertNotification(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId,
org.rhq.core.domain.alert.notification.AlertNotification notification)
Persist changes to the passed AlertNotification |
| Method Detail |
|---|
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 configuration
AlertDefinitionUpdateException
void updateAlertNotification(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId,
org.rhq.core.domain.alert.notification.AlertNotification notification)
throws AlertDefinitionUpdateException,
AlertNotificationValidationException
AlertNotification
notification -
AlertNotificationValidationException - if the alert sender of the notification failed to finalize and validate the notification's configuration
AlertDefinitionUpdateException
int removeNotifications(org.rhq.core.domain.auth.Subject subject,
Integer alertDefinitionId,
Integer[] notificationIds)
subject - CalleralertDefinitionId - alert definition to modifynotificationIds - Notifications to remove
boolean 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 process
int 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 definition
AlertSenderInfo getAlertInfoForSender(String shortName)
CustomAlertSenderBackingBean getBackingBeanForSender(String shortName,
Integer alertNotificationId)
shortName - name of a senderalertNotificationId -
String getBackingBeanNameForSender(String shortName)
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 values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||