]> git.mxchange.org Git - jcontacts-business-lib.git/commitdiff
Contined a bit:
authorRoland Häder <roland@mxchange.org>
Wed, 17 Aug 2016 13:15:54 +0000 (15:15 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Aug 2016 13:15:54 +0000 (15:15 +0200)
- added business methods for unlinking fax/land-line numbers

src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java

index 857246c8cad4cbbf6951d0441b55962603e6572b..fbfd9e918bf4f057a22e6704962ce8a548dd744a 100644 (file)
@@ -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.