|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.alert.AlertNotificationManagerBean
public class AlertNotificationManagerBean
| Constructor Summary | |
|---|---|
AlertNotificationManagerBean()
|
|
| 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 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)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AlertNotificationManagerBean()
| Method Detail |
|---|
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
AlertNotificationManagerLocal
addAlertNotification in interface AlertNotificationManagerLocaluser - subject of the calleralertDefinitionId - Id of the alert definition
AlertDefinitionUpdateException - if the AlertNotification is not associated with a known sender
public void updateAlertNotification(org.rhq.core.domain.auth.Subject subject,
int alertDefinitionId,
org.rhq.core.domain.alert.notification.AlertNotification notification)
AlertNotificationManagerLocalAlertNotification
updateAlertNotification in interface AlertNotificationManagerLocal
public int removeNotifications(org.rhq.core.domain.auth.Subject subject,
Integer alertDefinitionId,
Integer[] notificationIds)
AlertNotificationManagerLocal
removeNotifications in interface AlertNotificationManagerLocalsubject - CalleralertDefinitionId - alert definition to modifynotificationIds - Notifications to remove
public 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 AlertNotificationManagerLocal
public 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 to
public String getBackingBeanNameForSender(String shortName)
getBackingBeanNameForSender in interface AlertNotificationManagerLocal
public 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 definition
public org.rhq.core.domain.alert.notification.AlertNotification getAlertNotification(org.rhq.core.domain.auth.Subject user,
int alertNotificationId)
getAlertNotification in interface AlertNotificationManagerLocal
public 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 process
public int cleanseAlertNotificationBySubject(int subjectId)
cleanseAlertNotificationBySubject in interface AlertNotificationManagerLocalpublic int cleanseAlertNotificationByRole(int roleId)
cleanseAlertNotificationByRole in interface AlertNotificationManagerLocal
public void massReconfigure(List<Integer> alertNotificationIds,
Map<String,String> newConfigurationValues)
AlertNotificationManagerLocal
massReconfigure in interface AlertNotificationManagerLocalalertNotificationIds - 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 | |||||||||