From 54d86df06425727afeb16c67126b102b75d49af3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 17 Aug 2016 15:15:54 +0200 Subject: [PATCH] Contined a bit: - added business methods for unlinking fax/land-line numbers --- .../AdminContactsPhoneSessionBeanRemote.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java index 857246c..fbfd9e9 100644 --- a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java @@ -19,7 +19,11 @@ package org.mxchange.jcontacts.phone; import java.io.Serializable; import javax.ejb.Remote; import org.mxchange.jcontacts.contact.Contact; +import org.mxchange.jphone.exceptions.FaxNumberNotLinkedException; +import org.mxchange.jphone.exceptions.LandLineNumberNotLinkedException; import org.mxchange.jphone.exceptions.MobileNumberNotLinkedException; +import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; +import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; /** @@ -31,6 +35,34 @@ import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; @Remote public interface AdminContactsPhoneSessionBeanRemote extends Serializable { + /** + * Unlinks fax data from given contact and returns the updated (detached?) + * version. + *

+ * @param contact Contact to unlink mobile instance + * @param faxNumber Fax number being unlinked + *

+ * @return Updated contact instance + *

+ * @throws FaxNumberNotLinkedException If a mobile instance is not linked + * (null) with this contact + */ + Contact unlinkFaxDataFromContact (final Contact contact, final DialableFaxNumber faxNumber) throws FaxNumberNotLinkedException; + + /** + * Unlinks land-line data from given contact and returns the updated + * (detached?) version. + *

+ * @param contact Contact to unlink mobile instance + * @param landLineNumber Land-line number being unlinked + *

+ * @return Updated contact instance + *

+ * @throws LandLineNumberNotLinkedException If a mobile instance is not + * linked (null) with this contact + */ + Contact unlinkLandLineDataFromContact (final Contact contact, final DialableLandLineNumber landLineNumber) throws LandLineNumberNotLinkedException; + /** * Unlinks mobile data from given contact and returns the updated * (detached?) version. -- 2.39.5