Examples of OSGiConfigAdminData


Examples of org.jboss.as.console.client.shared.subsys.osgi.model.OSGiConfigAdminData

                ModelNode response = ModelNode.fromBase64(result.getResponseText());
                ModelNode model = response.get(RESULT);

                List<OSGiConfigAdminData> casDataList = new ArrayList<OSGiConfigAdminData>();
                for (String pid : model.keys()) {
                    OSGiConfigAdminData data = factory.osgiConfigAdminData().as();
                    data.setPid(pid);

                    List<PropertyRecord> properties = new ArrayList<PropertyRecord>();
                    for(Property property : model.get(pid).get("entries").asPropertyList()) {
                        PropertyRecord record = factory.property().as();
                        record.setKey(property.getName());
                        record.setValue(property.getValue().asString());
                        properties.add(record);
                    }
                    data.setProperties(properties);
                    casDataList.add(data);
                }
                getView().updateConfigurationAdmin(casDataList, selectPid);
            }
        });
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.osgi.model.OSGiConfigAdminData

    public List<OSGiConfigAdminData> getData() {
        return dataProvider.getList();
    }

    void setData(List<OSGiConfigAdminData> data, String selectPid) {
        OSGiConfigAdminData sel = selectionModel.getSelectedObject();
        if (selectPid == null && sel != null)
            selectPid = sel.getPid();

        dataProvider.getList().clear();
        dataProvider.getList().addAll(data);

        if (selectPid != null) {
View Full Code Here

Examples of org.jboss.as.console.client.shared.subsys.osgi.model.OSGiConfigAdminData

            new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    FormValidation validation = form.validate();
                    if (!validation.hasErrors()) {
                        OSGiConfigAdminData data = form.getUpdatedEntity();
                        data.setProperties(properties);
                        presenter.onAddConfigurationAdminData(data);
                    }
                }
            }, new ClickHandler() {
                @Override
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.