Browse Source

REPORT-130762 feat:JNDI数据连接提供禁用配置

feature/x
Richard.Fang 2 months ago
parent
commit
a4e94ff31b
  1. 5
      designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java

5
designer-base/src/main/java/com/fr/design/data/datapane/preview/PreviewTablePane.java

@ -602,11 +602,12 @@ public class PreviewTablePane extends BasicPane {
/** /**
* 校验下是否为JNDI连接且禁用该功能若是显示禁用信息提示 * 校验下是否为JNDI连接且禁用该功能若是显示禁用信息提示
*
* @param connection * @param connection
*/ */
private void validateJndiDisabled(Connection connection) throws SecurityRestrictionException { private void validateJndiDisabled(Connection connection) throws SecurityRestrictionException {
if(connection instanceof NameDatabaseConnection && ((NameDatabaseConnection) connection).getConnection() instanceof JNDIDatabaseConnection) { if (connection instanceof NameDatabaseConnection && ((NameDatabaseConnection) connection).getConnection() instanceof JNDIDatabaseConnection) {
if(SecurityConfig.getInstance().isDisableJNDI()) { if (SecurityConfig.getInstance().isDisableJNDI()) {
throw new SecurityRestrictionException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_JNDI_Disabled")); throw new SecurityRestrictionException(Toolkit.i18nText("Fine-Design_Basic_Database_Connection_JNDI_Disabled"));
} }
} }

Loading…
Cancel
Save