comparison src/nabble/model/export/ImportImpl.java @ 47:72765b66e2c3

remove mailing list code
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 18 Jun 2021 17:44:24 -0600
parents 7ecd1a4ef557
children
comparison
equal deleted inserted replaced
46:7ac7f55e16cf 47:72765b66e2c3
65 throw new RuntimeException(e); 65 throw new RuntimeException(e);
66 } finally { 66 } finally {
67 db.endTransaction(); 67 db.endTransaction();
68 } 68 }
69 } 69 }
70
71 /** FOR OLD NABBLE ONLY -- TO BE REMOVED SOON */
72 public void addUser0(String name, String email, String password, long registrationDate) {
73 final DbDatabase db = site.getDb();
74 db.beginTransaction();
75 try {
76 User user = site.getOrCreateUser(email, name);
77 if (!user.isRegistered()) {
78 user.setPassword(password);
79 user.register(new Date(registrationDate));
80 user.update();
81 }
82 db.commitTransaction();
83 } catch (ModelException e) {
84 // do nothing -- skip this user
85 } finally {
86 db.endTransaction();
87 }
88 }
89 } 70 }