]> git.mxchange.org Git - pizzaservice-ejb.git/commitdiff
tpzo fixed ...
authorRoland Haeder <roland@mxchange.org>
Tue, 3 May 2016 19:55:45 +0000 (21:55 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 3 May 2016 19:55:45 +0000 (21:55 +0200)
src/java/org/mxchange/jusercore/model/register/PizzaUserRegistrationSessionBean.java
src/java/org/mxchange/jusercore/model/user/PizzaUserSessionBean.java
src/java/org/mxchange/pizzaapplication/model/customer/PizzaAdminCustomerSessionBean.java
src/java/org/mxchange/pizzaapplication/model/customer/PizzaCustomerSessionBean.java

index cce637de75fe24ee67d1fe28a7159ea2e727f2ef..0eb599573055f6f6c1310de3e40445534c09ff95 100644 (file)
@@ -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
index ec5b2e0083d6fcd9654d77eae7fe9a04b7d71e93..ccbaef668caee7b7ccb20373e9c3c3b86c107d1e 100644 (file)
@@ -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;
index edd7bcfd2dd48a4beafb337648869c37150a853d..59bc3ce90abad31d7af7f1da4cd152579aef95f7 100644 (file)
@@ -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);
                }
index 61a73343e4510d0a2e2077e377878bc4215f438b..24250bd1f8f7fa26e9a71d91bd350d0a34e08925 100644 (file)
@@ -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;