]> git.mxchange.org Git - jcore.git/commitdiff
added setter for ownContact "flag"
authorRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 06:44:12 +0000 (08:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 06:44:12 +0000 (08:44 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jcore/model/contact/BaseContact.java
src/org/mxchange/jcore/model/contact/Contact.java

index e805da395d9b04b99837444d54c51ac30a2a8969..f978e67efd9ae148524356b2df197aab361ec0dd 100644 (file)
@@ -517,12 +517,9 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
                client.displayOtherDataBox(this);
        }
 
-       /**
-        * Enables the flag "own data" which signals that this contact is the user's
-        * own data.
-        */
-       protected void enableFlagOwnContact () {
-               this.ownContact = true;
+       @Override
+       public void setOwnContact (final Boolean ownContact) {
+               this.ownContact = ownContact;
        }
 
        /**
index baf2ec93824c3c825afd01881705385e599f1a46..15d497efb2d58049bb077022a7f1fd990d12ed3c 100644 (file)
@@ -253,4 +253,11 @@ public interface Contact extends Serializable {
         * @return Own data?
         */
        public boolean isOwnContact ();
+
+       /**
+        * Setter for own contact
+        *
+        * @param ownContact Own contact
+        */
+       public void setOwnContact (final Boolean ownContact);
 }