]> WPIA git - gigi.git/commitdiff
upd: replace assure, assurance, assurer etc in output to user
authorINOPIAE <m.maengel@inopiae.de>
Sun, 31 Jul 2016 06:50:40 +0000 (08:50 +0200)
committerINOPIAE <m.maengel@inopiae.de>
Sun, 31 Jul 2016 15:03:00 +0000 (17:03 +0200)
Change-Id: I3da54fbf2469b14f1e3e8ce06e6cd16b93c34f41

src/org/cacert/gigi/dbObjects/Group.java
src/org/cacert/gigi/dbObjects/User.java
src/org/cacert/gigi/pages/wot/AssuranceForm.java
src/org/cacert/gigi/pages/wot/AssurePage.java

index dd6767ef783cb8e0a309403983a90e6c17e22c90..e85b82775de44d5ad92b604e5b333b5349319a4f 100644 (file)
@@ -11,7 +11,7 @@ public enum Group {
     BLOCKEDLOGIN("blockedlogin", "may not login"), BLOCKEDCERT("blockedcert", "may not issue certificates"), //
     TTP_ASSURER("ttp-assurer", "may verify via TTP"), TTP_APPLICANT("ttp-applicant", "requests to be verified via ttp"), //
     CODESIGNING("codesigning", "may issue codesigning certificates"), ORGASSURER("orgassurer", "may verify organisations"), //
     BLOCKEDLOGIN("blockedlogin", "may not login"), BLOCKEDCERT("blockedcert", "may not issue certificates"), //
     TTP_ASSURER("ttp-assurer", "may verify via TTP"), TTP_APPLICANT("ttp-applicant", "requests to be verified via ttp"), //
     CODESIGNING("codesigning", "may issue codesigning certificates"), ORGASSURER("orgassurer", "may verify organisations"), //
-    NUCLEUS_ASSURER("nucleus-assurer", "may issue nucleus assurances"), LOCATE_AGENT("locate-agent", "wants access to the locate agent system");
+    NUCLEUS_ASSURER("nucleus-assurer", "may enter nucleus verifications"), LOCATE_AGENT("locate-agent", "wants access to the locate agent system");
 
     private final String dbName;
 
 
     private final String dbName;
 
index 9056a35b31d1529d8ec41e27f5093031e711854b..4e925a563a9e9879c12173ce1a1421bb75d30cce 100644 (file)
@@ -136,7 +136,7 @@ public class User extends CertificateOwner {
     public void setDoB(DayDate dob) throws GigiApiException {
         synchronized (Notary.class) {
             if (getReceivedAssurances().length != 0) {
     public void setDoB(DayDate dob) throws GigiApiException {
         synchronized (Notary.class) {
             if (getReceivedAssurances().length != 0) {
-                throw new GigiApiException("No change after assurance allowed.");
+                throw new GigiApiException("No change after verification allowed.");
             }
 
             if ( !CalendarUtil.isOfAge(dob, User.MINIMUM_AGE)) {
             }
 
             if ( !CalendarUtil.isOfAge(dob, User.MINIMUM_AGE)) {
index aca82b917b68fbf6c2433712af1186b930b6ef72..e5521dab20b3ca251798811995d5c048502bad74 100644 (file)
@@ -152,14 +152,14 @@ public class AssuranceForm extends Form {
             try {
                 type = AssuranceType.valueOf(val);
             } catch (IllegalArgumentException e) {
             try {
                 type = AssuranceType.valueOf(val);
             } catch (IllegalArgumentException e) {
-                gae.mergeInto(new GigiApiException("Assurance Type wrong."));
+                gae.mergeInto(new GigiApiException("Verification Type wrong."));
             }
         }
 
         int pointsI = 0;
         String points = req.getParameter("points");
         if (points == null || "".equals(points)) {
             }
         }
 
         int pointsI = 0;
         String points = req.getParameter("points");
         if (points == null || "".equals(points)) {
-            gae.mergeInto(new GigiApiException("For an assurance, you need to enter points."));
+            gae.mergeInto(new GigiApiException("For a verification, you need to enter points."));
         } else {
             try {
                 pointsI = Integer.parseInt(points);
         } else {
             try {
                 pointsI = Integer.parseInt(points);
@@ -191,8 +191,8 @@ public class AssuranceForm extends Form {
 
         if (aword != null && !aword.equals("")) {
             Language langApplicant = Language.getInstance(assuree.getPreferredLocale());
 
         if (aword != null && !aword.equals("")) {
             Language langApplicant = Language.getInstance(assuree.getPreferredLocale());
-            String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by assurance, please enter your secret password using this form:");
-            String subject = langApplicant.getTranslation("Password reset by assurance");
+            String method = langApplicant.getTranslation("A password reset was triggered. If you did a password reset by verification, please enter your secret password using this form:");
+            String subject = langApplicant.getTranslation("Password reset by verification");
             PasswordResetPage.initPasswordResetProcess(out, assuree, req, aword, langApplicant, method, subject);
         }
         return true;
             PasswordResetPage.initPasswordResetProcess(out, assuree, req, aword, langApplicant, method, subject);
         }
         return true;
index 8d4a3aacb3259fbccf23c454cbd30cddff68f0a0..508a9c62413b5b5f0807d7ee300abe94e87737be 100644 (file)
@@ -26,7 +26,7 @@ public class AssurePage extends Page {
     private static final Template t = new Template(AssuranceForm.class.getResource("AssureeSearch.templ"));
 
     public AssurePage() {
     private static final Template t = new Template(AssuranceForm.class.getResource("AssureeSearch.templ"));
 
     public AssurePage() {
-        super("Assure someone");
+        super("Verify someone");
 
     }
 
 
     }
 
@@ -51,7 +51,7 @@ public class AssurePage extends Page {
             AssuranceForm form = Form.getForm(req, AssuranceForm.class);
             try {
                 if (form.submit(out, req)) {
             AssuranceForm form = Form.getForm(req, AssuranceForm.class);
             try {
                 if (form.submit(out, req)) {
-                    out.println(translate(req, "Assurance complete."));
+                    out.println(translate(req, "Verification complete."));
                     return;
                 }
             } catch (GigiApiException e) {
                     return;
                 }
             } catch (GigiApiException e) {