From: Roland Häder Date: Mon, 8 Aug 2016 12:10:07 +0000 (+0200) Subject: Continued a bit: (please cherry-pick) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bdba9ecfaeda1c93692b2cac21a4c92452f4c4be;p=jjobs-war.git Continued a bit: (please cherry-pick) - added title --- diff --git a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java index 99117f9f..f2ea5365 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java @@ -207,6 +207,11 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job */ private String street; + /** + * Title + */ + private String title; + /** * Regular user controller */ @@ -785,6 +790,16 @@ public class JobsContactWebSessionBean extends BaseJobsController implements Job 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 JobsContactWebSessionBean extends BaseJobsController implements Job // 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 JobsContactWebSessionBean extends BaseJobsController implements Job // 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/jjobs/beans/contact/JobsContactWebSessionController.java b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionController.java index cb8a6c29..41f14060 100644 --- a/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionController.java +++ b/src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionController.java @@ -416,6 +416,20 @@ public interface JobsContactWebSessionController 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 *