Package org.rhq.core.domain.plugin

Examples of org.rhq.core.domain.plugin.CannedGroupExpression


            return null;
        }
        CannedGroupAddition addition = new CannedGroupAddition();
       
        for (CannedGroupExpressions.Definition def : descriptor.getGroupDefinitions()) {
            CannedGroupExpression cge = new CannedGroupExpression();
            cge.setId(def.getId());
            cge.setName(def.getName());
            cge.setPlugin(plugin);
            cge.setCreateByDefault(def.isCreateByDefault());
            cge.setDescription(def.getDescription());
            cge.setExpression(def.getExpression());
            cge.setRecalcInMinutes(def.getRecalcInMinutes().intValue());
            if (validateCGE(cge)) {
                addition.getExpressions().add(cge);
            }
        }
        return addition;
View Full Code Here


            @Override
            public void onChanged(ChangedEvent event) {
                if (event.getValue() != null) {
                    String selectedTemplateId = event.getValue().toString();
                    // user picked one of the canned expressions - update field values
                    CannedGroupExpression cge = cannedExpressions.get(selectedTemplateId);
                    if (cge != null) {
                        StringBuilder expr = new StringBuilder();
                        for (String e : cge.getExpression()) {
                            expr.append(e+"\n");
                        }
                        expression.setValue(expr.toString());
                        recalculationInterval.setValue(cge.getRecalcInMinutes());
                        description.setValue(cge.getDescription());
                        recursive.setValue(cge.isRecursive());
                        name.setValue(cge.getName());
                    }
                    else {
                        expression.setValue("");
                    }
                } else {
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.plugin.CannedGroupExpression

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.