Search in sources :

Example 11 with ConnectorInfo

use of org.identityconnectors.framework.api.ConnectorInfo in project CzechIdMng by bcvsolutions.

the class ConnIdIcConfigurationService method getAvailableRemoteConnectors.

@Override
public Set<IcConnectorInfo> getAvailableRemoteConnectors(IcConnectorServer server) {
    Assert.notNull(server);
    // 
    Set<IcConnectorInfo> result = new HashSet<>();
    // 
    List<ConnectorInfo> infos = getAllRemoteConnectors(server);
    for (ConnectorInfo info : infos) {
        ConnectorKey key = info.getConnectorKey();
        if (key == null) {
            continue;
        }
        // transform
        IcConnectorKeyImpl keyDto = new IcConnectorKeyImpl(getFramework(), key.getBundleName(), key.getBundleVersion(), key.getConnectorName());
        IcConnectorInfoImpl infoDto = new IcConnectorInfoImpl(info.getConnectorDisplayName(), info.getConnectorCategory(), keyDto);
        result.add(infoDto);
    }
    return result;
}
Also used : IcConnectorKeyImpl(eu.bcvsolutions.idm.ic.impl.IcConnectorKeyImpl) IcConnectorInfoImpl(eu.bcvsolutions.idm.ic.impl.IcConnectorInfoImpl) ConnectorKey(org.identityconnectors.framework.api.ConnectorKey) IcConnectorInfo(eu.bcvsolutions.idm.ic.api.IcConnectorInfo) ConnectorInfo(org.identityconnectors.framework.api.ConnectorInfo) IcConnectorInfo(eu.bcvsolutions.idm.ic.api.IcConnectorInfo) HashSet(java.util.HashSet)

Aggregations

ConnectorInfo (org.identityconnectors.framework.api.ConnectorInfo)11 IcConnectorInfo (eu.bcvsolutions.idm.ic.api.IcConnectorInfo)6 APIConfiguration (org.identityconnectors.framework.api.APIConfiguration)4 ConnectorInfoManager (org.identityconnectors.framework.api.ConnectorInfoManager)4 ConnectorKey (org.identityconnectors.framework.api.ConnectorKey)4 IcConnectorInfoImpl (eu.bcvsolutions.idm.ic.impl.IcConnectorInfoImpl)2 IcConnectorKeyImpl (eu.bcvsolutions.idm.ic.impl.IcConnectorKeyImpl)2 IOException (java.io.IOException)2 URI (java.net.URI)2 HashSet (java.util.HashSet)2 ConnectorFacade (org.identityconnectors.framework.api.ConnectorFacade)2 EncryptionException (com.evolveum.midpoint.prism.crypto.EncryptionException)1 ConnIdUtil.processIcfException (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnIdUtil.processIcfException)1 CommunicationException (com.evolveum.midpoint.util.exception.CommunicationException)1 ObjectNotFoundException (com.evolveum.midpoint.util.exception.ObjectNotFoundException)1 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)1 SystemException (com.evolveum.midpoint.util.exception.SystemException)1 IcConnectorFacade (eu.bcvsolutions.idm.ic.service.api.IcConnectorFacade)1 MalformedURLException (java.net.MalformedURLException)1 CertificateException (java.security.cert.CertificateException)1