RED-5473: fixed output of value placeholder for empty values by adding type of entry
This commit is contained in:
parent
318882d8c3
commit
e7a05a670e
@ -384,19 +384,8 @@ public class ExcelReportGenerationService {
|
|||||||
}
|
}
|
||||||
if (placeholder.equals(REDACTION_VALUE_PLACEHOLDER)) {
|
if (placeholder.equals(REDACTION_VALUE_PLACEHOLDER)) {
|
||||||
|
|
||||||
// return input -> input.getEntry().getValue() != null ? input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ") : "";
|
|
||||||
// return input -> input.getEntry().getValue() != null ? input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ") : computeValueForSignatureRedactions(input);
|
|
||||||
return input -> input.getEntry().getValue() != null ? input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ") : input.getEntry().getEntityDisplayName();
|
return input -> input.getEntry().getValue() != null ? input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ") : input.getEntry().getEntityDisplayName();
|
||||||
|
|
||||||
// return input -> {
|
|
||||||
// String value = "";
|
|
||||||
// if (input.getEntry().getValue() != null) {
|
|
||||||
// value = input.getEntry().getValue().replaceAll("\n", " ").replaceAll(" ", " ");
|
|
||||||
// } else {
|
|
||||||
// value = computeValueForSignatureRedactions(input);
|
|
||||||
// }
|
|
||||||
// return value;
|
|
||||||
// };
|
|
||||||
}
|
}
|
||||||
if (placeholder.equals(REDACTION_ENTITY_DISPLAY_NAME_PLACEHOLDER)) {
|
if (placeholder.equals(REDACTION_ENTITY_DISPLAY_NAME_PLACEHOLDER)) {
|
||||||
return input -> input.getEntry().getEntityDisplayName();
|
return input -> input.getEntry().getEntityDisplayName();
|
||||||
@ -404,12 +393,6 @@ public class ExcelReportGenerationService {
|
|||||||
return input -> "";
|
return input -> "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// private String computeValueForSignatureRedactions(PlaceholderInput input) {
|
|
||||||
//
|
|
||||||
// System.out.println(input.getEntry().getEntityDisplayName());
|
|
||||||
// return input.getEntry().getEntityDisplayName();
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
private void replacePlaceholdersForCell(Cell cell, String search, String replace) {
|
private void replacePlaceholdersForCell(Cell cell, String search, String replace) {
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ public class IuclidFunctionService {
|
|||||||
ReportRedactionEntry entry = iterator.next();
|
ReportRedactionEntry entry = iterator.next();
|
||||||
s.append("P").append(entry.getPage()).append(" ");
|
s.append("P").append(entry.getPage()).append(" ");
|
||||||
if (StringUtils.isBlank(entry.getValue()) || entry.getValue().equalsIgnoreCase("Rectangle")) {
|
if (StringUtils.isBlank(entry.getValue()) || entry.getValue().equalsIgnoreCase("Rectangle")) {
|
||||||
s.append("non-readable content");
|
s.append(entry.getEntityDisplayName()).append(" - non-readable content");
|
||||||
} else {
|
} else {
|
||||||
s.append(entry.getValue().replaceAll("\n", " ").replaceAll(" ", " "));
|
s.append(entry.getValue().replaceAll("\n", " ").replaceAll(" ", " "));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user