]> git.mxchange.org Git - jjobs-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 18:43:37 +0000 (20:43 +0200)
- added title

src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionBean.java
src/java/org/mxchange/jjobs/beans/contact/JobsContactWebSessionController.java

index 99117f9f57b853c1a2513c742d4bb6239aea8bc9..f2ea5365007d1fcac6a424eff56fa46312f1a0e1 100644 (file)
@@ -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());
index cb8a6c2999eaa863952a8c1be80a093960ed5dde..41f140605bd111bb44285eefc9a3b44419e3d5a6 100644 (file)
@@ -416,6 +416,20 @@ public interface JobsContactWebSessionController 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>