Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 21 additions & 9 deletions core/src/main/java/org/phoenixctms/ctsms/util/OmittedFields.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ public final class OmittedFields {
addProtectedField(protectedOutVOFieldMap, JournalEntryOutVO.class, "title");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "careOf");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "cityName");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "civicName");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "countryName");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "doorNumber");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "entrance");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "houseNumber");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "name");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "province");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "streetName");
addProtectedField(protectedOutVOFieldMap, ProbandAddressOutVO.class, "zipCode");
addProtectedField(protectedOutVOFieldMap, ProbandContactDetailValueOutVO.class, "value");
Expand Down Expand Up @@ -126,6 +128,7 @@ public final class OmittedFields {
addProtectedField(protectedInVOFieldMap, ProbandAddressInVO.class, "doorNumber");
addProtectedField(protectedInVOFieldMap, ProbandAddressInVO.class, "entrance");
addProtectedField(protectedInVOFieldMap, ProbandAddressInVO.class, "houseNumber");
addProtectedField(protectedInVOFieldMap, ProbandAddressInVO.class, "province");
addProtectedField(protectedInVOFieldMap, ProbandAddressInVO.class, "streetName");
addProtectedField(protectedInVOFieldMap, ProbandAddressInVO.class, "zipCode");
addProtectedField(protectedInVOFieldMap, ProbandContactDetailValueInVO.class, "value");
Expand Down Expand Up @@ -173,16 +176,25 @@ public final class OmittedFields {
protectedCriterionProperties.add("proband.personParticulars.dateOfBirthHash");
protectedCriterionProperties.add("proband.tagValues.valueHash");
protectedCriterionProperties.add("proband.contactDetailValues.valueHash");
protectedCriterionProperties.add("proband.addresses.houseNumberHash");
protectedCriterionProperties.add("proband.addresses.entranceHash");
// all hashes of encrypted proband address, bank account and file fields (the criterion properties are named after the hash fields)
protectedCriterionProperties.add("proband.addresses.careOfHash");
protectedCriterionProperties.add("proband.addresses.cityNameHash");
protectedCriterionProperties.add("proband.addresses.countryNameHash");
protectedCriterionProperties.add("proband.addresses.doorNumberHash");
protectedCriterionProperties.add("proband.bankAccounts.accountHolderName");
protectedCriterionProperties.add("proband.bankAccounts.accountNumber");
protectedCriterionProperties.add("proband.bankAccounts.bic");
protectedCriterionProperties.add("proband.bankAccounts.iban");
protectedCriterionProperties.add("proband.files.fileName");
protectedCriterionProperties.add("proband.files.title");
protectedCriterionProperties.add("proband.files.comment");
protectedCriterionProperties.add("proband.addresses.entranceHash");
protectedCriterionProperties.add("proband.addresses.houseNumberHash");
protectedCriterionProperties.add("proband.addresses.provinceHash");
protectedCriterionProperties.add("proband.addresses.streetNameHash");
protectedCriterionProperties.add("proband.addresses.zipCodeHash");
protectedCriterionProperties.add("proband.bankAccounts.accountHolderNameHash");
protectedCriterionProperties.add("proband.bankAccounts.accountNumberHash");
protectedCriterionProperties.add("proband.bankAccounts.bankCodeNumberHash");
protectedCriterionProperties.add("proband.bankAccounts.bankNameHash");
protectedCriterionProperties.add("proband.bankAccounts.bicHash");
protectedCriterionProperties.add("proband.bankAccounts.ibanHash");
protectedCriterionProperties.add("proband.files.commentHash");
protectedCriterionProperties.add("proband.files.fileNameHash");
protectedCriterionProperties.add("proband.files.titleHash");
}

private static void addProtectedField(HashMap<Class, HashSet<String>> fieldMap, Class vo, String fieldName) {
Expand Down