]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued with cell phone: (please cherry-pick)
authorRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2016 14:29:10 +0000 (16:29 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2016 14:29:10 +0000 (16:29 +0200)
- added business method unlinkCellphoneDataFromContact() which unlinks cell phone instance from a contact instance. If none is linked, a proper exception is thrown.

src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java

index a41a9bb83bcb1dde7d91d9a52b392da2c7d213f3..4374e7d923b9f02ce908799ecc7ab33a397d6e9b 100644 (file)
@@ -18,6 +18,7 @@ package org.mxchange.jcontacts.phone;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
+import org.mxchange.jcontacts.contact.Contact;
 
 /**
  * A remote interface for administrative purposes around contact's phone numbers
@@ -28,4 +29,14 @@ import javax.ejb.Remote;
 @Remote
 public interface AdminContactsPhoneSessionBeanRemote extends Serializable {
 
+       /**
+        * Unlinks cell phone data from given contact and returns the updated
+        * (detached?) version.
+        * <p>
+        * @param contact Contact to unlink cell phone instance
+        * <p>
+        * @return Updated contact instance
+        */
+       Contact unlinkCellphoneDataFromContact (final Contact contact);
+
 }