From ef15391c82fefa2ce06d438d57e7f812ccdea289 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 18 Apr 2016 21:12:20 +0200 Subject: [PATCH] Finished with event triggered when admin adds a new user + ignored some strings for i18n MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../beans/user/AddressbookAdminUserWebSessionBean.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java index 2afbb491..40e9e3e7 100644 --- a/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebSessionBean.java @@ -43,6 +43,7 @@ import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jphone.phonenumbers.landline.LandLineNumber; import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider; import org.mxchange.jusercore.events.user.AdminAddedUserEvent; +import org.mxchange.jusercore.events.user.AdminUserAddedEvent; import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException; import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException; import org.mxchange.jusercore.exceptions.UserNotFoundException; @@ -329,8 +330,8 @@ public class AddressbookAdminUserWebSessionBean implements AddressbookAdminUserW } // The password should not be null and at least 5 characters long - assert (password != null) : "password is null"; - assert (password.length() >= AddressbookUserWebSessionController.MINIMUM_PASSWORD_LENGTH) : "Password is not long enough."; + assert (password != null) : "password is null"; //NOI18N + assert (password.length() >= AddressbookUserWebSessionController.MINIMUM_PASSWORD_LENGTH) : "Password is not long enough."; //NOI18N // Encrypt password and set it user.setUserEncryptedPassword(UserUtils.encryptPassword(password)); @@ -347,6 +348,7 @@ public class AddressbookAdminUserWebSessionBean implements AddressbookAdminUserW } // Fire event + this.addedUserEvent.fire(new AdminUserAddedEvent(updatedUser)); // Clear all this.clear(); -- 2.39.5