From 91f037da3d25947182be833cffce8d7d7fe91a71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 8 Aug 2016 14:10:07 +0200 Subject: [PATCH] Continued a bit: (please cherry-pick) - added title --- .../contact/PizzaContactWebSessionBean.java | 18 +++++++++++++++++- .../PizzaContactWebSessionController.java | 14 ++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java index de484d88..7b8f3d54 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java +++ b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionBean.java @@ -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()); diff --git a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java index 984d2e97..ab0a97ad 100644 --- a/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java +++ b/src/java/org/mxchange/pizzaapplication/beans/contact/PizzaContactWebSessionController.java @@ -416,6 +416,20 @@ public interface PizzaContactWebSessionController extends Serializable { */ void setStreet (final String street); + /** + * Titöe + *

+ * @return the title + */ + String getTitle (); + + /** + * Title + *

+ * @param title the title to set + */ + void setTitle (final String title); + /** * ZIP code *

-- 2.39.5