From: Roland Haeder Date: Mon, 18 Apr 2016 19:12:20 +0000 (+0200) Subject: Finished with event triggered when admin adds a new user + ignored some strings for... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4c9db4d8ff6c8ac7a7cadec0adcaa81736eb4664;p=jjobs-war.git Finished with event triggered when admin adds a new user + ignored some strings for i18n Signed-off-by: Roland Häder --- diff --git a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java index 91601556..9840d80a 100644 --- a/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebSessionBean.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 JobsAdminUserWebSessionBean implements JobsAdminUserWebSessionContr } // The password should not be null and at least 5 characters long - assert (password != null) : "password is null"; - assert (password.length() >= JobsUserWebSessionController.MINIMUM_PASSWORD_LENGTH) : "Password is not long enough."; + assert (password != null) : "password is null"; //NOI18N + assert (password.length() >= JobsUserWebSessionController.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 JobsAdminUserWebSessionBean implements JobsAdminUserWebSessionContr } // Fire event + this.addedUserEvent.fire(new AdminUserAddedEvent(updatedUser)); // Clear all this.clear();