Search in sources :

Example 6 with ConnectorKey

use of org.identityconnectors.framework.api.ConnectorKey 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

ConnectorKey (org.identityconnectors.framework.api.ConnectorKey)6 ConnectorInfo (org.identityconnectors.framework.api.ConnectorInfo)4 IcConnectorInfo (eu.bcvsolutions.idm.ic.api.IcConnectorInfo)3 IcConnectorInfoImpl (eu.bcvsolutions.idm.ic.impl.IcConnectorInfoImpl)2 IcConnectorKeyImpl (eu.bcvsolutions.idm.ic.impl.IcConnectorKeyImpl)2 HashSet (java.util.HashSet)2 ConnectorInfoManager (org.identityconnectors.framework.api.ConnectorInfoManager)2 ObjectNotFoundException (com.evolveum.midpoint.util.exception.ObjectNotFoundException)1 ConnectorHostType (com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorHostType)1 IOException (java.io.IOException)1 URI (java.net.URI)1 CertificateException (java.security.cert.CertificateException)1 ArrayList (java.util.ArrayList)1 Locale (java.util.Locale)1 ConnBundleTO (org.apache.syncope.common.lib.to.ConnBundleTO)1 NotFoundException (org.apache.syncope.core.persistence.api.dao.NotFoundException)1 CurrentLocale (org.identityconnectors.common.l10n.CurrentLocale)1 ConfigurationProperties (org.identityconnectors.framework.api.ConfigurationProperties)1 PreAuthorize (org.springframework.security.access.prepost.PreAuthorize)1 Transactional (org.springframework.transaction.annotation.Transactional)1