Skip to content

Commit

Permalink
Merge pull request #12960 from ePareto-Information-System/feature/EPI…
Browse files Browse the repository at this point in the history
…C-142-Self_reset_password

Added @Audited Annotations to classes that require them and rearrange…
  • Loading branch information
daveotengo authored Feb 12, 2024
2 parents 9bbb51a + 47b3dc9 commit 5152dac
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.
10 changes: 5 additions & 5 deletions sormas-api/src/main/java/de/symeda/sormas/api/i18n/Captions.java
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ public interface Captions {
String Configuration_LineListing = "Configuration.LineListing";
String Configuration_Outbreaks = "Configuration.Outbreaks";
String Configuration_PointsOfEntry = "Configuration.PointsOfEntry";
String confirmPassword = "confirmPassword";
String Contact = "Contact";
String Contact_additionalDetails = "Contact.additionalDetails";
String Contact_ageAndBirthDate = "Contact.ageAndBirthDate";
Expand Down Expand Up @@ -816,6 +817,7 @@ public interface Captions {
String countryArchivedCountries = "countryArchivedCountries";
String createSymptomJournalAccountButton = "createSymptomJournalAccountButton";
String creationDate = "creationDate";
String currentPassword = "currentPassword";
String CustomizableEnum_hasDetails = "CustomizableEnum.hasDetails";
String CustomizableEnum_hasDetails_short = "CustomizableEnum.hasDetails.short";
String CustomizableEnumValue_active = "CustomizableEnumValue.active";
Expand Down Expand Up @@ -1753,6 +1755,7 @@ public interface Captions {
String outbreakNormal = "outbreakNormal";
String outbreakOutbreak = "outbreakOutbreak";
String passportNumber = "passportNumber";
String passwordStrength = "passwordStrength";
String PathogenTest = "PathogenTest";
String PathogenTest_cqValue = "PathogenTest.cqValue";
String PathogenTest_ctValueE = "PathogenTest.ctValueE";
Expand Down Expand Up @@ -2609,6 +2612,7 @@ public interface Captions {
String treatmentOpenPrescription = "treatmentOpenPrescription";
String unassigned = "unassigned";
String unknown = "unknown";
String updatePassword = "updatePassword";
String User = "User";
String User_active = "User.active";
String User_address = "User.address";
Expand All @@ -2625,16 +2629,12 @@ public interface Captions {
String User_userEmail = "User.userEmail";
String User_userName = "User.userName";
String User_userRoles = "User.userRoles";
String updatePassword = "updatePassword";
String currentPassword = "currentPassword";
String confirmPassword = "confirmPassword";
String passwordStrength = "passwordStrength";
String User_uuid = "User.uuid";
String userGeneratePassword = "userGeneratePassword";
String userMyUserId = "userMyUserId";
String userNewUser = "userNewUser";
String userResetPassword = "userResetPassword";
String userRestrictDiseases = "userRestrictDiseases";
String userGeneratePassword = "userGeneratePassword";
String userRight = "userRight";
String UserRight_caption = "UserRight.caption";
String UserRight_description = "UserRight.description";
Expand Down
20 changes: 10 additions & 10 deletions sormas-api/src/main/java/de/symeda/sormas/api/i18n/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ public interface Strings {
String confirmationVaccinationStatusUpdate = "confirmationVaccinationStatusUpdate";
String confirmExternalMessageCorrectionThrough = "confirmExternalMessageCorrectionThrough";
String confirmNetworkDiagramTooManyContacts = "confirmNetworkDiagramTooManyContacts";
String confirmPassword = "confirmPassword";
String currentPassword = "currentPassword";
String date = "date";
String day = "day";
String DefaultPassword_newPassword = "DefaultPassword.newPassword";
Expand Down Expand Up @@ -444,6 +446,7 @@ public interface Strings {
String headingcasesWithReferenceDefinitionFulfilled = "headingcasesWithReferenceDefinitionFulfilled";
String headingCaution = "headingCaution";
String headingChangeCaseDisease = "headingChangeCaseDisease";
String headingChangePassword = "headingChangePassword";
String headingChangePathogenTestResult = "headingChangePathogenTestResult";
String headingClinicalMeasurements = "headingClinicalMeasurements";
String headingClinicalVisitsDeleted = "headingClinicalVisitsDeleted";
Expand Down Expand Up @@ -667,7 +670,6 @@ public interface Strings {
String headingLineListingImport = "headingLineListingImport";
String headingLocation = "headingLocation";
String headingLoginFailed = "headingLoginFailed";
String headingUpdatePasswordFailed = "headingUpdatePasswordFailed";
String headingMaternalHistory = "headingMaternalHistory";
String headingMedicalInformation = "headingMedicalInformation";
String headingMergeDuplicateEventParticipantSamePersonSameEvent = "headingMergeDuplicateEventParticipantSamePersonSameEvent";
Expand Down Expand Up @@ -709,10 +711,6 @@ public interface Strings {
String headingPaperFormDates = "headingPaperFormDates";
String headingPathogenTestsDeleted = "headingPathogenTestsDeleted";
String headingPersonData = "headingPersonData";
String currentPassword = "currentPassword";
String updatePassword = "updatePassword";
String confirmPassword = "confirmPassword";
String passwordStrength = "passwordStrength";
String headingPersonInformation = "headingPersonInformation";
String headingPersonOccupation = "headingPersonOccupation";
String headingPickEventGroup = "headingPickEventGroup";
Expand Down Expand Up @@ -821,7 +819,7 @@ public interface Strings {
String headingUpdatedPersonInformation = "headingUpdatedPersonInformation";
String headingUpdatedSampleInformation = "headingUpdatedSampleInformation";
String headingUpdatePassword = "headingUpdatePassword";
String headingChangePassword = "headingChangePassword";
String headingUpdatePasswordFailed = "headingUpdatePasswordFailed";
String headingUpdatePersonContactDetails = "headingUpdatePersonContactDetails";
String headingUploadSuccess = "headingUploadSuccess";
String headingUserData = "headingUserData";
Expand Down Expand Up @@ -1349,13 +1347,12 @@ public interface Strings {
String messageLineListingDisabled = "messageLineListingDisabled";
String messageLineListingSaved = "messageLineListingSaved";
String messageLoginFailed = "messageLoginFailed";
String messageNewPasswordDoesNotMatchFailed = "messageNewPasswordDoesNotMatchFailed";
String messagePasswordFailed = "messagePasswordFailed";
String messageNewPasswordFailed = "messageNewPasswordFailed";
String messageMissingCases = "messageMissingCases";
String messageMissingDateFilter = "messageMissingDateFilter";
String messageMissingEpiWeekFilter = "messageMissingEpiWeekFilter";
String messageMultipleSampleReports = "messageMultipleSampleReports";
String messageNewPasswordDoesNotMatchFailed = "messageNewPasswordDoesNotMatchFailed";
String messageNewPasswordFailed = "messageNewPasswordFailed";
String messageNoCaseFound = "messageNoCaseFound";
String messageNoCaseFoundToLinkImmunization = "messageNoCaseFoundToLinkImmunization";
String messageNoCasesSelected = "messageNoCasesSelected";
Expand Down Expand Up @@ -1392,8 +1389,9 @@ public interface Strings {
String messageNoVisitsSelected = "messageNoVisitsSelected";
String messageOtherDeleteReasonNotFilled = "messageOtherDeleteReasonNotFilled";
String messageOutbreakSaved = "messageOutbreakSaved";
String messagePasswordReset = "messagePasswordReset";
String messagePasswordChange = "messagePasswordChange";
String messagePasswordFailed = "messagePasswordFailed";
String messagePasswordReset = "messagePasswordReset";
String messagePasswordResetEmailLink = "messagePasswordResetEmailLink";
String messagePathogenTestSaved = "messagePathogenTestSaved";
String messagePathogenTestSavedShort = "messagePathogenTestSavedShort";
Expand Down Expand Up @@ -1563,6 +1561,7 @@ public interface Strings {
String of = "of";
String on = "on";
String or = "or";
String passwordStrength = "passwordStrength";
String pathogenTestDeletedDuringLabMessageConversion = "pathogenTestDeletedDuringLabMessageConversion";
String pleaseSpecify = "pleaseSpecify";
String populationDataByArea = "populationDataByArea";
Expand Down Expand Up @@ -1711,6 +1710,7 @@ public interface Strings {
String unsavedChanges_warningMessage = "unsavedChanges.warningMessage";
String unsavedChanges_warningTitle = "unsavedChanges.warningTitle";
String until = "until";
String updatePassword = "updatePassword";
String uuidOf = "uuidOf";
String warningDashboardMapTooManyMarkers = "warningDashboardMapTooManyMarkers";
String warningNetworkDiagramTooManyContacts = "warningNetworkDiagramTooManyContacts";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@
package de.symeda.sormas.api.task;


import de.symeda.sormas.api.audit.AuditIncludeProperty;
import de.symeda.sormas.api.audit.AuditedClass;

import java.io.Serializable;

@AuditedClass
public class TaskContextIndex implements Serializable, Cloneable {

@AuditIncludeProperty
private TaskContext taskContext;
@AuditIncludeProperty
private String uuid;

public TaskContextIndex() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
import com.fasterxml.jackson.annotation.JsonIgnore;

import de.symeda.sormas.api.EntityDto;
import de.symeda.sormas.api.audit.AuditedClass;
import de.symeda.sormas.api.i18n.I18nProperties;
import de.symeda.sormas.api.i18n.Strings;
import de.symeda.sormas.api.i18n.Validations;
import de.symeda.sormas.api.utils.DataHelper;
import de.symeda.sormas.api.utils.FieldConstraints;
import de.symeda.sormas.api.utils.ValidationException;

@AuditedClass
public class UserRoleDto extends EntityDto {

private static final long serialVersionUID = -547459523041494446L;
Expand Down
2 changes: 1 addition & 1 deletion sormas-api/src/main/resources/strings.properties
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ headingPersonData = Person data
currentPassword=Enter Current Password
updatePassword=Enter new Password
confirmPassword=Confirm new Password
+passwordStrength=Password strength
passwordStrength=Password strength
headingPersonInformation = Person information
headingPersonOccupation = Occupation & education
headingPickEventGroup = Pick event group
Expand Down

0 comments on commit 5152dac

Please sign in to comment.