]> git.mxchange.org Git - addressbook-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:54:09 +0000 (19:54 +0200)
- added title

src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java
src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionController.java

index 64367724a8dc709be439b1c4db8d4de2b5bcfa55..b7cd38d881bc183c7e3604d126dda58035a97019 100644 (file)
@@ -207,6 +207,11 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController
         */
        private String street;
 
+       /**
+        * Title
+        */
+       private String title;
+
        /**
         * Regular user controller
         */
@@ -794,6 +799,16 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController
                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;
@@ -982,7 +997,7 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController
                // 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);
@@ -1030,6 +1045,7 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController
                // 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 faa7d0f098ff5c32928ff77cd7ce7fdf83451c92..532b232c1a1aef7c0fdf24014bc24a41976a7e0b 100644 (file)
@@ -416,6 +416,20 @@ public interface AddressbookContactWebSessionController 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>