@ -13,7 +13,6 @@ import com.fr.design.data.tabledata.wrapper.TableDataWrapper;
import com.fr.design.data.tabledata.wrapper.TemplateTableDataWrapper ;
import com.fr.design.data.tabledata.wrapper.TemplateTableDataWrapper ;
import com.fr.design.gui.icombobox.UIComboBox ;
import com.fr.design.gui.icombobox.UIComboBox ;
import com.fr.design.gui.icombobox.UIComboBoxRenderer ;
import com.fr.design.gui.icombobox.UIComboBoxRenderer ;
import com.fr.security.encryption.transmission.TransmissionEncryptionManager ;
import com.fr.stable.StringUtils ;
import com.fr.stable.StringUtils ;
import com.fr.workspace.server.repository.connection.ConnectionRepository ;
import com.fr.workspace.server.repository.connection.ConnectionRepository ;
import com.fr.workspace.server.repository.tabledata.TableDataRepository ;
import com.fr.workspace.server.repository.tabledata.TableDataRepository ;
@ -73,14 +72,11 @@ public class TreeTableDataComboBox extends UIComboBox {
Map < String , TableData > map = new HashMap < > ( ) ;
Map < String , TableData > map = new HashMap < > ( ) ;
final Map < String , Connection > connectionMap = ConnectionInfoBeanHelper . createConnectionMap ( ConnectionRepository . getInstance ( ) . getAll ( ) ) ;
final Map < String , Connection > connectionMap = ConnectionInfoBeanHelper . createConnectionMap ( ConnectionRepository . getInstance ( ) . getAll ( ) ) ;
try {
try {
TransmissionEncryptionManager . setTransEncryptionLevel ( 1 ) ;
for ( ServerDataSetBean bean : beans ) {
for ( ServerDataSetBean bean : beans ) {
map . put ( bean . getDatasetName ( ) , TableDataBeanHelper . getTableDataSet ( connectionMap , bean . getDatasetType ( ) , bean . getDatasetData ( ) ) ) ;
map . put ( bean . getDatasetName ( ) , TableDataBeanHelper . getTableDataSet ( connectionMap , bean . getDatasetType ( ) , bean . getDatasetData ( ) ) ) ;
}
}
} catch ( Exception e ) {
} catch ( Exception e ) {
throw new RuntimeException ( e ) ;
throw new RuntimeException ( e ) ;
} finally {
TransmissionEncryptionManager . removeTransEncryptionLevel ( ) ;
}
}
for ( Map . Entry < String , TableData > entry : map . entrySet ( ) ) {
for ( Map . Entry < String , TableData > entry : map . entrySet ( ) ) {
TableData tableData = entry . getValue ( ) ;
TableData tableData = entry . getValue ( ) ;