]> git.mxchange.org Git - jjobs-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 19:51:44 +0000 (21:51 +0200)
src/java/org/mxchange/jjobs/beans/contact/JobsAdminContactWebRequestBean.java
src/java/org/mxchange/jjobs/beans/country/JobsAdminCountryWebRequestBean.java
src/java/org/mxchange/jjobs/beans/mobileprovider/JobsAdminMobileProviderWebRequestBean.java
src/java/org/mxchange/jjobs/beans/phone/JobsAdminContactPhoneWebSessionBean.java
src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestBean.java

index cfb85afa782d1e7ec891576810a12f2abc3ff2bf..1e389c793098e757c14cb9c4cb6ad773cd787024 100644 (file)
@@ -476,31 +476,4 @@ public class JobsAdminContactWebRequestBean implements JobsAdminContactWebReques
        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 eed8f3b2173366a568a3b0d432c475264f127b2d..f8441a22e5517e7343625c0c39a31f25b0971345 100644 (file)
@@ -146,9 +146,6 @@ public class JobsAdminCountryWebRequestBean implements JobsAdminCountryWebReques
 
                // Fire event
                this.addedCountryEvent.fire(new AdminEventCountryAdded(updatedCountry));
-
-               // Clear bean
-               this.clear();
        }
 
        @Override
@@ -222,19 +219,6 @@ public class JobsAdminCountryWebRequestBean implements JobsAdminCountryWebReques
                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 5a45722f65f8c72d02911417c5a6eaa6aae5bd9c..55c1808d07f9c1ed9489442247229166dee5235a 100644 (file)
@@ -129,9 +129,6 @@ public class JobsAdminMobileProviderWebRequestBean implements JobsAdminMobilePro
 
                // Fire event
                this.providerAddedEvent.fire(new AdminMobileProviderAddedEvent(updatedProvider));
-
-               // Clear this bean
-               this.clear();
        }
 
        @Override
@@ -184,17 +181,6 @@ public class JobsAdminMobileProviderWebRequestBean implements JobsAdminMobilePro
                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 4f4bfe020bed0873e0e24c939c1b3d4b7497437d..e21d24495c9c495c39a75476aba1f940af683059 100644 (file)
@@ -157,15 +157,4 @@ public class JobsAdminContactPhoneWebSessionBean implements JobsAdminContactPhon
                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 5e24d13eae13c90c78dd53c739367b06336a5473..4f6c46438e4e40cfcf977f0774f689e064f57855 100644 (file)
@@ -183,9 +183,6 @@ public class JobsAdminUserWebRequestBean implements JobsAdminUserWebRequestContr
                // 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 JobsAdminUserWebRequestBean implements JobsAdminUserWebRequestContr
                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>