]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Removed all clear() methods in request-scoped beans as it makes no sense to clear...
authorRoland Häder <roland@mxchange.org>
Thu, 21 Apr 2016 08:45:09 +0000 (10:45 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 21 Apr 2016 18:06:57 +0000 (20:06 +0200)
src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestBean.java
src/java/org/mxchange/pizzaapplication/beans/country/PizzaAdminCountryWebRequestBean.java
src/java/org/mxchange/pizzaapplication/beans/mobileprovider/PizzaAdminMobileProviderWebRequestBean.java
src/java/org/mxchange/pizzaapplication/beans/phone/PizzaAdminContactPhoneWebRequestBean.java
src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebRequestBean.java

index 49b75499cb9213a00e4034e4adc39b99dc3e8d86..2cf0c9b6c51913bd492feeab667c1a0c7b07b69f 100644 (file)
@@ -494,31 +494,4 @@ public class PizzaAdminContactWebRequestBean implements PizzaAdminContactWebRequ
        public void init () {
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all
-               this.setContactId(null);
-               this.setBirthday(null);
-               this.setCellphoneCarrier(null);
-               this.setCellphoneNumber(null);
-               this.setCity(null);
-               this.setComment(null);
-               this.setCountry(null);
-               this.setEmailAddress(null);
-               this.setFamilyName(null);
-               this.setFaxAreaCode(null);
-               this.setFaxCountry(null);
-               this.setFaxNumber(null);
-               this.setFirstName(null);
-               this.setGender(null);
-               this.setHouseNumber(null);
-               this.setPhoneAreaCode(null);
-               this.setPhoneCountry(null);
-               this.setPhoneNumber(null);
-               this.setStreet(null);
-               this.setZipCode(null);
-       }
-
 }
index 1fef7df6189bbb7246401234d1efc2eeb7cd3da8..6dcd7209fa6f70647281a91d515b3c6adaf5c96a 100644 (file)
@@ -146,9 +146,6 @@ public class PizzaAdminCountryWebRequestBean implements PizzaAdminCountryWebRequ
 
                // Fire event
                this.addedCountryEvent.fire(new AdminEventCountryAdded(updatedCountry));
-
-               // Clear bean
-               this.clear();
        }
 
        @Override
@@ -222,19 +219,6 @@ public class PizzaAdminCountryWebRequestBean implements PizzaAdminCountryWebRequ
                return (!this.allCountries().isEmpty());
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all
-               this.setCountryAbroadDialPrefix(null);
-               this.setCountryCode(null);
-               this.setCountryExternalDialPrefix(null);
-               this.setCountryI18nKey(null);
-               this.setCountryIsLocalPrefixRequired(null);
-               this.setCountryPhoneCode(null);
-       }
-
        /**
         * Checks if given country is already added by iterating over the whole list
         * and try to find it.
index 7bbefceac4fc9f6233746d18783b7cde3706f99e..465e5de6f6042e09e570db7a3cba3d2d0070eb58 100644 (file)
@@ -129,9 +129,6 @@ public class PizzaAdminMobileProviderWebRequestBean implements PizzaAdminMobileP
 
                // Fire event
                this.providerAddedEvent.fire(new AdminMobileProviderAddedEvent(updatedProvider));
-
-               // Clear this bean
-               this.clear();
        }
 
        @Override
@@ -184,17 +181,6 @@ public class PizzaAdminMobileProviderWebRequestBean implements PizzaAdminMobileP
                return (!this.allMobileProvider().isEmpty());
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all fields
-               this.setProviderCountry(null);
-               this.setProviderDialPrefix(null);
-               this.setProviderMailPattern(null);
-               this.setProviderName(null);
-       }
-
        /**
         * Checks whether if the given mobile provider is already created by
         * checking both dial prefix and country.
index f289ca948cb44296108c5025b2333ee1478c6b6d..4cde05e99274fa0656f20c37f9199f8004aca342 100644 (file)
@@ -157,15 +157,4 @@ public class PizzaAdminContactPhoneWebRequestBean implements PizzaAdminContactPh
                this.landLine = landLine;
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all instances
-               this.setCellPhone(null);
-               this.setFax(null);
-               this.setLandLine(null);
-               this.setContact(null);
-       }
-
 }
index 0bed8e1f028f1cd03e9257a6e3a8961509ac648e..ee963dc126d5ed544537abe29320a00d103b85bc 100644 (file)
@@ -183,9 +183,6 @@ public class PizzaAdminUserWebRequestBean implements PizzaAdminUserWebRequestCon
                // Add user to local list
                this.userList.add(updatedUser);
 
-               // Clear all
-               this.clear();
-
                // Clear contact instance
                this.contactController.clear();
        }
@@ -282,16 +279,6 @@ public class PizzaAdminUserWebRequestBean implements PizzaAdminUserWebRequestCon
                return user;
        }
 
-       /**
-        * Clears this bean
-        */
-       private void clear () {
-               // Clear all
-               this.setUserName(null);
-               this.setUserPassword(null);
-               this.setUserPasswordRepeat(null);
-       }
-
        /**
         * Checks if same password is entered and that they are not empty.
         * <p>