From: Roland Häder <roland@mxchange.org>
Date: Wed, 17 Aug 2016 13:15:54 +0000 (+0200)
Subject: Contined a bit:
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54d86df06425727afeb16c67126b102b75d49af3;p=jcontacts-business-lib.git

Contined a bit:
- added business methods for unlinking fax/land-line numbers
---

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.
+	 * <p>
+	 * @param contact Contact to unlink mobile instance
+	 * @param faxNumber Fax number being unlinked
+	 * <p>
+	 * @return Updated contact instance
+	 * <p>
+	 * @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.
+	 * <p>
+	 * @param contact Contact to unlink mobile instance
+	 * @param landLineNumber Land-line number being unlinked
+	 * <p>
+	 * @return Updated contact instance
+	 * <p>
+	 * @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.