From: Roland Haeder Date: Tue, 3 May 2016 19:55:45 +0000 (+0200) Subject: tpzo fixed ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=23e1ff6f157a3f0ca9aa17c6c47fc59f4d01c0f7;p=pizzaservice-ejb.git tpzo fixed ... --- diff --git a/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java b/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java index cce637d..0eb5995 100644 --- a/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java @@ -59,7 +59,7 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl } // Call other bean - return this.userBean.isEmailAddressReqistered(user); + return this.userBean.isEmailAddressRegistered(user); } @Override @@ -77,7 +77,7 @@ public class PizzaUserRegistrationSessionBean extends BasePizzaDatabaseBean impl } // Call other bean - return this.userBean.isUserNameReqistered(user); + return this.userBean.isUserNameRegistered(user); } @Override diff --git a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java index ec5b2e0..ccbaef6 100644 --- a/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java +++ b/src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java @@ -405,9 +405,9 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS } @Override - public boolean isEmailAddressReqistered (final User user) { + public boolean isEmailAddressRegistered (final User user) { // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("isEmailAddressReqistered: user={0} - CALLED!", user)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("isEmailAddressRegistered: user={0} - CALLED!", user)); //NOI18N // user should not be null if (null == user) { @@ -426,10 +426,10 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS User dummy = (User) query.getSingleResult(); // Debug message - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isEmailAddressReqistered: dummy.id={0} found.", dummy.getUserId())); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("isEmailAddressRegistered: dummy.id={0} found.", dummy.getUserId())); //NOI18N } catch (final NoResultException ex) { // Log it - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isEmailAddressReqistered: getSingleResult() returned no result: {0}", ex)); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("isEmailAddressRegistered: getSingleResult() returned no result: {0}", ex)); //NOI18N // Email address does not exist return false; @@ -446,9 +446,9 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS } @Override - public boolean isUserNameReqistered (final User user) { + public boolean isUserNameRegistered (final User user) { // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("isUserNameReqistered: user={0} - CALLED!", user)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("isUserNameRegistered: user={0} - CALLED!", user)); //NOI18N // user should not be null if (null == user) { @@ -467,10 +467,10 @@ public class PizzaUserSessionBean extends BasePizzaDatabaseBean implements UserS User dummy = (User) query.getSingleResult(); // Debug message - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isUserNameReqistered: dummy.id={0} found.", dummy.getUserId())); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("isUserNameRegistered: dummy.id={0} found.", dummy.getUserId())); //NOI18N } catch (final NoResultException ex) { // Log it - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isUserNameReqistered: getSingleResult() returned no result: {0}", ex)); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("isUserNameRegistered: getSingleResult() returned no result: {0}", ex)); //NOI18N // User name does not exist return false; diff --git a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java index edd7bcf..59bc3ce 100644 --- a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java @@ -77,7 +77,7 @@ public class PizzaAdminCustomerSessionBean extends BasePizzaDatabaseBean impleme } else if (customer.getCustomerNumber().length() < PizzaAdminCustomerSessionBeanRemote.CUSTOMER_NUMBER_LENGTH) { // To short number throw new IllegalArgumentException(MessageFormat.format("customer.customerNumber.length={0} is shorter than expected: {1}", customer.getCustomerNumber().length(), PizzaAdminCustomerSessionBeanRemote.CUSTOMER_NUMBER_LENGTH)); //NOI18N - } else if (this.customerBean.isReqistered(customer)) { + } else if (this.customerBean.isRegistered(customer)) { // Throw exception throw new CustomerAlreadyRegisteredException(customer); } @@ -200,7 +200,7 @@ public class PizzaAdminCustomerSessionBean extends BasePizzaDatabaseBean impleme } else if (customer.getCustomerNumber().length() < PizzaAdminCustomerSessionBeanRemote.CUSTOMER_NUMBER_LENGTH) { // To short number throw new IllegalArgumentException(MessageFormat.format("customer.customerNumber.length={0} is shorter than expected: {1}", customer.getCustomerNumber().length(), PizzaAdminCustomerSessionBeanRemote.CUSTOMER_NUMBER_LENGTH)); //NOI18N - } else if (this.customerBean.isReqistered(customer)) { + } else if (this.customerBean.isRegistered(customer)) { // Throw exception throw new CustomerAlreadyRegisteredException(customer); } diff --git a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaCustomerSessionBean.java b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaCustomerSessionBean.java index 61a7334..24250bd 100644 --- a/src/java/org/mxchange/pizzaapplication/model/customer/PizzaCustomerSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/model/customer/PizzaCustomerSessionBean.java @@ -86,9 +86,9 @@ public class PizzaCustomerSessionBean extends BasePizzaDatabaseBean implements P } @Override - public boolean isReqistered (final Customer customer) { + public boolean isRegistered (final Customer customer) { // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("isReqistered: customer={0} - CALLED!", customer)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("isRegistered: customer={0} - CALLED!", customer)); //NOI18N // Paramerter customer should be valid if (null == customer) { @@ -122,17 +122,17 @@ public class PizzaCustomerSessionBean extends BasePizzaDatabaseBean implements P Customer dummy = (Customer) query.getSingleResult(); // Debug message - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isReqistered: Customer {0} has number{1} and contact {2}", dummy.getCustomerId(), customer.getCustomerNumber(), customer.getCustomerContact().getContactId())); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("isRegistered: Customer {0} has number{1} and contact {2}", dummy.getCustomerId(), customer.getCustomerNumber(), customer.getCustomerContact().getContactId())); //NOI18N // Mark as found isFound = true; } catch (final NoResultException ex) { // Not found - this.getLoggerBeanLocal().logDebug(MessageFormat.format("isReqistered: Not found: {0}", ex.getMessage())); //NOI18N + this.getLoggerBeanLocal().logDebug(MessageFormat.format("isRegistered: Not found: {0}", ex.getMessage())); //NOI18N } // Trace message - this.getLoggerBeanLocal().logTrace(MessageFormat.format("isReqistered: isFound={0} - EXIT!", isFound)); //NOI18N + this.getLoggerBeanLocal().logTrace(MessageFormat.format("isRegistered: isFound={0} - EXIT!", isFound)); //NOI18N // Return it return isFound;