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;
/**
@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.