]> git.mxchange.org Git - jjobs-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>
Sun, 7 Aug 2016 10:01:24 +0000 (12:01 +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/jjobs/beans/user/JobsAdminUserWebRequestBean.java

index 0917b12e68572ebf27d353df13d01df9f25c6886..c42f3f238ebaf0619dbf5f8fb467df1f56c05b56 100644 (file)
@@ -342,8 +342,9 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                        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) {
@@ -362,23 +363,23 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
        }
 
        @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
@@ -417,6 +418,7 @@ public class JobsAdminUserWebRequestBean extends BaseJobsController implements J
                this.setUserName(null);
                this.setUserPassword(null);
                this.setUserPasswordRepeat(null);
+               this.setUserMustChangePassword(null);
        }
 
        /**