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;
}
Aggregations