Search in sources :

Example 6 with APIConfiguration

use of org.identityconnectors.framework.api.APIConfiguration in project syncope by apache.

the class ConnIdBundleManagerImpl method getConfigurationProperties.

@Override
public ConfigurationProperties getConfigurationProperties(final ConnectorInfo info) {
    if (info == null) {
        throw new NotFoundException("Invalid: connector info is null");
    }
    // create default configuration
    APIConfiguration apiConfig = info.createDefaultAPIConfiguration();
    // retrieve the ConfigurationProperties.
    ConfigurationProperties properties = apiConfig.getConfigurationProperties();
    if (properties == null) {
        throw new NotFoundException("Configuration properties");
    }
    if (LOG.isDebugEnabled()) {
        properties.getPropertyNames().forEach(propName -> {
            LOG.debug("Property Name: {}" + "\nProperty Type: {}", properties.getProperty(propName).getName(), properties.getProperty(propName).getType());
        });
    }
    return properties;
}
Also used : APIConfiguration(org.identityconnectors.framework.api.APIConfiguration) NotFoundException(org.apache.syncope.core.persistence.api.dao.NotFoundException) ConfigurationProperties(org.identityconnectors.framework.api.ConfigurationProperties)

Aggregations

APIConfiguration (org.identityconnectors.framework.api.APIConfiguration)6 ConnectorInfo (org.identityconnectors.framework.api.ConnectorInfo)4 IcConnectorInfo (eu.bcvsolutions.idm.ic.api.IcConnectorInfo)3 ConfigurationProperties (org.identityconnectors.framework.api.ConfigurationProperties)2 ConnectorFacade (org.identityconnectors.framework.api.ConnectorFacade)2 PrismContainer (com.evolveum.midpoint.prism.PrismContainer)1 PrismProperty (com.evolveum.midpoint.prism.PrismProperty)1 ItemName (com.evolveum.midpoint.prism.path.ItemName)1 PolyString (com.evolveum.midpoint.prism.polystring.PolyString)1 IcConnectorFacade (eu.bcvsolutions.idm.ic.service.api.IcConnectorFacade)1 QName (javax.xml.namespace.QName)1 NotFoundException (org.apache.syncope.core.persistence.api.dao.NotFoundException)1 ObjectPoolConfiguration (org.identityconnectors.common.pooling.ObjectPoolConfiguration)1 GuardedString (org.identityconnectors.common.security.GuardedString)1 ResultsHandlerConfiguration (org.identityconnectors.framework.api.ResultsHandlerConfiguration)1