Browse Source

REPORT-75091 - 数据脱敏(报表)

代码质量相关
feature/x
Yvan-欧阳帆 2 years ago
parent
commit
10bcd9acde
  1. 4
      designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/TableDataPreviewDesensitizeManager.java
  2. 4
      designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/view/rule/DesensitizationRuleChoosePane.java

4
designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/TableDataPreviewDesensitizeManager.java

@ -45,6 +45,10 @@ public class TableDataPreviewDesensitizeManager implements DesensitizationManage
private static final TableDataPreviewDesensitizeManager INSTANCE = new TableDataPreviewDesensitizeManager();
}
/**
* 获取TableDataPreviewDesensitizeManager单例
* @return
*/
public static TableDataPreviewDesensitizeManager getInstance() {
return TableDataPreviewDesensitizeManager.Holder.INSTANCE;
}

4
designer-base/src/main/java/com/fr/design/data/datapane/preview/desensitization/view/rule/DesensitizationRuleChoosePane.java

@ -60,6 +60,10 @@ public class DesensitizationRuleChoosePane extends JPanel {
switchPaneByRuleSource(DesensitizationRuleSource.SERVER);
}
/**
* 通过脱敏规则来源切换显示不同的脱敏规则Table面板
* @param ruleSource
*/
public void switchPaneByRuleSource(DesensitizationRuleSource ruleSource) {
this.currentRuleSource = ruleSource;
this.cardLayout.show(this, ruleSource.name());

Loading…
Cancel
Save