From cd8104b29c1b60461d596b080b2e82b8bb2cc382 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 10 Aug 2016 16:29:10 +0200 Subject: [PATCH] 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. --- .../phone/AdminContactsPhoneSessionBeanRemote.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); + } -- 2.39.2