From: Roland Häder Date: Wed, 10 Aug 2016 15:13:01 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c6e402efecd894d67263ebc0038a72dcda04055;p=jcontacts-business-lib.git Continued a bit: - added checked exception - added cellphoneNumber instance --- 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. *

* @param contact Contact to unlink cell phone instance + * @param cellphoneNumber Cell phone number being unlinked *

* @return Updated contact instance + *

+ * @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; }