Browse Source

REPORT-88826 设计器新增不支持的数据库类型未受到限制

【问题原因】未考虑远程设计下,获取服务器的lic信息
【改动思路】增加rpc接口,获取服务器lic是否限制数据库类型
newui
Leo.Qin 2 years ago
parent
commit
d03ba95f17
  1. 5
      designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionListPane.java

5
designer-base/src/main/java/com/fr/design/data/datapane/connect/ConnectionListPane.java

@ -30,6 +30,7 @@ import com.fr.stable.core.PropertyChangeAdapter;
import com.fr.transaction.Configurations; import com.fr.transaction.Configurations;
import com.fr.transaction.WorkerFacade; import com.fr.transaction.WorkerFacade;
import com.fr.workspace.WorkContext; import com.fr.workspace.WorkContext;
import com.fr.workspace.server.database.DataBaseTypeOperator;
import java.awt.Window; import java.awt.Window;
import java.sql.SQLException; import java.sql.SQLException;
@ -132,8 +133,8 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh
DatabaseConnectionPane.JNDI.class DatabaseConnectionPane.JNDI.class
); );
NameableCreator[] creators; NameableCreator[] creators;
if (FRCoreContext.getLicense().limitDatabaseType()) { if (WorkContext.getCurrent().get(DataBaseTypeOperator.class).limitDatabaseType()) {
// 不支持JDNI,屏蔽接口 // 不支持JNDI,屏蔽接口
creators = new NameableCreator[]{jdbc}; creators = new NameableCreator[]{jdbc};
} else { } else {
creators = new NameableCreator[]{jdbc, jndi}; creators = new NameableCreator[]{jdbc, jndi};

Loading…
Cancel
Save