]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Continued a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2016 15:13:01 +0000 (17:13 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 10 Aug 2016 15:16:00 +0000 (17:16 +0200)
- added checked exception
- added cellphoneNumber instance

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

index 4374e7d923b9f02ce908799ecc7ab33a397d6e9b..6bbde893aadd6ad3f661dbe646601f8f7be634e7 100644 (file)
@@ -19,6 +19,8 @@ package org.mxchange.jcontacts.phone;
 import java.io.Serializable;
 import javax.ejb.Remote;
 import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jphone.exceptions.CellphoneNotLinkedException;
+import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
 
 /**
  * A remote interface for administrative purposes around contact's phone numbers
@@ -34,9 +36,13 @@ public interface AdminContactsPhoneSessionBeanRemote extends Serializable {
         * (detached?) version.
         * <p>
         * @param contact Contact to unlink cell phone instance
+        * @param cellphoneNumber Cell phone number being unlinked
         * <p>
         * @return Updated contact instance
+        * <p>
+        * @throws CellphoneNotLinkedException If a cell phone instance is not
+        * linked (null) with this contact
         */
-       Contact unlinkCellphoneDataFromContact (final Contact contact);
+       Contact unlinkCellphoneDataFromContact (final Contact contact, final DialableCellphoneNumber cellphoneNumber) throws CellphoneNotLinkedException;
 
 }