Package org.jmanage.connector.framework

Examples of org.jmanage.connector.framework.ConnectorConfigData


        connForm.setName(config.getName());
        connForm.setType(config.getType());

        Map paramValues = config.getParamValues();
        String connId = (String) paramValues.get(ConnectorForm.CONNECTOR_ID);
        ConnectorConfigData cfgData =
                ConnectorConfigRegistry.getConnectorConfigData(connId);

        String[] attrNames = cfgData.getFieldNames();
        for(int i = 0; i < attrNames.length; i++) {
            String value = (String) paramValues.get(attrNames[i]);
            if (value != null) {
                connForm.setConfigName(i, attrNames[i]);
                connForm.setConfigValue(i, value);
            }
        }

        connForm.setConnectorId(connId);
        connForm.setConnectorName(cfgData.getConnectorName());

        /*set current page for navigation*/
        request.setAttribute(RequestAttributes.NAV_CURRENT_PAGE, "Edit Application");
        return mapping.findForward(Forwards.SUCCESS);
    }
View Full Code Here


                || connForm.getConnectorId().length() == 0
                || connForm.getConnectorId().equals("none")) {
            connForm.setConfigNames(new String[0]);
        }
        else {
            ConnectorConfigData cfgData =
                    ConnectorConfigRegistry.getConnectorConfigData(
                            connForm.getConnectorId());
            connForm.setConfigNames(cfgData.getFieldNames());
            connForm.setConfigValues(cfgData.getFieldDefaultValues());
        }

        connForm.setConnectorNames(ConnectorConfigRegistry.getConnectorNames());
        connForm.setConnectorIds(ConnectorConfigRegistry.getConnectorIdList());
View Full Code Here

TOP

Related Classes of org.jmanage.connector.framework.ConnectorConfigData

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.