From 3c6e402efecd894d67263ebc0038a72dcda04055 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Wed, 10 Aug 2016 17:13:01 +0200
Subject: [PATCH] Continued a bit: - added checked exception - added
 cellphoneNumber instance

---
 .../phone/AdminContactsPhoneSessionBeanRemote.java        | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java
index 4374e7d..6bbde89 100644
--- a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java
+++ b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java
@@ -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;
 
 }
-- 
2.39.5