refs #722: externalize backoffice customer configuration
This commit is contained in:
@@ -28,19 +28,25 @@ public class MaskingRuleService {
|
||||
private final ProtectedObjectService protectedObjectService;
|
||||
private final AuditService auditService;
|
||||
private final MaskingPolicySynchronizer maskingPolicySynchronizer;
|
||||
private final DataCatalog dataCatalog;
|
||||
private final MaskingPolicyCatalog maskingPolicyCatalog;
|
||||
|
||||
public MaskingRuleService(
|
||||
MaskingRuleMapper mapper,
|
||||
UserMapper userMapper,
|
||||
ProtectedObjectService protectedObjectService,
|
||||
AuditService auditService,
|
||||
MaskingPolicySynchronizer maskingPolicySynchronizer
|
||||
MaskingPolicySynchronizer maskingPolicySynchronizer,
|
||||
DataCatalog dataCatalog,
|
||||
MaskingPolicyCatalog maskingPolicyCatalog
|
||||
) {
|
||||
this.mapper = mapper;
|
||||
this.userMapper = userMapper;
|
||||
this.protectedObjectService = protectedObjectService;
|
||||
this.auditService = auditService;
|
||||
this.maskingPolicySynchronizer = maskingPolicySynchronizer;
|
||||
this.dataCatalog = dataCatalog;
|
||||
this.maskingPolicyCatalog = maskingPolicyCatalog;
|
||||
}
|
||||
|
||||
public List<MaskingRule> findAllRules() {
|
||||
@@ -55,9 +61,12 @@ public class MaskingRuleService {
|
||||
return mapper.findColumnRules();
|
||||
}
|
||||
|
||||
/** Reads the actual Oracle Data Redaction state for the managed Smilegate game-data objects. */
|
||||
/** Reads the actual Oracle Data Redaction state for configured managed objects. */
|
||||
public List<MaskingPolicyStatus> findPolicyStatuses() {
|
||||
return mapper.findPolicyStatuses();
|
||||
if (maskingPolicyCatalog.targets().isEmpty()) {
|
||||
return List.of();
|
||||
}
|
||||
return mapper.findPolicyStatuses(dataCatalog.owner(), maskingPolicyCatalog.targets());
|
||||
}
|
||||
|
||||
public Set<String> managedObjectNames() {
|
||||
|
||||
Reference in New Issue
Block a user