diff --git a/redaction-service-v1/document/src/main/java/com/iqser/red/service/redaction/v1/server/model/document/entity/MatchedRule.java b/redaction-service-v1/document/src/main/java/com/iqser/red/service/redaction/v1/server/model/document/entity/MatchedRule.java index 5265bf94..10bb441d 100644 --- a/redaction-service-v1/document/src/main/java/com/iqser/red/service/redaction/v1/server/model/document/entity/MatchedRule.java +++ b/redaction-service-v1/document/src/main/java/com/iqser/red/service/redaction/v1/server/model/document/entity/MatchedRule.java @@ -27,7 +27,7 @@ public final class MatchedRule implements Comparable { public static final RuleType IMPORTED_TYPE = RuleType.fromString("IMP"); public static final RuleType MANUAL_TYPE = RuleType.fromString("MAN"); public static final RuleType DICTIONARY_TYPE = RuleType.fromString("DICT"); - private static final List RULE_TYPE_PRIORITIES = List.of(FINAL_TYPE, ELIMINATION_RULE_TYPE, IMPORTED_TYPE, MANUAL_TYPE, DICTIONARY_TYPE); + private static final List RULE_TYPE_PRIORITIES = List.of(FINAL_TYPE, ELIMINATION_RULE_TYPE, MANUAL_TYPE, IMPORTED_TYPE, DICTIONARY_TYPE); RuleIdentifier ruleIdentifier; @Builder.Default diff --git a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/model/PrecursorEntity.java b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/model/PrecursorEntity.java index 3157a7ee..7c0e90d0 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/model/PrecursorEntity.java +++ b/redaction-service-v1/redaction-service-server-v1/src/main/java/com/iqser/red/service/redaction/v1/server/model/PrecursorEntity.java @@ -126,6 +126,7 @@ public class PrecursorEntity implements IEntity { .id(importedRedaction.getId()) .value(value) .entityPosition(rectangleWithPages) + .ruleIdentifier("IMP.0.0") .reason(Optional.ofNullable(importedRedaction.getReason()) .orElse("")) .legalBasis(Optional.ofNullable(importedRedaction.getLegalBasis())