]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Continued a bit: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Mon, 8 Aug 2016 12:10:07 +0000 (14:10 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 8 Aug 2016 17:36:44 +0000 (19:36 +0200)
- added title

src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java
src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java

index de484d88fe50906166ec732e5f52251271f2a2f4..7b8f3d5461bb607d897d3309af3b5175d2269f78 100644 (file)
@@ -207,6 +207,11 @@ public class PizzaContactWebSessionBean extends BasePizzaController implements P
         */
        private String street;
 
+       /**
+        * Title
+        */
+       private String title;
+
        /**
         * Regular user controller
         */
@@ -785,6 +790,16 @@ public class PizzaContactWebSessionBean extends BasePizzaController implements P
                this.street = street;
        }
 
+       @Override
+       public String getTitle () {
+               return this.title;
+       }
+
+       @Override
+       public void setTitle (final String title) {
+               this.title = title;
+       }
+
        @Override
        public Integer getZipCode () {
                return this.zipCode;
@@ -973,7 +988,7 @@ public class PizzaContactWebSessionBean extends BasePizzaController implements P
                // Clear all data
                // - personal data
                this.setGender(null);
-               // TODO: Unfinished this.setTitle(null);
+               this.setTitle(null);
                this.setFirstName(null);
                this.setFamilyName(null);
                this.setStreet(null);
@@ -1021,6 +1036,7 @@ public class PizzaContactWebSessionBean extends BasePizzaController implements P
                // Copy all fields:
                // - base data
                this.setGender(contact.getContactGender());
+               this.setTitle(contact.getContactTitle());
                this.setFirstName(contact.getContactFirstName());
                this.setFamilyName(contact.getContactFamilyName());
                this.setStreet(contact.getContactStreet());
index 984d2e97737e8f0b9202e9947b9e1fc8a6c0c1ae..ab0a97ad2efb2ca9a750c619a0ef5203aa3e695a 100644 (file)
@@ -416,6 +416,20 @@ public interface PizzaContactWebSessionController extends Serializable {
         */
        void setStreet (final String street);
 
+       /**
+        * Titöe
+        * <p>
+        * @return the title
+        */
+       String getTitle ();
+
+       /**
+        * Title
+        * <p>
+        * @param title the title to set
+        */
+       void setTitle (final String title);
+
        /**
         * ZIP code
         * <p>