Examples of AlertNotificationManagerLocal


Examples of org.rhq.enterprise.server.alert.AlertNotificationManagerLocal

                    notifsToReAssign.add(cliNotif);
                }
            }
        }

        AlertNotificationManagerLocal notificationManager = LookupUtil.getAlertNotificationManager();

        List<Integer> notifIds = asIdList(notifsToReAssign);
        Map<String, String> updates = Collections.singletonMap(CliSender.PROP_USER_ID,
            Integer.toString(subject.getId()));
        notificationManager.massReconfigure(notifIds, updates);
    }
View Full Code Here

Examples of org.rhq.enterprise.server.alert.AlertNotificationManagerLocal

    @Override
    protected int handleRemove(Subject subject, RemoveNotificationsForm removeForm) throws Exception {
        Integer[] emailNotificationIds = removeForm.getEmails();
        Integer alertDefinitionId = removeForm.getAd();

        AlertNotificationManagerLocal alertNotificationManager = LookupUtil.getAlertNotificationManager();

        return alertNotificationManager.removeNotifications(subject, alertDefinitionId, emailNotificationIds);
    }
View Full Code Here

Examples of org.rhq.enterprise.server.alert.AlertNotificationManagerLocal

    @Override
    protected int handleRemove(Subject subject, RemoveNotificationsForm removeForm) throws Exception {
        Integer[] subjectNotificationIds = removeForm.getUsers();
        Integer alertDefinitionId = removeForm.getAd();

        AlertNotificationManagerLocal alertNotificationManager = LookupUtil.getAlertNotificationManager();

        return alertNotificationManager.removeNotifications(subject, alertDefinitionId, subjectNotificationIds);
    }
View Full Code Here

Examples of org.rhq.enterprise.server.alert.AlertNotificationManagerLocal

    @Override
    protected int handleRemove(Subject subject, RemoveNotificationsForm removeForm) throws Exception {
        Integer[] roleNotificationIds = removeForm.getRoles();
        Integer alertDefinitionId = removeForm.getAd();

        AlertNotificationManagerLocal alertNotificationManager = LookupUtil.getAlertNotificationManager();
        return alertNotificationManager.removeNotifications(subject, alertDefinitionId, roleNotificationIds);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.