]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Please cherry-pick:
authorRoland Häder <roland@mxchange.org>
Thu, 20 Apr 2017 09:29:15 +0000 (11:29 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Apr 2017 10:01:47 +0000 (12:01 +0200)
- let's get rid of all these debug messages

Signed-off-by: Roland Häder <roland@mxchange.org>
src/java/org/mxchange/pizzaapplication/beans/BasePizzaController.java
src/java/org/mxchange/pizzaapplication/beans/helper/PizzaWebRequestHelper.java
src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java
src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java
src/java/org/mxchange/pizzaapplication/validator/emailaddress/PizzaEmailAddressValidator.java
src/java/org/mxchange/pizzaapplication/validator/names/PizzaNameValidator.java
src/java/org/mxchange/pizzaapplication/validator/password/PizzaUserPasswordValidator.java
src/java/org/mxchange/pizzaapplication/validator/privacy_terms/PizzaPrivacyTermsCheckboxValidator.java

index d13f580e78c7dee84535cb6ecf027c5a6e627978..93f367c13fb8a5d0497de236cd86c8dfca754508 100644 (file)
@@ -17,7 +17,6 @@
 package org.mxchange.pizzaapplication.beans;
 
 import java.io.Serializable;
-import java.text.MessageFormat;
 import javax.faces.application.FacesMessage;
 import javax.faces.context.FacesContext;
 
@@ -109,9 +108,6 @@ public abstract class BasePizzaController implements Serializable {
         * @param cause    Causing exception
         */
        protected void showFacesMessage (final String clientId, final Throwable cause) {
-               // Trace message
-               System.out.println(MessageFormat.format("showFacesMessage: clientId={0},cause={1} - CALLED!", clientId, cause));
-
                // Get context and add message
                this.showFacesMessage(clientId, cause.getMessage());
        }
index f2857f9ac3bec703a7681610645e5a8543098f28..82fd2019b69c6287fde2141d956dee76ce52a089 100644 (file)
@@ -99,9 +99,6 @@ public class PizzaWebRequestHelper implements PizzaWebRequestController {
 
        @Override
        public void copyContactToController () {
-               // Log message
-               //* NOISY-DEBUG: */ System.out.println("AdminHelper::copyContactToController - CALLED!"); //NOI18N
-
                // Validate user instance
                if (this.getContact() == null) {
                        // Throw NPE
@@ -119,9 +116,6 @@ public class PizzaWebRequestHelper implements PizzaWebRequestController {
 
                // Set all fields: user
                this.adminContactController.copyContactToController(this.getContact());
-
-               // Log message
-               //* NOISY-DEBUG: */ System.out.println("AdminHelper::copyContactToController - EXIT!"); //NOI18N
        }
 
        @Override
@@ -150,9 +144,6 @@ public class PizzaWebRequestHelper implements PizzaWebRequestController {
 
        @Override
        public void copyUserToController () {
-               // Log message
-               //* NOISY-DEBUG: */ System.out.println("AdminHelper::copyUserToController - CALLED!"); //NOI18N
-
                // Validate user instance
                if (this.getUser() == null) {
                        // Throw NPE
@@ -176,9 +167,6 @@ public class PizzaWebRequestHelper implements PizzaWebRequestController {
 
                // Set all fields: user
                this.userController.setUserName(this.getUser().getUserName());
-
-               // Log message
-               //* NOISY-DEBUG: */ System.out.println("AdminHelper::copyUserToController - EXIT!"); //NOI18N
        }
 
        @Override
index af5234d4d3654ec756fe62f886e81c07627f5e6f..0d17007c7d0eee407514527f6ee22f694fde1e81 100644 (file)
@@ -51,9 +51,6 @@ public class PizzaLocalizationSessionBean extends BasePizzaController implements
 
        @Override
        public void afterUserLoginEvent (@Observes final ObservableUserLoggedInEvent event) {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("LandingLocalizationSessionBean:afterUserLogin: event={0} - CALLED!", event)); //NOI18N
-
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -74,16 +71,10 @@ public class PizzaLocalizationSessionBean extends BasePizzaController implements
                        // Set locale here
                        this.setLocale(event.getLoggedInUser().getUserLocale());
                }
-
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println("LandingLocalizationSessionBean:afterUserLogin - EXIT!"); //NOI18N
        }
 
        @Override
        public void afterUserLogoutEvent (@Observes final ObservableUserLogoutEvent event) {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("ReportsLocalizationSessionBean:afterUserLogin: event={0} - CALLED!", event)); //NOI18N
-
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -101,22 +92,15 @@ public class PizzaLocalizationSessionBean extends BasePizzaController implements
 
                // Clear this bean as well
                this.clear();
-
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println("ReportsLocalizationSessionBean:afterUserLogin - EXIT!"); //NOI18N
        }
 
        @Override
        public String getLanguage () {
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("PizzaLocalizationSessionBean::getLanguage(): locale.language={0} - EXIT!", this.getLocale().getLanguage())); //NOI18N
                return this.getLocale().getLanguage().toLowerCase();
        }
 
        @Override
        public void setLanguage (final String language) {
-               // Log trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("PizzaLocalizationSessionBean::setLanguage: language={0} - CALLED!", language)); //NOI18N
-
                // Is the language null?
                if (null == language) {
                        // This may sometimes happen, so abort here
@@ -132,26 +116,18 @@ public class PizzaLocalizationSessionBean extends BasePizzaController implements
                // Get new locale with upper-case country code
                Locale loc = new Locale(splits[0], splits[1]);
 
-               // Log debug message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("PizzaLocalizationSessionBean::setLanguage: loc={0}", loc)); //NOI18N
-
                // Set it here and in the JSF context
                this.setLocale(loc);
                FacesContext.getCurrentInstance().getViewRoot().setLocale(loc);
-
-               // Log trace message
-               //* NOISY-DEBUG: */ System.out.println("PizzaLocalizationSessionBean::setLanguage: EXIT!"); //NOI18N
        }
 
        @Override
        public Locale getLocale () {
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("PizzaLocalizationSessionBean::getLocale(): locale={0} - EXIT!", this.locale)); //NOI18N
                return this.locale;
        }
 
        @Override
        public void setLocale (final Locale locale) {
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("PizzaLocalizationSessionBean::setLocale(): locale={0} - CALLED!", locale)); //NOI18N
                this.locale = locale;
        }
 
@@ -169,20 +145,11 @@ public class PizzaLocalizationSessionBean extends BasePizzaController implements
         */
        @PostConstruct
        public void init () {
-               // Log trace message
-               //* NOISY-DEBUG: */ System.out.println("PizzaLocalizationSessionBean::init: CALLED!"); //NOI18N
-
                // Create locale instance from context
                Locale loc = FacesContext.getCurrentInstance().getExternalContext().getRequestLocale();
 
-               // Log debug message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("PizzaLocalizationSessionBean::init: loc={0}", loc)); //NOI18N
-
                // Set it here
                this.setLocale(loc);
-
-               // Log trace message
-               //* NOISY-DEBUG: */ System.out.println("PizzaLocalizationSessionBean::init: EXIT!"); //NOI18N
        }
 
        /**
index b023d17583ce4ab9ba78b86c614dbdadf0400ce7..30a3ca99c6e835523cb78cf5c72234b7090214d4 100644 (file)
@@ -32,9 +32,13 @@ import javax.naming.NamingException;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcoreee.utils.FacesUtils;
 import org.mxchange.jusercore.container.login.UserLoginContainer;
+import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
 import org.mxchange.jusercore.events.user.add.AdminAddedUserEvent;
+import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
 import org.mxchange.jusercore.events.user.linked.AdminLinkedUserEvent;
+import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
 import org.mxchange.jusercore.events.user.update.AdminUpdatedUserDataEvent;
+import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
 import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
 import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
@@ -53,10 +57,6 @@ import org.mxchange.pizzaapplication.beans.BasePizzaController;
 import org.mxchange.pizzaapplication.beans.contact.PizzaAdminContactWebRequestController;
 import org.mxchange.pizzaapplication.beans.contact.PizzaContactWebSessionController;
 import org.mxchange.pizzaapplication.beans.helper.PizzaWebRequestController;
-import org.mxchange.jusercore.events.registration.ObservableUserRegisteredEvent;
-import org.mxchange.jusercore.events.user.add.ObservableAdminAddedUserEvent;
-import org.mxchange.jusercore.events.user.linked.ObservableAdminLinkedUserEvent;
-import org.mxchange.jusercore.events.user.update.ObservableAdminUpdatedUserDataEvent;
 
 /**
  * Administrative user bean (controller)
@@ -299,9 +299,6 @@ public class PizzaAdminUserWebRequestBean extends BasePizzaController implements
 
        @Override
        public void afterRegistrationEvent (@Observes final ObservableUserRegisteredEvent event) {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("AdminUserWebBean:afterRegistration: event={0} - CALLED!", event)); //NOI18N
-
                // event should not be null
                if (null == event) {
                        // Throw NPE
@@ -320,14 +317,10 @@ public class PizzaAdminUserWebRequestBean extends BasePizzaController implements
                // Get user instance
                User registeredUser = event.getRegisteredUser();
 
-               // Debug message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("UserWebBean:afterRegistration: registeredUser={0}", registeredUser)); //NOI18N
+               // @TODO Nothing to do with the user here?
 
                // Clear all data
                this.clear();
-
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println("AdminUserWebBean:afterRegistration: EXIT!"); //NOI18N
        }
 
        @Override
index e3ce71a607ece14b93a71e39e840112f378e4d4f..8e2e1187d0ee9649599ed36ece698b497012eed0 100644 (file)
@@ -68,9 +68,6 @@ public class PizzaEmailAddressValidator extends BaseStringValidator implements V
 
        @Override
        public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
-
                // The required field
                String[] requiredFields = {"emailAddress", "emailAddressRepeat", "resendEmailAddress"}; //NOI18N
 
@@ -111,9 +108,6 @@ public class PizzaEmailAddressValidator extends BaseStringValidator implements V
                        // No, then abort here
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_INFO, message, message));
                }
-
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N
        }
 
 }
index a0b7676e2a7e27011983d2828a831e5df08488b8..837d7bb61ed187dd132a17a8ed7a6134d28a251d 100644 (file)
@@ -38,16 +38,11 @@ public class PizzaNameValidator extends BaseStringValidator implements Validator
 
        @Override
        public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
-
                // All accepted, required fields
                String[] requiredFields = {"firstName", "familyName", "city", "street"}; //NOI18N
 
                // Pre-validation (example: not null, not a string, empty string ...)
                super.preValidate(context, component, value, requiredFields, false);
-
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N
        }
+
 }
index 8756a15790bda05f56a3fbf479ba128fa69a6dfa..ed315e46c1fd792840ea8770c208155f8115035e 100644 (file)
@@ -56,9 +56,6 @@ public class PizzaUserPasswordValidator extends BaseStringValidator implements V
 
        @Override
        public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
-               // Trace message
-               // NOISY-DEBUG: this.loggerBeanLocal.logTrace(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
-
                // The required field
                String[] requiredFields = {"currentPassword"}; //NOI18N
 
@@ -76,9 +73,6 @@ public class PizzaUserPasswordValidator extends BaseStringValidator implements V
                        throw new ValidatorException(new FacesMessage(FacesMessage.SEVERITY_ERROR, "Password mismatching.", "The password the user has entered does not match the stored password.")); //NOI18N
                }
                 */
-
-               // Trace message
-               // NOISY-DEBUG: this.loggerBeanLocal.logTrace("validate: EXIT!"); //NOI18N
        }
 
 }
index 5ad11b8e3b447c19e5880f151f29780423384d3f..d402fc253966318d2306a12444223b076cdb1e9a 100644 (file)
@@ -38,16 +38,10 @@ public class PizzaPrivacyTermsCheckboxValidator extends BaseBooleanValidator imp
 
        @Override
        public void validate (final FacesContext context, final UIComponent component, final Object value) throws ValidatorException {
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println(MessageFormat.format("validate: context={0},component={1},value={2} - CALLED!", context, component, value)); //NOI18N
-
                // All accepted, required fields
                String[] requiredFields = {"privacy", "terms"}; //NOI18N
 
                // Pre-validation (example: not null, not a string, empty string ...)
                super.preValidate(context, component, value, requiredFields, false);
-
-               // Trace message
-               //* NOISY-DEBUG: */ System.out.println("validate: EXIT!"); //NOI18N
        }
 }