]> git.mxchange.org Git - addressbook-war.git/commitdiff
Continued a bit: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Tue, 2 Aug 2016 08:42:08 +0000 (10:42 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 6 Aug 2016 21:15:23 +0000 (23:15 +0200)
- sorted members
- cleared also new flag in clear() method
- set flag before the user instance is being submitted to EJB

src/java/org/mxchange/addressbook/beans/user/AddressbookAdminUserWebRequestBean.java

index 7a3a50d0b0a7c5964d3a6a1a92ffa503be18e5d2..d389b29c70515dfd51d26e92084a92d817deacfb 100644 (file)
@@ -351,8 +351,9 @@ public class AddressbookAdminUserWebRequestBean extends BaseAddressbookControlle
                        encryptedPassword = UserUtils.encryptPassword(this.getUserPassword());
                }
 
-               // Set user name
+               // Set user name and flag
                user.setUserName(this.getUserName());
+               user.setUserMustChangePassword(this.getUserMustChangePassword());
 
                // Is a password set?
                if (encryptedPassword != null) {
@@ -371,23 +372,23 @@ public class AddressbookAdminUserWebRequestBean extends BaseAddressbookControlle
        }
 
        @Override
-       public String getUserName () {
-               return this.userName;
+       public Boolean getUserMustChangePassword () {
+               return this.userMustChangePassword;
        }
 
        @Override
-       public void setUserName (final String userName) {
-               this.userName = userName;
+       public void setUserMustChangePassword (final Boolean userMustChangePassword) {
+               this.userMustChangePassword = userMustChangePassword;
        }
 
        @Override
-       public Boolean getUserMustChangePassword () {
-               return this.userMustChangePassword;
+       public String getUserName () {
+               return this.userName;
        }
 
        @Override
-       public void setUserMustChangePassword (final Boolean userMustChangePassword) {
-               this.userMustChangePassword = userMustChangePassword;
+       public void setUserName (final String userName) {
+               this.userName = userName;
        }
 
        @Override
@@ -426,6 +427,7 @@ public class AddressbookAdminUserWebRequestBean extends BaseAddressbookControlle
                this.setUserName(null);
                this.setUserPassword(null);
                this.setUserPasswordRepeat(null);
+               this.setUserMustChangePassword(null);
        }
 
        /**