From: Roland Haeder Date: Sat, 5 Mar 2016 16:46:04 +0000 (+0100) Subject: Introduced isRequiredChangePersonalDataSet() + updated jar(s) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=181b89b6413f2bd2f3331639ccfd63dd6892ec7a;p=addressbook-war.git Introduced isRequiredChangePersonalDataSet() + updated jar(s) --- diff --git a/lib/jcontacts-core.jar b/lib/jcontacts-core.jar index 0d39fc70..c9e06f82 100644 Binary files a/lib/jcontacts-core.jar and b/lib/jcontacts-core.jar differ diff --git a/lib/juser-core.jar b/lib/juser-core.jar index dab75846..cc3761bc 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ diff --git a/src/java/org/mxchange/addressbook/beans/user/UserWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/user/UserWebSessionBean.java index 5a770521..3d03dad9 100644 --- a/src/java/org/mxchange/addressbook/beans/user/UserWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/user/UserWebSessionBean.java @@ -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())); diff --git a/src/java/org/mxchange/addressbook/beans/user/UserWebSessionController.java b/src/java/org/mxchange/addressbook/beans/user/UserWebSessionController.java index ac221cd8..bc7213b9 100644 --- a/src/java/org/mxchange/addressbook/beans/user/UserWebSessionController.java +++ b/src/java/org/mxchange/addressbook/beans/user/UserWebSessionController.java @@ -441,6 +441,13 @@ public interface UserWebSessionController extends Serializable { */ boolean isRequiredPersonalDataSet (); + /** + * Checks whether all required personal data is set for changing them + *

+ * @return Whether the required personal data is set + */ + boolean isRequiredChangePersonalDataSet (); + /** * Checks whether same email addresses have been entered *