Examples of acknowledgeAlerts()


Examples of org.rhq.enterprise.server.alert.AlertManagerLocal.acknowledgeAlerts()

        Subject subject = EnterpriseFacesContextUtility.getSubject();
        AlertManagerLocal alertManager = LookupUtil.getAlertManager();

        try {
            Integer[] selectedItems = getSelectedItems();
            int num = alertManager.acknowledgeAlerts(subject, ArrayUtils.unwrapArray(selectedItems));
            if (num == -1)
                FacesContextUtility.addMessage(FacesMessage.SEVERITY_WARN, "No Alerts passed to ack");
            else
                FacesContextUtility.addMessage(FacesMessage.SEVERITY_INFO, "Acknowledged " + num + " alerts");
        } catch (Exception e) {
View Full Code Here

Examples of org.rhq.enterprise.server.alert.AlertManagerLocal.acknowledgeAlerts()

        String mode = request.getParameter("mode");
        request.setAttribute("mode", mode);
        params.put("mode", mode);

        alertManager.acknowledgeAlerts(subject, new int[] { alertId });

        log.debug("Acknowledged Alert with id " + alertId + " and user " + subject.getName());

        return returnSuccess(request, mapping, params);
    }
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.