From: Roland Häder Date: Wed, 10 Aug 2016 14:29:10 +0000 (+0200) Subject: Continued with cell phone: (please cherry-pick) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd8104b29c1b60461d596b080b2e82b8bb2cc382;p=jcontacts-business-lib.git Continued with cell phone: (please cherry-pick) - added business method unlinkCellphoneDataFromContact() which unlinks cell phone instance from a contact instance. If none is linked, a proper exception is thrown. --- diff --git a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java index a41a9bb..4374e7d 100644 --- a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java @@ -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. + *

+ * @param contact Contact to unlink cell phone instance + *

+ * @return Updated contact instance + */ + Contact unlinkCellphoneDataFromContact (final Contact contact); + }