RED-5473: try to get redaction value

This commit is contained in:
Ali Oezyetimoglu 2022-11-30 17:45:46 +01:00
parent d345ba1fae
commit c5a092990d

View File

@ -383,9 +383,10 @@ public class ExcelReportGenerationService {
return input -> input.getEntry().getExcerpt();
}
if (placeholder.equals(REDACTION_VALUE_PLACEHOLDER)) {
// return input -> input.getEntry().getValue() != null ? input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ") : "";
//TODO: comment in above and delete down
return input -> input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ");
// TODO: remove 2 lines
Function<PlaceholderInput, String> aa = input -> input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ");
log.info("REDACTION_VALUE: {}", aa);
return input -> input.getEntry().getValue() != null ? input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ") : "";
}
if (placeholder.equals(REDACTION_ENTITY_DISPLAY_NAME_PLACEHOLDER)) {
return input -> input.getEntry().getEntityDisplayName();