|
||||||||||
| 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 | |
|---|---|
void |
addAlertNotification(Subject user,
int alertDefinitionId,
java.lang.String senderName,
Configuration configuration)
Add a new AlertNotification to the passed definition |
int |
addEmailNotifications(Subject subject,
java.lang.Integer alertDefinitionId,
java.lang.String[] emails)
|
int |
addRoleNotifications(Subject subject,
java.lang.Integer alertDefinitionId,
java.lang.Integer[] roleIds)
|
int |
addSubjectNotifications(Subject user,
java.lang.Integer alertDefinitionId,
java.lang.Integer[] subjectIds)
|
AlertSenderInfo |
getAlertInfoForSender(java.lang.String shortName)
|
Configuration |
getAlertPropertiesConfiguration(AlertNotification notification)
|
ConfigurationDefinition |
getConfigurationDefinitionForSender(java.lang.String shortName)
|
PageList<EmailNotification> |
getEmailNotifications(java.lang.Integer[] alertNotificationIds,
PageControl pageControl)
|
PageList<EmailNotification> |
getEmailNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
|
java.util.List<AlertNotification> |
getNotificationsForAlertDefinition(Subject user,
int alertDefinitionId)
Return notifications for a certain alertDefinitionId NOTE: this only returns notifications that have an AlertSender defined. |
PageList<RoleNotification> |
getRoleNotifications(java.lang.Integer[] alertNotificationIds,
PageControl pageControl)
|
PageList<RoleNotification> |
getRoleNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
|
PageList<RoleNotification> |
getRoleNotificationsByRoles(java.lang.Integer[] roleIds,
PageControl pageControl)
|
PageList<SnmpNotification> |
getSnmpNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
|
PageList<SubjectNotification> |
getSubjectNotifications(java.lang.Integer[] alertNotificationIds,
PageControl pageControl)
|
PageList<SubjectNotification> |
getSubjectNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
|
PageList<SubjectNotification> |
getSubjectNotificationsBySubjects(java.lang.Integer[] subjectIds,
PageControl pageControl)
|
java.util.List<java.lang.String> |
listAllAlertSenders()
Return a list of all available AlertSenders in the system by their shortname. |
int |
purgeOrphanedAlertNotifications()
|
int |
removeNotifications(Subject subject,
java.lang.Integer alertDefinitionId,
java.lang.Integer[] notificationIds)
Remove the passed notifications from the passed alert definition (all identified by their id) |
| 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 int addEmailNotifications(Subject subject,
java.lang.Integer alertDefinitionId,
java.lang.String[] emails)
addEmailNotifications in interface AlertNotificationManagerLocal
public PageList<EmailNotification> getEmailNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
getEmailNotifications in interface AlertNotificationManagerLocal
public PageList<EmailNotification> getEmailNotifications(java.lang.Integer[] alertNotificationIds,
PageControl pageControl)
getEmailNotifications in interface AlertNotificationManagerLocal
public int addRoleNotifications(Subject subject,
java.lang.Integer alertDefinitionId,
java.lang.Integer[] roleIds)
addRoleNotifications in interface AlertNotificationManagerLocal
public PageList<RoleNotification> getRoleNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
getRoleNotifications in interface AlertNotificationManagerLocal
public PageList<RoleNotification> getRoleNotifications(java.lang.Integer[] alertNotificationIds,
PageControl pageControl)
getRoleNotifications in interface AlertNotificationManagerLocal
public PageList<RoleNotification> getRoleNotificationsByRoles(java.lang.Integer[] roleIds,
PageControl pageControl)
getRoleNotificationsByRoles in interface AlertNotificationManagerLocal
public int addSubjectNotifications(Subject user,
java.lang.Integer alertDefinitionId,
java.lang.Integer[] subjectIds)
addSubjectNotifications in interface AlertNotificationManagerLocal
public PageList<SubjectNotification> getSubjectNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
getSubjectNotifications in interface AlertNotificationManagerLocal
public PageList<SnmpNotification> getSnmpNotifications(java.lang.Integer alertDefinitionId,
PageControl pageControl)
getSnmpNotifications in interface AlertNotificationManagerLocal
public PageList<SubjectNotification> getSubjectNotifications(java.lang.Integer[] alertNotificationIds,
PageControl pageControl)
getSubjectNotifications in interface AlertNotificationManagerLocal
public PageList<SubjectNotification> getSubjectNotificationsBySubjects(java.lang.Integer[] subjectIds,
PageControl pageControl)
getSubjectNotificationsBySubjects in interface AlertNotificationManagerLocal
public int removeNotifications(Subject subject,
java.lang.Integer alertDefinitionId,
java.lang.Integer[] notificationIds)
AlertNotificationManagerLocal
removeNotifications in interface AlertNotificationManagerLocalsubject - CalleralertDefinitionId - alert definition to modifynotificationIds - Notifications to remove
public int purgeOrphanedAlertNotifications()
purgeOrphanedAlertNotifications in interface AlertNotificationManagerLocalpublic Configuration getAlertPropertiesConfiguration(AlertNotification notification)
getAlertPropertiesConfiguration in interface AlertNotificationManagerLocalpublic ConfigurationDefinition getConfigurationDefinitionForSender(java.lang.String shortName)
getConfigurationDefinitionForSender in interface AlertNotificationManagerLocalpublic java.util.List<java.lang.String> listAllAlertSenders()
listAllAlertSenders in interface AlertNotificationManagerLocalpublic AlertSenderInfo getAlertInfoForSender(java.lang.String shortName)
getAlertInfoForSender in interface AlertNotificationManagerLocal
public void addAlertNotification(Subject user,
int alertDefinitionId,
java.lang.String senderName,
Configuration configuration)
addAlertNotification in interface AlertNotificationManagerLocaluser - subject of the calleralertDefinitionId - Id of the alert definitionsenderName - shortName of the AlertSenderconfiguration - Properties for this alert sender.
public java.util.List<AlertNotification> getNotificationsForAlertDefinition(Subject user,
int alertDefinitionId)
getNotificationsForAlertDefinition in interface AlertNotificationManagerLocaluser - Subject of the calleralertDefinitionId - Id of the alert definition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||