Package org.identityconnectors.framework.api

Examples of org.identityconnectors.framework.api.ConfigurationProperty


                connInstance.getVersion(), connInstance.getConnectorName());

        BeanUtils.copyProperties(connInstance, connInstanceTO, IGNORE_PROPERTIES);

        ConnConfPropSchema connConfPropSchema;
        ConfigurationProperty configurationProperty;

        Map<String, ConnConfProperty> connInstanceToConfMap = connInstanceTO.getConfigurationMap();
        for (String propName : properties.getPropertyNames()) {
            configurationProperty = properties.getProperty(propName);

            if (!connInstanceToConfMap.containsKey(propName)) {
                connConfPropSchema = new ConnConfPropSchema();
                connConfPropSchema.setName(configurationProperty.getName());
                connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));
                connConfPropSchema.setHelpMessage(configurationProperty.getHelpMessage(propName));
                connConfPropSchema.setRequired(configurationProperty.isRequired());
                connConfPropSchema.setType(configurationProperty.getType().getName());

                ConnConfProperty property = new ConnConfProperty();
                property.setSchema(connConfPropSchema);
                connInstanceTO.addConfiguration(property);
            } else {
                connInstanceToConfMap.get(propName).getSchema().setDisplayName(
                        configurationProperty.getDisplayName(propName));
            }
        }
        return connInstanceTO;
    }
View Full Code Here


                connectorBundleTO.setVersion(key.getBundleVersion());

                ConfigurationProperties properties = bundleManager.getConfigurationProperties(bundle);

                ConnConfPropSchema connConfPropSchema;
                ConfigurationProperty configurationProperty;

                for (String propName : properties.getPropertyNames()) {
                    connConfPropSchema = new ConnConfPropSchema();

                    configurationProperty = properties.getProperty(propName);

                    // set name
                    connConfPropSchema.setName(configurationProperty.getName());

                    // set display name
                    connConfPropSchema.setDisplayName(configurationProperty.getDisplayName(propName));

                    // set help message
                    connConfPropSchema.setHelpMessage(configurationProperty.getHelpMessage(propName));

                    // set if mandatory
                    connConfPropSchema.setRequired(configurationProperty.isRequired());

                    // set type
                    connConfPropSchema.setType(configurationProperty.getType().getName());

                    connectorBundleTO.addProperty(connConfPropSchema);
                }

                LOG.debug("Bundle properties: {}", connectorBundleTO.getProperties());
View Full Code Here

TOP

Related Classes of org.identityconnectors.framework.api.ConfigurationProperty

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.