]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/dbObjects/SupportedUser.java
add: Allow multiple names, name-schemes, multi-name-assurance, etc.
[gigi.git] / src / org / cacert / gigi / dbObjects / SupportedUser.java
index 7affe34caa18c35625e8a0cff56ab02d10248469..193a32b0853492069c33059b007510c2636eb279 100644 (file)
@@ -30,21 +30,12 @@ public class SupportedUser {
         this.ticket = ticket;
     }
 
-    public boolean setName(Name newName) throws GigiApiException {
-        if (newName.equals(target.getName())) {
-            return false;
-        }
-        writeSELog("SE Name change");
-        target.setName(newName);
-        return true;
-    }
-
     public boolean setDob(DayDate dob) throws GigiApiException {
         if (dob.equals(target.getDoB())) {
             return false;
         }
         writeSELog("SE dob change");
-        target.setDoB(dob);
+        target.setDoBAsSupport(dob);
         return true;
     }
 
@@ -88,10 +79,6 @@ public class SupportedUser {
         return target;
     }
 
-    public void submitSupportAction() throws GigiApiException {
-        target.rawUpdateUserData();
-    }
-
     public void grant(Group toMod) {
         target.grantGroup(supporter, toMod);
     }
@@ -105,7 +92,7 @@ public class SupportedUser {
             StringWriter sw = new StringWriter();
             PrintWriter outMail = new PrintWriter(sw);
             outMail.print("Hi," + "\n\n");
-            SprintfCommand.createSimple("supporter {0} triggered:", supporter.getName().toString()).output(outMail, Language.getInstance(Locale.ENGLISH), new HashMap<String, Object>());
+            SprintfCommand.createSimple("supporter {0} triggered:", supporter.getPreferredName().toString()).output(outMail, Language.getInstance(Locale.ENGLISH), new HashMap<String, Object>());
             outMail.print("\n\n");
             message.output(outMail, Language.getInstance(Locale.ENGLISH), new HashMap<String, Object>());
             outMail.print("\n\n");