Package org.apache.axiom.om

Examples of org.apache.axiom.om.OMFactory.createOMAttribute()


        LifecycleStateBean[] states = bean.getStates();
        for(LifecycleStateBean lifecycleState:states) {
            OMElement state = factory.createOMElement("state", null);
            state.addAttribute(factory.createOMAttribute("name", null, lifecycleState.getStateName()));
            if (lifecycleState.getLocation() != null)
                state.addAttribute(factory.createOMAttribute("location", null, lifecycleState.getLocation()));

            ChecklistBean checklistBean = lifecycleState.getChecklist();
            if (checklistBean != null) {
                String[] items = checklistBean.getItems();
                for (String item:items) {
View Full Code Here


            PermissionBean[] permissionBeans = lifecycleState.getPermissions();
            if (permissionBeans != null && permissionBeans.length > 0) {
                OMElement permissionsElement = factory.createOMElement("permissions", null);
                for (PermissionBean permissionBean: permissionBeans) {
                    OMElement permissionElement = factory.createOMElement("permission", null);
                    permissionElement.addAttribute(factory.createOMAttribute("action", null, permissionBean.getAction()));
//                    permissionElement.addAttribute(factory.createOMAttribute("roles", null, permissionBean.getRoles()));
                    permissionsElement.addChild(permissionElement);
                }
                state.addChild(permissionsElement);
            }
View Full Code Here

                    ScriptElementBean[] scripts = consoleScriptBean.getScripts();
                    if (scripts != null && scripts.length > 0) {
                        for (ScriptElementBean script : scripts) {
                            OMElement scriptElement = factory.createOMElement("script", null);
                            if (script.getSrc() != null) {
                                scriptElement.addAttribute(factory.createOMAttribute("src",
                                        null, script.getSrc()));
                            }
                            scriptElement.addAttribute(factory.createOMAttribute("type",
                                        null, "text/javascript"));
                            scriptElement.setText(script.getContent());
View Full Code Here

                            OMElement scriptElement = factory.createOMElement("script", null);
                            if (script.getSrc() != null) {
                                scriptElement.addAttribute(factory.createOMAttribute("src",
                                        null, script.getSrc()));
                            }
                            scriptElement.addAttribute(factory.createOMAttribute("type",
                                        null, "text/javascript"));
                            scriptElement.setText(script.getContent());
                            consoleElement.addChild(scriptElement);
                        }
                    }
View Full Code Here

                            consoleElement.addChild(scriptElement);
                        }
                    }
                    if (consoleScriptFunctionBeans != null && consoleScriptFunctionBeans.length > 0) {
                        for (ScriptFunctionBean consoleScriptFunctionBean : consoleScriptFunctionBeans) {
                            consoleElement.addAttribute(factory.createOMAttribute(
                                    consoleScriptFunctionBean.getName(), null,
                                    consoleScriptFunctionBean.getValue()));
                        }
                    }
                    jsElement.addChild(consoleElement);
View Full Code Here

                    ScriptElementBean[] scripts = serverScriptBean.getScripts();
                    if (scripts != null && scripts.length > 0) {
                        for (ScriptElementBean script : scripts) {
                            OMElement scriptElement = factory.createOMElement("script", null);
                            if (script.getSrc() != null) {
                                scriptElement.addAttribute(factory.createOMAttribute("src",
                                        null, script.getSrc()));
                            }
                            scriptElement.addAttribute(factory.createOMAttribute("type",
                                        null, "text/javascript"));
                            scriptElement.setText(script.getContent());
View Full Code Here

                            OMElement scriptElement = factory.createOMElement("script", null);
                            if (script.getSrc() != null) {
                                scriptElement.addAttribute(factory.createOMAttribute("src",
                                        null, script.getSrc()));
                            }
                            scriptElement.addAttribute(factory.createOMAttribute("type",
                                        null, "text/javascript"));
                            scriptElement.setText(script.getContent());
                            serverElement.addChild(scriptElement);
                        }
                    }
View Full Code Here

                            serverElement.addChild(scriptElement);
                        }
                    }
                    if (serverScriptFunctionBeans != null && serverScriptFunctionBeans.length > 0) {
                        for (ScriptFunctionBean serverScriptFunctionBean : serverScriptFunctionBeans) {
                            serverElement.addAttribute(factory.createOMAttribute(
                                    serverScriptFunctionBean.getName(), null,
                                    serverScriptFunctionBean.getValue()));
                        }
                    }
                    jsElement.addChild(serverElement);
View Full Code Here

            throw new Exception("Crypto impl missing");
        }

        OMFactory fac = OMAbstractFactory.getOMFactory();
        OMElement paramElem = fac.createOMElement(new QName("parameter"), null);
        paramElem.addAttribute(fac.createOMAttribute("name",
                                                     null,
                                                     SCTIssuerConfig.SCT_ISSUER_CONFIG.
                                                             getLocalPart()));

        OMElement elem = fac.createOMElement(
View Full Code Here

        OMElement cryptoPropElem = fac.createOMElement(
                AbstractIssuerConfig.CRYPTO_PROPERTIES, elem);
        OMElement cryptoElem = fac.createOMElement(
                AbstractIssuerConfig.CRYPTO, cryptoPropElem);
        cryptoElem.addAttribute(fac.createOMAttribute("provider", null,
                                                      cryptoImpl));

        Enumeration keysEnum = cryptoProperties.keys();
        while (keysEnum.hasMoreElements()) {
            String key = (String) keysEnum.nextElement();
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.