|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
package com.fr.design.data.datapane.preview.desensitization.view.setting; |
|
|
|
|
|
|
|
|
|
import com.fr.data.desensitize.base.AbstractDesensitizationTableData; |
|
|
|
|
import com.fr.data.desensitize.base.DesensitizationTableData; |
|
|
|
|
import com.fr.data.desensitize.base.TableDataDesensitizationBean; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.data.datapane.preview.desensitization.view.common.DesensitizationOpenPane; |
|
|
|
@ -18,19 +18,19 @@ import java.util.List;
|
|
|
|
|
* @version 11.0 |
|
|
|
|
* Created by Yvan on 2022/9/8 |
|
|
|
|
*/ |
|
|
|
|
public class TableDataDesensitizationSettingPane extends BasicBeanPane<AbstractDesensitizationTableData> { |
|
|
|
|
public class TableDataDesensitizationSettingPane extends BasicBeanPane<DesensitizationTableData> { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置针对的数据集 |
|
|
|
|
*/ |
|
|
|
|
private AbstractDesensitizationTableData tableData; |
|
|
|
|
private DesensitizationTableData tableData; |
|
|
|
|
|
|
|
|
|
private DesensitizationOpenPane desensitizationOpenPane; |
|
|
|
|
|
|
|
|
|
private TableDataDesensitizationTablePane tableDataDesensitizationTablePane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public TableDataDesensitizationSettingPane(AbstractDesensitizationTableData tableData) { |
|
|
|
|
public TableDataDesensitizationSettingPane(DesensitizationTableData tableData) { |
|
|
|
|
this.tableData = tableData; |
|
|
|
|
initComponents(); |
|
|
|
|
} |
|
|
|
@ -67,14 +67,14 @@ public class TableDataDesensitizationSettingPane extends BasicBeanPane<AbstractD
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void populateBean(AbstractDesensitizationTableData tableData) { |
|
|
|
|
public void populateBean(DesensitizationTableData tableData) { |
|
|
|
|
this.tableData = tableData; |
|
|
|
|
this.desensitizationOpenPane.setDesensitizationOpened(tableData.getDesensitizeOpen()); |
|
|
|
|
this.desensitizationOpenPane.setDesensitizationOpened(tableData.isDesensitizeOpen()); |
|
|
|
|
tableDataDesensitizationTablePane.populateDesensitizationSetting(tableData); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public AbstractDesensitizationTableData updateBean() { |
|
|
|
|
public DesensitizationTableData updateBean() { |
|
|
|
|
saveDesensitizeOpened(); |
|
|
|
|
saveDesensitizationBeans(tableDataDesensitizationTablePane.updateDesensitizationSetting()); |
|
|
|
|
return tableData; |
|
|
|
|