Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit d039d4b

Browse files
authored
Evol2550rgpd (SORMAS-Foundation#3063)
* add gdpr window after loggin * add reminder gdpr on fields * add import facadeprovider * SORMAS-Foundation#2550 review merge * SORMAS-Foundation#2545 review merge2 * SORMAS-Foundation#2545 review merge3
1 parent 597b1e8 commit d039d4b

23 files changed

Lines changed: 151 additions & 19 deletions

File tree

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Captions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,7 @@ public interface Captions {
16071607
String User_active = "User.active";
16081608
String User_address = "User.address";
16091609
String User_associatedOfficer = "User.associatedOfficer";
1610+
String User_hasConsentedToGdpr = "User.hasConsentedToGdpr";
16101611
String User_healthFacility = "User.healthFacility";
16111612
String User_laboratory = "User.laboratory";
16121613
String User_limitedDisease = "User.limitedDisease";

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Descriptions.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ public interface Descriptions {
2828
String descCaseFilterRelatedToEvent = "descCaseFilterRelatedToEvent";
2929
String descContactOnlyWithExtendedQuarantine = "descContactOnlyWithExtendedQuarantine";
3030
String descContactOnlyWithReducedQuarantine = "descContactOnlyWithReducedQuarantine";
31+
String descGdpr = "descGdpr";
3132
}

sormas-api/src/main/java/de/symeda/sormas/api/i18n/Strings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ public interface Strings {
594594
String messageFollowUpCanceled = "messageFollowUpCanceled";
595595
String messageFollowUpStatusChanged = "messageFollowUpStatusChanged";
596596
String messageFormHasErrorsPathogenTest = "messageFormHasErrorsPathogenTest";
597+
String messageGdpr = "messageGdpr";
598+
String messageGdprCheck = "messageGdprCheck";
597599
String messageImportCanceled = "messageImportCanceled";
598600
String messageImportCanceledErrors = "messageImportCanceledErrors";
599601
String messageImportError = "messageImportError";

sormas-api/src/main/java/de/symeda/sormas/api/user/UserDto.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*******************************************************************************/
1818
package de.symeda.sormas.api.user;
1919

20-
import java.awt.geom.Area;
2120
import java.util.Set;
2221

2322
import de.symeda.sormas.api.Disease;
@@ -59,6 +58,7 @@ public class UserDto extends EntityDto {
5958
public static final String POINT_OF_ENTRY = "pointOfEntry";
6059
public static final String LIMITED_DISEASE = "limitedDisease";
6160
public static final String LANGUAGE = "language";
61+
public static final String HAS_CONSENTED_TO_GDPR = "hasConsentedToGdpr";
6262

6363
private boolean active = true;
6464

@@ -90,6 +90,8 @@ public class UserDto extends EntityDto {
9090

9191
private Language language;
9292

93+
private boolean hasConsentedToGdpr;
94+
9395
public static UserDto build() {
9496
UserDto user = new UserDto();
9597
user.setUuid(DataHelper.createUuid());
@@ -253,4 +255,12 @@ public Language getLanguage() {
253255
public void setLanguage(Language language) {
254256
this.language = language;
255257
}
258+
259+
public boolean isHasConsentedToGdpr() {
260+
return hasConsentedToGdpr;
261+
}
262+
263+
public void setHasConsentedToGdpr(boolean hasConsentedToGdpr) {
264+
this.hasConsentedToGdpr = hasConsentedToGdpr;
265+
}
256266
}

sormas-api/src/main/resources/captions.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,7 @@ userUpdatePasswordConfirmation=Really update password?
17381738
User=User
17391739
User.active=Active?
17401740
User.associatedOfficer=Associated officer
1741+
User.hasConsentedToGdpr=GDPR
17411742
User.healthFacility=Facility
17421743
User.laboratory=Laboratory
17431744
User.limitedDisease=Limited disease

sormas-api/src/main/resources/captions_fr-FR.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,6 +1737,7 @@ userUpdatePasswordConfirmation=Voulez-vous vraiment mettre à jour le mot de pas
17371737
User=Utilisateur
17381738
User.active=Actif ?
17391739
User.associatedOfficer=Agent associé
1740+
User.hasConsentedToGdpr=RGPD
17401741
User.healthFacility=Établissement
17411742
User.laboratory=Laboratoire
17421743
User.limitedDisease=Maladie limitée

sormas-api/src/main/resources/descriptions.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ descContactOnlyWithExtendedQuarantine = Only list contacts whose quarantine peri
6666
descCaseFilterWithReducedQuarantine = Only list cases whose quarantine period has been reduced
6767
descCaseFilterRelatedToEvent = Only list cases related to events
6868
descContactOnlyWithReducedQuarantine = Only list contacts whose quarantine period has been reduced
69+
descGdpr = Reminder: All comments entered must comply with GDPR rules as described during connection.
6970

7071
# EpiData
7172
EpiData.bats = Did you have contact with live or dead bats or their excreta during the incubation period?
@@ -195,4 +196,4 @@ User.limitedDisease = Select a disease here if the user should be restricted to
195196
# Visit
196197
Visit.visitDateTime = Enter the date of the follow-up visit (dd/mm/yyyy)
197198
Visit.visitRemarks = Type your remarks of the visit
198-
Visit.visitStatus = Select the visit status
199+
Visit.visitStatus = Select the visit status

sormas-api/src/main/resources/descriptions_fr-FR.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ descContactOnlyWithExtendedQuarantine = Only list contacts whose quarantine peri
6666
descCaseFilterWithReducedQuarantine = Only list cases whose quarantine period has been reduced
6767
descCaseFilterRelatedToEvent = Only list cases related to events
6868
descContactOnlyWithReducedQuarantine = Only list contacts whose quarantine period has been reduced
69+
descGdpr = Rappel : Tous les commentaires saisis doivent être conformes aux règles RGPD telles que décrites lors de la connexion.
6970

7071
# EpiData
7172
EpiData.bats = Avez-vous été en contact avec des chauves-souris vivantes ou mortes ou leurs excréments pendant la période d'incubation?
@@ -195,4 +196,4 @@ User.limitedDisease = Sélectionnez une maladie ici si l'utilisateur doit être
195196
# Visit
196197
Visit.visitDateTime = Entrez la date de la visite de suivi (dd/mm/yyy)
197198
Visit.visitRemarks = Tapez vos remarques sur la visite
198-
Visit.visitStatus = Sélectionnez le statut de la visite
199+
Visit.visitStatus = Sélectionnez le statut de la visite

sormas-api/src/main/resources/strings.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ messageFollowUpCanceled = Follow-up of all selected contacts has been canceled
602602
messageFollowUpStatusChanged = Follow-up of all selected contacts that have follow-up has been set to lost to follow-up
603603
messageFacilityChanged = You have changed the facility of this case. Do you want to transfer the case to the new facility (the hospitalization may be updated) or do you only want to edit the data to correct a mistake?
604604
messageFacilityMulitChanged = You have changed the facility of multiple cases. Do you want to transfer these cases to the new facility (the hospitalization may be updated) or do you only want to edit their data to correct mistakes?
605+
messageGdpr = In accordance with the principle of data minimization imposed by the GDPR, you must ensure that you enter here only objective data absolutely necessary for the processing of the file. In particular, you must not enter genetic or biometric data, philosophical, political, religious, trade union opinions, sexual life or orientation, ethnic origin, offenses, convictions, security measures, criminal record ... or any other data that does not would not be related to the health survey.
606+
messageGdprCheck = I have read this information, please don't show this window again
605607
messageImportCanceled = <b>Import canceled!</b><br/>The import has been canceled. All already processed rows have been successfully imported. You can now close this window.
606608
messageImportCanceledErrors = <b>Import canceled!</b><br/>The import has been canceled. Some of the already processed rows could not be imported due to malformed data.<br/>Please close this window and download the error report.
607609
messageImportError = Could not import file.
@@ -839,4 +841,4 @@ headingNetworkDiagramTooManyContacts = Too many contacts
839841
warningNetworkDiagramTooManyContacts = There are %d contacts and it is possible that your browser will freeze while displaying the diagram.<br/>Please choose a smaller time window.
840842
confirmNetworkDiagramTooManyContacts = Do you really want to update the diagram?
841843

842-
headingContactTracingFirstContact = First contact with Contact Tracing
844+
headingContactTracingFirstContact = First contact with Contact Tracing

sormas-api/src/main/resources/strings_fr-FR.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,8 @@ messageSampleOpened = Échantillon ouvert trouvé pour la chaîne de recherche
715715
messageSystemFollowUpCanceled = [System] Suivi annulé automatiquement car le contact a été converti en un cas
716716
messageSetContactRegionAndDistrict = Veuillez choisir une région, un département et enregistrer le contact avant de supprimer le cas source.
717717
messageAllCampaignFormsValid = Tous les formulaires de campagne ont été validés avec succès
718+
messageGdpr = Conformément au principe de minimisation des données imposé par le RGPD, vous devez veiller à ne saisir ici que des données objectives absolument nécessaires au traitement du dossier. En particulier, vous ne devez pas saisir de données génétiques ou biométriques, opinions philosophiques, politiques, religieuses, syndicales, vie sexuelle ou orientation, origine ethnique, infractions, condamnations, mesures de sûreté, casier judiciaire… ou toutes autres données qui ne seraient pas en rapport avec l’enquête sanitaire.
719+
messageGdprCheck = J'ai bien lu ces informations, je ne veux plus afficher cette fenêtre
718720

719721
# Notifications
720722
notificationCaseClassificationChanged = La classification du cas %s a changé en %s.
@@ -839,4 +841,4 @@ headingNetworkDiagramTooManyContacts = Too many contacts
839841
warningNetworkDiagramTooManyContacts = There are %d contacts and it is possible that your browser will freeze while displaying the diagram.<br/>Please choose a smaller time window.
840842
confirmNetworkDiagramTooManyContacts = Do you really want to update the diagram?
841843

842-
headingContactTracingFirstContact = First contact with Contact Tracing
844+
headingContactTracingFirstContact = First contact with Contact Tracing

0 commit comments

Comments
 (0)