@ -25,6 +25,7 @@ import com.fr.esd.event.DSMapping;
import com.fr.esd.event.DsNameTarget ;
import com.fr.esd.event.DsNameTarget ;
import com.fr.esd.event.StrategyEventsNotifier ;
import com.fr.esd.event.StrategyEventsNotifier ;
import com.fr.log.FineLoggerFactory ;
import com.fr.report.LockItem ;
import com.fr.report.LockItem ;
import com.fr.security.encryption.transmission.TransmissionEncryptionManager ;
import com.fr.security.encryption.transmission.TransmissionEncryptionManager ;
import com.fr.workspace.server.repository.connection.ConnectionRepository ;
import com.fr.workspace.server.repository.connection.ConnectionRepository ;
@ -86,14 +87,13 @@ public class GlobalTableDataAction extends UpdateAction implements ResponseDataS
final List < ServerDataSetBean > beans = TableDataRepository . getInstance ( ) . getAllTableData ( ) ;
final List < ServerDataSetBean > beans = TableDataRepository . getInstance ( ) . getAllTableData ( ) ;
final Map < String , Connection > connectionMap = ConnectionInfoBeanHelper . createConnectionMap ( ConnectionRepository . getInstance ( ) . getAll ( ) ) ;
final Map < String , Connection > connectionMap = ConnectionInfoBeanHelper . createConnectionMap ( ConnectionRepository . getInstance ( ) . getAll ( ) ) ;
final Map < String , TableData > tableDataMap = new HashMap < > ( ) ;
final Map < String , TableData > tableDataMap = new HashMap < > ( ) ;
try {
for ( ServerDataSetBean bean : beans ) {
for ( ServerDataSetBean bean : beans ) {
try {
tableDataMap . put ( bean . getDatasetName ( ) , TableDataBeanHelper . getTableDataSet ( connectionMap , bean . getDatasetType ( ) , bean . getDatasetData ( ) ) ) ;
tableDataMap . put ( bean . getDatasetName ( ) , TableDataBeanHelper . getTableDataSet ( connectionMap , bean . getDatasetType ( ) , bean . getDatasetData ( ) ) ) ;
} catch ( Exception e ) {
FineLoggerFactory . getLogger ( ) . error ( "[TableData] getTableData :{} failed!" , bean . getDatasetName ( ) , e ) ;
}
}
} catch ( Exception e ) {
throw new RuntimeException ( e ) ;
}
}
final TableDataManagerPane globalTableDataPane = new TableDataManagerPane ( ) {
final TableDataManagerPane globalTableDataPane = new TableDataManagerPane ( ) {
public void complete ( ) {
public void complete ( ) {
populate ( tableDataMap ) ;
populate ( tableDataMap ) ;