Skip to content
Snippets Groups Projects

Ozg 7144 orgid lower case

Open Tobias Bruns requested to merge OZG-7144_orgid_lower_case into main
2 files
+ 7
11
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -41,8 +41,7 @@ public class IntelliFormRepresentationAdapter {
@@ -41,8 +41,7 @@ public class IntelliFormRepresentationAdapter {
"t:customer",
"t:customer",
"t:customer-id",
"t:customer-id",
"t:client",
"t:client",
"t:client-id"
"t:client-id");
);
public static final List<String> CUSTOM_HEADER_ATTRIBUTE_NAMES = List.of(
public static final List<String> CUSTOM_HEADER_ATTRIBUTE_NAMES = List.of(
"u:saml_legacypostkorbhandle",
"u:saml_legacypostkorbhandle",
"u:saml_givenname",
"u:saml_givenname",
@@ -54,15 +53,13 @@ public class IntelliFormRepresentationAdapter {
@@ -54,15 +53,13 @@ public class IntelliFormRepresentationAdapter {
"u:saml_postaladdress",
"u:saml_postaladdress",
"u:saml_postalcode",
"u:saml_postalcode",
"u:saml_localityname",
"u:saml_localityname",
ServiceKontoFactory.KEY_BAYERN_ID_TRUST_LEVEL
ServiceKontoFactory.KEY_BAYERN_ID_TRUST_LEVEL);
);
private static final Collector<Map.Entry<String, ?>, ?, Map<String, Object>> ORDERED_MAP_ENTRY_COLLECTOR = Collectors.toMap(
private static final Collector<Map.Entry<String, ?>, ?, Map<String, Object>> ORDERED_MAP_ENTRY_COLLECTOR = Collectors.toMap(
Map.Entry::getKey,
Map.Entry::getKey,
Map.Entry::getValue,
Map.Entry::getValue,
(u, v) -> v,
(u, v) -> v,
LinkedHashMap::new
LinkedHashMap::new);
);
private final XmlToJavaMapsMapper xmlToJavaMapsMapper;
private final XmlToJavaMapsMapper xmlToJavaMapsMapper;
@@ -97,15 +94,14 @@ public class IntelliFormRepresentationAdapter {
@@ -97,15 +94,14 @@ public class IntelliFormRepresentationAdapter {
var document = findIntelliFormXMLRepresentation(formData)
var document = findIntelliFormXMLRepresentation(formData)
.orElseThrow(() -> new TechnicalException("Expect to find IntelliForm XML representation!"));
.orElseThrow(() -> new TechnicalException("Expect to find IntelliForm XML representation!"));
return FormData.builder()
return formData.toBuilder()
.representations(formData.getRepresentations())
.representations(formData.getRepresentations())
.attachments(formData.getAttachments())
.attachments(formData.getAttachments())
.formData(Stream.concat(
.formData(Stream.concat(
getFormDataEntriesFromDocument(document, formData.getAttachments()),
getFormDataEntriesFromDocument(document, formData.getAttachments()),
Map.of(
Map.of(
HEADER_FIELD, createHeaderMap(document)
HEADER_FIELD, createHeaderMap(document)).entrySet().stream())
).entrySet().stream()
.collect(ORDERED_MAP_ENTRY_COLLECTOR))
).collect(ORDERED_MAP_ENTRY_COLLECTOR))
.build();
.build();
}
}
Loading