From: Roland Häder Date: Thu, 18 Aug 2016 13:13:16 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=57cd41ecd3bb57c9e687f6b56c0e2a3911739894;p=jcontacts-business-lib.git Continued a bit: - added business methods for linking new/existing fax, land-line and mobile numbers --- diff --git a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java index fbfd9e9..fb7d8fe 100644 --- a/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java +++ b/src/org/mxchange/jcontacts/phone/AdminContactsPhoneSessionBeanRemote.java @@ -35,6 +35,72 @@ import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; @Remote public interface AdminContactsPhoneSessionBeanRemote extends Serializable { + /** + * Links existing fax number with given contact instance. The id number + * should be set. + *

+ * @param contact Contact to link to + * @param faxNumber Fax number to link + *

+ * @return Updated contact + */ + Contact linkExistingFaxNumberWithContact (final Contact contact, final DialableFaxNumber faxNumber); + + /** + * Links existing land-line number with given contact instance. The id + * number should be set. + *

+ * @param contact Contact to link to + * @param landLineNumber Land-line number to link + *

+ * @return Updated contact + */ + Contact linkExistingLandLineNumberWithContact (final Contact contact, final DialableLandLineNumber landLineNumber); + + /** + * Links existing mobile number with given contact instance. The id number + * should be set. + *

+ * @param contact Contact to link to + * @param mobileNumber Mobile number to link + *

+ * @return Updated contact + */ + Contact linkExistingMobileNumberWithContact (final Contact contact, final DialableMobileNumber mobileNumber); + + /** + * Links new fax number with given contact instance. The id number should + * NOT be set. + *

+ * @param contact Contact to link to + * @param faxNumber Fax number to link + *

+ * @return Updated contact + */ + Contact linkNewFaxNumberWithContact (final Contact contact, final DialableFaxNumber faxNumber); + + /** + * Links new land-line number with given contact instance. The id number + * should NOT be set. + *

+ * @param contact Contact to link to + * @param landLineNumber Land-line number to link + *

+ * @return Updated contact + */ + Contact linkNewLandLineNumberWithContact (final Contact contact, final DialableLandLineNumber landLineNumber); + + /** + * Links new mobile number with given contact instance. The id number should + * NOT be set. + *

+ * @param contact Contact to link to + * @param mobileNumber Mobile number to link + *

+ * @return Updated contact + */ + Contact linkNewMobileNumberWithContact (final Contact contact, final DialableMobileNumber mobileNumber); + /** * Unlinks fax data from given contact and returns the updated (detached?) * version.