From d5c2f98b367e701da9b616aa92109e20aab9c12a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 23 Apr 2017 14:08:13 +0200 Subject: [PATCH] no recruiter here MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../mxchange/localization/bundle_en_US.properties | 2 +- .../beans/helper/PizzaWebRequestHelperBean.java | 2 +- .../beans/user/PizzaUserWebSessionBean.java | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/java/org/mxchange/localization/bundle_en_US.properties b/src/java/org/mxchange/localization/bundle_en_US.properties index 5695abbc..02d9fa1f 100644 --- a/src/java/org/mxchange/localization/bundle_en_US.properties +++ b/src/java/org/mxchange/localization/bundle_en_US.properties @@ -433,7 +433,7 @@ GUEST_AGREE_READ_TERMS_CONDITIONS_1=Yes, I have read and understand the GUEST_AGREE_READ_TERMS_CONDITIONS_2=and I accept them with this. LINK_GUEST_TERMS_CONDITIONS=Terms & Conditions LINK_GUEST_PRIVACY_STATEMENTS=privacy statements -ADMIN_ADD_OR_ENTER_CONTACT_DATA=... or enter the recruiter's contact data: +ADMIN_ADD_OR_ENTER_CONTACT_DATA=... or enter the user's contact data: ADMIN_PERSONAL_DATA_EMAIL_ADDRESS=Email address: MENU_RECRUIITER_TITLE=For recruiter LINK_RERUITER_LOGIN=Login diff --git a/src/java/org/mxchange/pizzaapplication/beans/helper/PizzaWebRequestHelperBean.java b/src/java/org/mxchange/pizzaapplication/beans/helper/PizzaWebRequestHelperBean.java index e1fdb68f..2abb66c2 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/helper/PizzaWebRequestHelperBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/helper/PizzaWebRequestHelperBean.java @@ -335,7 +335,7 @@ public class PizzaWebRequestHelperBean implements PizzaWebRequestHelperControlle // Default key is "unused" String messageKey = "CONTACT_IS_UNUSED"; //NOI18N - // Check user/customer + // Check user/customer contact boolean isUserContact = this.userController.isContactFound(contact); boolean isCustomerContact = this.customerController.isContactFound(contact); diff --git a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java index 28d438f3..38f561b9 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/user/PizzaUserWebSessionBean.java @@ -550,23 +550,23 @@ public class PizzaUserWebSessionBean extends BasePizzaController implements Pizz // Is all data set? if (this.getUserName() == null) { // Throw NPE - throw new NullPointerException("recruiterName is null"); //NOI18N + throw new NullPointerException("userName is null"); //NOI18N } else if (this.getUserName().isEmpty()) { // Is empty - throw new IllegalStateException("recruiterName is empty."); //NOI18N + throw new IllegalStateException("userName is empty."); //NOI18N } - // Create new recruiter instance - User recruiter = new LoginUser(); + // Create new user instance + User user = new LoginUser(); // Update all data ... - recruiter.setUserName(this.getUserName()); + user.setUserName(this.getUserName()); // Trace message - //* NOISY-DEBUG */ System.out.println(MessageFormat.format("{0}.createUserLogin: recruiter={1} - EXIT!", this.getClass().getSimpleName(), recruiter)); + //* NOISY-DEBUG */ System.out.println(MessageFormat.format("{0}.createUserLogin: user={1} - EXIT!", this.getClass().getSimpleName(), user)); // Return the new instance - return recruiter; + return user; } @Override -- 2.39.5