Package org.rhq.enterprise.server.plugin.pc.alert

Examples of org.rhq.enterprise.server.plugin.pc.alert.AlertSenderValidationResults


            for (AlertNotification notification : notifications) {
                AlertSender<?> sender = pluginManager.getAlertSenderForNotification(notification);

                if (sender != null) {
                    AlertSenderValidationResults validation = sender.validateAndFinalizeConfiguration(subject);

                    notification.setConfiguration(validation.getAlertParameters());
                    notification.setExtraConfiguration(validation.getExtraParameters());

                    hasErrors = hasErrors || hasErrors(validation.getAlertParameters())
                        || hasErrors(validation.getExtraParameters());
                }
            }
        }

        return !hasErrors;
View Full Code Here


        }
    }

    @Override
    public AlertSenderValidationResults validateAndFinalizeConfiguration(Subject subject) {
        AlertSenderValidationResults results = new AlertSenderValidationResults(alertParameters, extraParameters);

        String userIdString = alertParameters.getSimpleValue(PROP_USER_ID, null);
        String userName = alertParameters.getSimpleValue(PROP_USER_NAME, null);
        String userPassword = alertParameters.getSimpleValue(PROP_USER_PASSWORD, null);
View Full Code Here

        }
       
        updateConfig(alertParameters);
        updateConfig(extraParameters);
       
        return new AlertSenderValidationResults(alertParameters, extraParameters);
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.plugin.pc.alert.AlertSenderValidationResults

Copyright © 2018 www.massapicom. 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.