use of org.dashbuilder.dataset.def.SQLDataSourceDef in project kie-wb-common by kiegroup.
the class KieSQLDataSourceLocator method list.
@Override
public List<SQLDataSourceDef> list() {
Collection<DataSourceDefInfo> dataSourceDefInfos = queryService.findGlobalDataSources(true);
List<SQLDataSourceDef> result = new ArrayList<>();
for (DataSourceDefInfo dataSourceDefInfo : dataSourceDefInfos) {
result.add(new SQLDataSourceDef(dataSourceDefInfo.getUuid(), dataSourceDefInfo.getName()));
}
return result;
}
Aggregations