]> git.mxchange.org Git - addressbook-war.git/commitdiff
Introduced isRequiredChangePersonalDataSet() + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Sat, 5 Mar 2016 16:46:04 +0000 (17:46 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 5 Mar 2016 16:46:04 +0000 (17:46 +0100)
lib/jcontacts-core.jar
lib/juser-core.jar
src/java/org/mxchange/addressbook/beans/user/UserWebSessionBean.java
src/java/org/mxchange/addressbook/beans/user/UserWebSessionController.java

index 0d39fc70d693bcc904f9965cae2c4637794762b7..c9e06f82084a0a9b4a489d3285e869016d64b917 100644 (file)
Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ
index dab758462c35b87a226d553d9ae55630dad262db..cc3761bcc952f208a7820d9d5240423e27e658c6 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 5a7705218235f12a0f9c011d1fe203d8e1cd0a90..3d03dad953ef6dd6c1bda9ce6713f6ecc0185f5c 100644 (file)
@@ -716,6 +716,18 @@ public class UserWebSessionBean implements UserWebSessionController {
                                (this.getUserPasswordRepeat() != null));
        }
 
+       @Override
+       public boolean isRequiredChangePersonalDataSet () {
+               return ((this.getUserProfileMode() != null) &&
+                               (this.getGender() != null) &&
+                               (this.getFirstName() != null) &&
+                               (this.getFamilyName() != null) &&
+                               (this.getStreet() != null) &&
+                               (this.getHouseNumber() != null) &&
+                               (this.getZipCode() != null) &&
+                               (this.getCity() != null));
+       }
+
        @Override
        public boolean isSameEmailAddressEntered () {
                return (Objects.equals(this.getEmailAddress(), this.getEmailAddressRepeat()));
index ac221cd81cdc7287356ccbbceff33331984d15a8..bc7213b98cc618deb969f35ddf3ef03205acb110 100644 (file)
@@ -441,6 +441,13 @@ public interface UserWebSessionController extends Serializable {
         */
        boolean isRequiredPersonalDataSet ();
 
+       /**
+        * Checks whether all required personal data is set for changing them
+        * <p>
+        * @return Whether the required personal data is set
+        */
+       boolean isRequiredChangePersonalDataSet ();
+
        /**
         * Checks whether same email addresses have been entered
         * <p>