RED-5624: Refactoring of justifications

added technicalname instead of reason to reports
This commit is contained in:
yhampe 2024-08-09 10:13:43 +02:00
parent 307e51b97b
commit 6b2118e803
2 changed files with 4 additions and 3 deletions

View File

@ -17,7 +17,7 @@ val storageCommonsVersion = "2.45.0"
val lifecycleCommonsVersion = "0.4.0"
val poiVersion = "5.2.3"
val metricCommonsVersion = "2.1.0"
val persistenceServiceVersion = "2.467.0"
val persistenceServiceVersion = "2.509.0"
val springBootStarterVersion = "3.2.3"
configurations {

View File

@ -162,7 +162,8 @@ public class EntityLogConverterService {
getSection(entry, position),
checkTextForNull(entry.getLegalBasis()) + " " + getJustificationReason(legalBasisMappings, entry),
entry.getLegalBasis(),
entry.getParagraphPageIdx(), getJustificationReason(legalBasisMappings, entry),
entry.getParagraphPageIdx(),
getJustificationReason(legalBasisMappings, entry),
checkTextForNull(entry.getTextBefore()) + entry.getValue() + checkTextForNull(entry.getTextAfter()),
entry.getValue(),
mapOfEntityDisplayName.get(entry.getType()),
@ -191,7 +192,7 @@ public class EntityLogConverterService {
return legalBasisMappings.stream()
.filter((EntityLogLegalBasis lbm) -> lbm.getTechnicalName().equalsIgnoreCase(entry.getLegalBasis()))
.findAny()
.map(EntityLogLegalBasis::getDescription)
.map(EntityLogLegalBasis::getTechnicalName)
.orElse("");
}