]> git.mxchange.org Git - jjobs-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Sun, 25 Sep 2022 15:32:59 +0000 (17:32 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 25 Sep 2022 15:34:05 +0000 (17:34 +0200)
- alsways use full-qualified access, means: `this.foo` and not just `foo`

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java

index f971298b86a2b578c27326b2dd7864d1d4b22780..4890824e26494d73e7261d0369be84163acbd501 100644 (file)
@@ -243,7 +243,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsBean implements JobsAdm
 
                // Is the user name or email address used already?
                // @TODO Add password length check
-               if ((this.featureController.isFeatureEnabled("user_login_require_user_name")) && (userListController.isUserNameRegistered(newUser))) {
+               if ((this.featureController.isFeatureEnabled("user_login_require_user_name")) && (this.userListController.isUserNameRegistered(newUser))) {
                        // User name is already used
                        throw new FacesException(new UserNameAlreadyRegisteredException(newUser));
                } else if ((this.getContact() == null) && (this.contactController.isEmailAddressRegistered(newUser.getUserContact()))) {
@@ -278,7 +278,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsBean implements JobsAdm
                // Now, that all is set, call EJB
                if (this.getContact() instanceof Contact) {
                        // Fire event
-                       userLinkedEvent.fire(new AdminLinkedUserEvent(updatedUser));
+                       this.userLinkedEvent.fire(new AdminLinkedUserEvent(updatedUser));
                } else {
                        // Fire event
                        this.addedUserEvent.fire(new AdminAddedUserEvent(updatedUser));
@@ -384,7 +384,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsBean implements JobsAdm
                        // Not same password entered
                        this.showFacesMessage("form_edit_user:userPassword", "ADMIN_USER_PASSWORD_REPEAT_DIFFERENT", FacesMessage.SEVERITY_INFO); //NOI18N
                        return;
-               } else if ((!Objects.equals(user.getUserName(), this.getUserName())) && (userBean.ifUserNameExists(this.getUserName()))) {
+               } else if ((!Objects.equals(user.getUserName(), this.getUserName())) && (this.userBean.ifUserNameExists(this.getUserName()))) {
                        // Clear all fields
                        this.clear();