Package org.apache.syncope.client.to

Examples of org.apache.syncope.client.to.ConnBundleTO


        }

        List<ConnBundleTO> connectorBundleTOs = new ArrayList<ConnBundleTO>();
        if (bundles != null) {
            for (ConnectorInfo bundle : bundles) {
                ConnBundleTO connectorBundleTO = new ConnBundleTO();
                connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());

                ConnectorKey key = bundle.getConnectorKey();

                LOG.debug("\nBundle name: {}" + "\nBundle version: {}" + "\nBundle class: {}", new Object[]{
                            key.getBundleName(), key.getBundleVersion(), key.getConnectorName()});

                connectorBundleTO.setBundleName(key.getBundleName());
                connectorBundleTO.setConnectorName(key.getConnectorName());
                connectorBundleTO.setVersion(key.getBundleVersion());

                ConfigurationProperties properties = bundleManager.getConfigurationProperties(bundle);

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

                    ConfigurationPropertyImpl configurationProperty =
                            (ConfigurationPropertyImpl) 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());

                    // set order
                    connConfPropSchema.setOrder(configurationProperty.getOrder());

                    // set confidential
                    connConfPropSchema.setConfidential(configurationProperty.isConfidential());

                    connectorBundleTO.addProperty(connConfPropSchema);
                }

                LOG.debug("Bundle properties: {}", connectorBundleTO.getProperties());

                connectorBundleTOs.add(connectorBundleTO);
            }
        }
View Full Code Here


        }

        List<ConnBundleTO> connectorBundleTOs = new ArrayList<ConnBundleTO>();
        if (bundles != null) {
            for (ConnectorInfo bundle : bundles) {
                ConnBundleTO connectorBundleTO = new ConnBundleTO();
                connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());

                ConnectorKey key = bundle.getConnectorKey();

                LOG.debug("\nBundle name: {}" + "\nBundle version: {}" + "\nBundle class: {}", new Object[]{
                            key.getBundleName(), key.getBundleVersion(), key.getConnectorName()});

                connectorBundleTO.setBundleName(key.getBundleName());
                connectorBundleTO.setConnectorName(key.getConnectorName());
                connectorBundleTO.setVersion(key.getBundleVersion());

                ConfigurationProperties properties = bundleManager.getConfigurationProperties(bundle);

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

                    ConfigurationPropertyImpl configurationProperty =
                            (ConfigurationPropertyImpl) 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());

                    // set order
                    connConfPropSchema.setOrder(configurationProperty.getOrder());

                    // set confidential
                    connConfPropSchema.setConfidential(configurationProperty.isConfidential());

                    connectorBundleTO.addProperty(connConfPropSchema);
                }

                LOG.debug("Bundle properties: {}", connectorBundleTO.getProperties());

                connectorBundleTOs.add(connectorBundleTO);
            }
        }
View Full Code Here

        }

        List<ConnBundleTO> connectorBundleTOs = new ArrayList<ConnBundleTO>();
        if (bundles != null) {
            for (ConnectorInfo bundle : bundles) {
                ConnBundleTO connectorBundleTO = new ConnBundleTO();
                connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());

                ConnectorKey key = bundle.getConnectorKey();

                LOG.debug("\nBundle name: {}" + "\nBundle version: {}" + "\nBundle class: {}", new Object[]{
                            key.getBundleName(), key.getBundleVersion(), key.getConnectorName()});

                connectorBundleTO.setBundleName(key.getBundleName());
                connectorBundleTO.setConnectorName(key.getConnectorName());
                connectorBundleTO.setVersion(key.getBundleVersion());

                ConfigurationProperties properties = bundleManager.getConfigurationProperties(bundle);

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

                    ConfigurationPropertyImpl configurationProperty =
                            (ConfigurationPropertyImpl) 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());

                    // set order
                    connConfPropSchema.setOrder(configurationProperty.getOrder());

                    // set confidential
                    connConfPropSchema.setConfidential(configurationProperty.isConfidential());

                    connectorBundleTO.addProperty(connConfPropSchema);
                }

                LOG.debug("Bundle properties: {}", connectorBundleTO.getProperties());

                connectorBundleTOs.add(connectorBundleTO);
            }
        }
View Full Code Here

        }

        List<ConnBundleTO> connectorBundleTOs = new ArrayList<ConnBundleTO>();
        if (bundles != null) {
            for (ConnectorInfo bundle : bundles) {
                ConnBundleTO connectorBundleTO = new ConnBundleTO();
                connectorBundleTO.setDisplayName(bundle.getConnectorDisplayName());

                ConnectorKey key = bundle.getConnectorKey();

                LOG.debug("\nBundle name: {}" + "\nBundle version: {}" + "\nBundle class: {}", new Object[] {
                        key.getBundleName(), key.getBundleVersion(), key.getConnectorName() });

                connectorBundleTO.setBundleName(key.getBundleName());
                connectorBundleTO.setConnectorName(key.getConnectorName());
                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());

                connectorBundleTOs.add(connectorBundleTO);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.syncope.client.to.ConnBundleTO

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.