Search in sources :

Example 6 with IcConfigurationProperty

use of eu.bcvsolutions.idm.ic.api.IcConfigurationProperty in project CzechIdMng by bcvsolutions.

the class ConnIdIcConvertUtil method convertIcConnectorConfiguration.

public static APIConfiguration convertIcConnectorConfiguration(IcConnectorConfiguration icConf, APIConfiguration defaultConnIdConf) {
    if (icConf == null) {
        return null;
    }
    ((APIConfigurationImpl) defaultConnIdConf).setConnectorPoolingSupported(icConf.isConnectorPoolingSupported());
    defaultConnIdConf.setProducerBufferSize(icConf.getProducerBufferSize());
    IcConfigurationProperties properties = icConf.getConfigurationProperties();
    ConfigurationProperties connIdProperties = defaultConnIdConf.getConfigurationProperties();
    if (properties != null && properties.getProperties() != null) {
        for (IcConfigurationProperty icProperty : properties.getProperties()) {
            if (connIdProperties != null) {
                connIdProperties.setPropertyValue(icProperty.getName(), icProperty.getValue());
            }
        }
    }
    ObjectPoolConfiguration connectorPoolConfiguration = convertIcPoolConfiguration(icConf.getConnectorPoolConfiguration());
    ((APIConfigurationImpl) defaultConnIdConf).setConnectorPoolConfiguration(connectorPoolConfiguration);
    // This option must be enabled for pagination purpose
    defaultConnIdConf.getResultsHandlerConfiguration().setFilteredResultsHandlerInValidationMode(true);
    return defaultConnIdConf;
}
Also used : IcObjectPoolConfiguration(eu.bcvsolutions.idm.ic.api.IcObjectPoolConfiguration) ObjectPoolConfiguration(org.identityconnectors.common.pooling.ObjectPoolConfiguration) APIConfigurationImpl(org.identityconnectors.framework.impl.api.APIConfigurationImpl) IcConfigurationProperty(eu.bcvsolutions.idm.ic.api.IcConfigurationProperty) ConfigurationProperties(org.identityconnectors.framework.api.ConfigurationProperties) IcConfigurationProperties(eu.bcvsolutions.idm.ic.api.IcConfigurationProperties) IcConfigurationProperties(eu.bcvsolutions.idm.ic.api.IcConfigurationProperties)

Aggregations

IcConfigurationProperty (eu.bcvsolutions.idm.ic.api.IcConfigurationProperty)6 IcConnectorConfiguration (eu.bcvsolutions.idm.ic.api.IcConnectorConfiguration)3 ArrayList (java.util.ArrayList)3 SysSystem (eu.bcvsolutions.idm.acc.entity.SysSystem)2 ConfigurationClass (eu.bcvsolutions.idm.core.api.domain.ConfigurationClass)2 IdmFormAttributeDto (eu.bcvsolutions.idm.core.eav.api.dto.IdmFormAttributeDto)2 IcConfigurationProperties (eu.bcvsolutions.idm.ic.api.IcConfigurationProperties)2 IcConfigurationPropertiesImpl (eu.bcvsolutions.idm.ic.impl.IcConfigurationPropertiesImpl)2 IcConnectorConfigurationImpl (eu.bcvsolutions.idm.ic.impl.IcConnectorConfigurationImpl)2 IntrospectionException (java.beans.IntrospectionException)2 PropertyDescriptor (java.beans.PropertyDescriptor)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 Method (java.lang.reflect.Method)2 SysSystemDto (eu.bcvsolutions.idm.acc.dto.SysSystemDto)1 ConfigurationClassProperty (eu.bcvsolutions.idm.core.api.domain.ConfigurationClassProperty)1 CoreException (eu.bcvsolutions.idm.core.api.exception.CoreException)1 IdmFormDefinitionDto (eu.bcvsolutions.idm.core.eav.api.dto.IdmFormDefinitionDto)1 IdmFormInstanceDto (eu.bcvsolutions.idm.core.eav.api.dto.IdmFormInstanceDto)1 IdmFormValueDto (eu.bcvsolutions.idm.core.eav.api.dto.IdmFormValueDto)1 GuardedString (eu.bcvsolutions.idm.core.security.api.domain.GuardedString)1